/* ==========================================================================
   3. Header Styles (Desktop & Mobile)
   ========================================================================== */
/* --- Parent Fixes (MANDATORY FOR STICKY) --- */
/* --- Parent Fixes (MANDATORY FOR STICKY) --- */
.wp-block-template-part,
.header-baty-wrapper,
body > header,
.site-header,
.wp-site-blocks > header {
  overflow: visible !important;
}

.main-header {
  margin-top: 0 !important;
  position: sticky !important;
  top: 0;
  z-index: 9999;
  background-color: var(--wp--preset--color--base, #ffffff);
}

/* --- Shared Border Styles (Desktop + Tablet + Small Mobile) --- */
.header-baty {
  overflow: hidden;
  border: 1px solid var(--wp--preset--color--contrast);
}

.wp-block-search__inside-wrapper {
  background-color: transparent !important;
}

/* --- Desktop Styles (min-width: 1024px) --- */
@media (min-width: 1024px) {
  .main-header {
    padding-bottom: 0 !important;
  }

  .header-baty {
    .wp-block-site-logo-wrapper {
      position: relative;
      a { text-decoration: none; }
      &::before {
        content: "";
        width: 1px;
        height: 2000px;
        background-color: var(--wp--preset--color--contrast);
        position: absolute;
        right: -10px;
        top: -1000px;
      }
    }

    .wp-block-categories {
      display: flex;
      position: relative;
      &::before {
        content: "";
        width: 1px;
        height: 2000px;
        background-color: var(--wp--preset--color--contrast);
        position: absolute;
        right: -7px;
        top: -1000px;
      }
      select {
        border: none;
        background-color: transparent;
      }
    }
  }

  form.wp-block-search.wp-block-search__button-only {
    position: relative !important;
    overflow: visible !important;
    &::before {
      content: "" !important;
      width: 1px !important;
      height: 2000px !important;
      background-color: var(--wp--preset--color--contrast, black) !important;
      position: absolute !important;
      right: -10px !important;
      top: -1000px !important;
      display: block !important;
      z-index: 9999;
    }
  }

  .wp-block-navigation {
    li {
      position: relative;
      a { text-decoration: none; }
      &:first-child::after {
        content: "";
        width: 1px;
        height: 2000px;
        background-color: var(--wp--preset--color--contrast);
        position: absolute;
        left: -7px;
        top: -1000px;
        pointer-events: none;
      }
      &::before {
        content: "";
        width: 1px;
        height: 2000px;
        background-color: var(--wp--preset--color--contrast);
        position: absolute;
        right: -12px;
        top: -1000px;
        pointer-events: none;
      }
    }
  }

  .second-head {
    .wp-block-woocommerce-customer-account {
      position: relative;
      &::before {
        content: "";
        width: 1px;
        height: 2000px;
        background-color: var(--wp--preset--color--contrast);
        position: absolute;
        right: -8px;
        top: -1000px;
        pointer-events: none;
      }
    }
    .wc-block-mini-cart {
      margin-right: 10px;
      .wc-block-mini-cart__badge {
        font-size: 12px;
        border-radius: 0;
        top: -20px;
        left: 0;
      }
    }
  }

  .navigation-header {
    display: none;
  }
}

/* --- Tablet Styles (600px to 1024px) --- */
@media (min-width: 600px) and (max-width: 1024px) {
  .main-navigation-header {
    display: flex !important;
  }
  .navigation-header {
    display: none;
  }

  .header-baty {
    .wp-block-group-is-layout-flex {
      flex-wrap: nowrap;
    }

    .wp-block-site-logo-wrapper {
      position: relative;
      a { text-decoration: none; }
      &::before {
        content: "";
        width: 1px;
        height: 2000px;
        background-color: var(--wp--preset--color--contrast);
        position: absolute;
        right: -10px;
        top: -1000px;
      }
    }

    .wp-block-categories {
      display: flex;
      position: relative;
      &::before {
        content: "";
        width: 1px;
        height: 2000px;
        background-color: var(--wp--preset--color--contrast);
        position: absolute;
        right: -7px;
        top: -1000px;
      }
      select {
        border: none;
        background-color: transparent;
      }
    }
  }

  form.wp-block-search.wp-block-search__button-only {
    position: relative !important;
    overflow: visible !important;
    &::before {
      content: "" !important;
      width: 1px !important;
      height: 2000px !important;
      background-color: var(--wp--preset--color--contrast, black) !important;
      position: absolute !important;
      right: -10px !important;
      top: -1000px !important;
      display: block !important;
      z-index: 9999;
    }
  }

  .wp-block-navigation {
    li {
      position: relative;
      a { text-decoration: none; }
      &:first-child::after {
        content: "";
        width: 1px;
        height: 2000px;
        background-color: var(--wp--preset--color--contrast);
        position: absolute;
        left: -7px;
        top: -1000px;
        pointer-events: none;
      }
      &::before {
        content: "";
        width: 1px;
        height: 2000px;
        background-color: var(--wp--preset--color--contrast);
        position: absolute;
        right: -12px;
        top: -1000px;
        pointer-events: none;
      }
    }
  }

  .second-head {
    .wp-block-woocommerce-customer-account {
      position: relative;
      &::before {
        content: "";
        width: 1px;
        height: 2000px;
        background-color: var(--wp--preset--color--contrast);
        position: absolute;
        right: -8px;
        top: -1000px;
        pointer-events: none;
      }
    }
    .wc-block-mini-cart {
      margin-right: 10px;
      .wc-block-mini-cart__badge {
        font-size: 12px;
        border-radius: 0;
        top: -20px;
        left: 0;
      }
    }
  }
}

/* --- Mobile Styles (max-width: 599px) --- */
@media (max-width: 599px) {
  .header-baty .wp-block-categories {
    display: none;
  }
  .main-navigation-header {
    display: none !important;
  }
  .second-head {
    gap: 3px;
    .wp-block-search__button {
      padding: 10px 0 !important;
    }
  }
}

/* --- Small Mobile Styles (max-width: 425px) --- */
@media (max-width: 425px) {
  form.wp-block-search.wp-block-search__button-only {
    display: none;
  }

  .second-head {
    .wp-block-woocommerce-customer-account {
      position: relative;
      &::before {
        content: "";
        width: 1px;
        height: 2000px;
        background-color: var(--wp--preset--color--contrast);
        position: absolute;
        right: 0;
        top: -1000px;
        pointer-events: none;
      }
    }
    .wc-block-mini-cart {
      .wc-block-mini-cart__badge {
        font-size: 12px;
        border-radius: 0;
        top: -12px;
        left: 27px;
        color: var(--wp--preset--color--base);
        background-color: var(--wp--preset--color--contrast) !important;
      }
    }
  }
}

/* //////////////////////////// start-testmonials //////////////////////// */
.testmonials {
  .content {
    .dashicons::before {
      color: var(--wp--preset--color--accent-1);
    }

    .first-cont {
      justify-content: space-between;
    }
  }

  .testmonials-customers {
    .as-content {
      overflow-y: scroll;
      height: 575px;
      direction: rtl;
      padding-left: 12.5px;
      /* text-align: left;  */

      .dashicons::before {
        color: var(--wp--preset--color--accent-5);
      }
    }

    /* لإعادة المحتوى الداخلي لوضعه الطبيعي حتى لا تنعكس العناصر */
    .as-content > * {
      direction: ltr;
    }

    .as-content::-webkit-scrollbar {
      width: 11px;
      padding-right: 20px;
    }

    .as-content::-webkit-scrollbar-thumb {
      background-color: var(--wp--preset--color--accent-7);
      /* border-radius: 10px; */
    }

    .as-content::-webkit-scrollbar-track {
      background: var(--wp--preset--color--accent-1);
    }
  }

  .is-style-default {
    /* height: 15%;
      width: 10%; */
    img {
    }
  }
}

@media (max-width: 768px) {
  .testmonials {
    padding: 0 16.5px;
    .content {
      .dashicons::before {
        color: var(--wp--preset--color--accent-1);
      }
    }

    .testmonials-customers {
      display: flex !important;
      flex-direction: column-reverse;
      order: 2;
      align-items: stretch;

      .as-content {
        display: block;
        height: 400px !important;
        max-height: 400px !important;
        overflow-y: auto !important;
        flex-shrink: 0;

        direction: rtl;
        padding-left: 15px;
        -webkit-overflow-scrolling: touch;

        .dashicons::before {
          color: var(--wp--preset--color--accent-5);
        }

        & > * {
          direction: ltr;
        }

        &::-webkit-scrollbar {
          width: 8px;
        }

        &::-webkit-scrollbar-thumb {
          background-color: var(--wp--preset--color--accent-7);
          border-radius: 10px;
          border: 2px solid transparent;
          background-clip: padding-box;
        }

        &::-webkit-scrollbar-track {
          background: var(--wp--preset--color--accent-1);
        }
      }

      .first-row {
        flex-wrap: wrap;
      }

      .is-style-row {
        align-items: flex-start;

        .wp-block-image img {
          max-width: 40px !important;
        }
      }

      .is-style-paragraph {
        font-size: 14px !important;
        font-weight: 400 !important;
      }

      .is-style-default {
        img {
          /* width: 100%; */
        }

        .banner-img {
          height: 260px;

          img {
            width: 100% !important;
            height: 100% !important;
          }
        }
      }
    }
  }
}
/* //////////////////////////// end-testmonials //////////////////////// */
/* /////////////// start-main-banner //////////////////// */
.best-seller {
  ul.wc-block-product-template {
    grid-template-columns: repeat(1, 1fr);
  }

  .slide-1 {
    @media (min-width: 1024px) {
      .wc-block-product-template li:last-child .wp-block-group {
        border-bottom-width: 0 !important;
        border-bottom-style: none !important;
      }
    }
    .wp-block-button.wc-block-components-product-button {
      background-color: var(--wp--preset--color--contrast);
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      overflow: hidden;
    }

    .wp-block-button.wc-block-components-product-button .wp-block-button__link {
      background-color: transparent !important;
      padding: 0 !important;
      margin: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      text-indent: -9999px;
    }

    .wp-block-button.wc-block-components-product-button
      .wp-block-button__link::before {
      content: "\f07a";
      font-family: "Font Awesome 5 Free";
      font-weight: 900;
      text-indent: 0;
      position: absolute;
      color: var(--wp--preset--color--accent-1);
      font-size: 16px;
    }
    .wc-block-components-product-price {
      flex-wrap: wrap !important;
      flex-flow: row-reverse !important;

       del  {
        color: #999;
      }

    
    }
  }

  .slide-2 {
    height: 565px;

    .wp-block-group {
      margin-top: 80px !important;
    }
    .wp-block-cover,
    .wp-block-cover-image {
      min-height: 565px !important;
    }

    .wp-block-button {
      a {
        position: relative;
        overflow: hidden;
        background-color: var(--wp--preset--color--contrast) !important;
        color: var(--wp--preset--color--base) !important;
        border: 1px solid var(--wp--preset--color--contrast);
        z-index: 1;
        transition: color 0.4s ease !important;
      }

      a::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background-color: var(--wp--preset--color--base) !important;
        transition: width 0.4s ease;
        z-index: -1;
      }

      a:hover {
        color: var(--wp--preset--color--contrast) !important;
      }

      a:hover::before {
        width: 100%;
      }
    }
  }

  .wp-block-post-title {
    a {
      color: var(--wp--preset--color--accent-8) !important;
      text-decoration: none;
    }
  }

  .wp-block-post-terms {
    a {
      color: var(--wp--preset--color--accent-8) !important;
    }
  }

  .wc-block-grid__product-price {
    display: flex;
    gap: 8px;

    ins {
      background: none;
    }
  }
}

.banner-product-img {
  /* تنسيقات الـ Slide 2 */
  .wc-block-product-template__responsive {
    margin: 0;
  }

  .wp-block-button {
    a span,
    button span {
      background-color: var(--wp--preset--color--contrast);
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      /* border-radius: 50%; */
      position: relative;
      font-size: 0;
      padding: 0;
      border: none;
      cursor: pointer;
    }
  }
}

/* --- الميديا كويري للموبايل --- */
@media (max-width: 768px) {
  .banner-product-img {
    padding: 0 16.5px;
  }

  .best-seller {
    gap: 5px;
    .slide-2 {
      order: 0;
      height: 320px;

      .is-layout-constrained {
        margin-top: 10px !important;
      }
      .is-light {
        min-height: 320px !important;
      }
    }

    .slide-1 {
      order: 1;
      overflow: visible !important;
      height: auto !important;

      .wc-block-product-template__responsive.columns-1 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px; /* ✅ gap between cards when scrolling */
        height: auto !important;
        padding: 0 !important; /* ✅ matches banner padding + bottom for button */
        margin: 0 !important;
        list-style: none;

        scrollbar-width: none;
        &::-webkit-scrollbar {
          display: none;
        }

        

        .wc-block-product {
          flex: 0 0 calc(100vw - 33px) !important; /* ✅ accounts for padding on both sides */
          width: calc(100vw - 33px) !important;
          max-width: calc(100vw - 33px) !important;
          scroll-snap-align: start;
          height: auto !important;
          overflow: visible !important; /* ✅ allows add-to-cart button to show */
          box-sizing: border-box;
        }
      }
    }

    .slide-3 {
      order: 2;
    }

    hr {
      display: none;
    }
  }
}

/* /////////////// end-main-banner //////////////////// */

/* /////////////// start-timeless-banner //////////////////// */

.timeless-banner {
  .img-cover {
    min-height: 549px !important;
  }
}

.timeless-banner .wp-element-button {
  position: relative;
  padding: 15px 45px;
  background-color: transparent;
  border: 2px solid var(--wp--preset--color--accent-7);
  color: var(--wp--preset--color--accent-7);
  z-index: 1;
  display: inline-block;
  overflow: visible;

  background-image: linear-gradient(
    var(--wp--preset--color--contrast),
    var(--wp--preset--color--contrast)
  );
  background-color: var(--wp--preset--color--base);
  background-size: 100% 0;
  background-position: bottom;
  background-repeat: no-repeat;
  transition:
    background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.4s ease,
    all 0.4s ease;
}

.timeless-banner .wp-element-button::before {
  content: "";
  transform: translateY(-180%) rotate(90deg);
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--wp--preset--color--contrast);
  left: 20px;
  top: 24px;
  box-shadow: 24px 0px 0px var(--wp--preset--color--contrast);
  transition: all 0.4s ease;
}

.timeless-banner .wp-element-button::after {
  content: "";
  transform: translateY(-180%) rotate(90deg);
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--wp--preset--color--contrast);
  right: 20px;
  top: 26px;
  box-shadow: 24px 0px 0px var(--wp--preset--color--contrast);
}

.timeless-banner .wp-element-button:hover {
  color: var(--wp--preset--color--accent-1) !important;
  background-size: 100% 100%;
}

.timeless-banner .wp-element-button:hover::before {
  background-color: var(--wp--preset--color--base);
  box-shadow: 24px 0px 0px var(--wp--preset--color--base);
}

.timeless-banner .wp-element-button:hover::after {
  background-color: var(--wp--preset--color--base);
  box-shadow: 24px 0px 0px var(--wp--preset--color--base);
}

.timeless-banner .main-title h3 {
  opacity: 0.4;
  transition: all 0.3s ease;
  cursor: pointer;
}

.timeless-banner .main-title h3.is-active {
  opacity: 1;
  color: var(--wp--preset--color--accent-7);
}

.timeless-banner .main-title:hover h3.is-active {
  opacity: 0.4;
}

.timeless-banner .main-title h3:hover {
  opacity: 1 !important;
  color: var(--wp--preset--color--accent-7);
}

.timeless-banner .wp-block-group p {
  color: var(--wp--preset--color--contrast) !important;
}
.timeless-banner .designe-marquee {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.timeless-banner .designe-marquee h2 {
  color: var(--wp--preset--color--contrast);
  display: inline-block;
  white-space: nowrap;
  animation: marquee 8s linear infinite alternate;
  will-change: transform;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 425px) {
  .timeless-banner .columns {
    border: 0;
    width: 95%;
    margin: 0 auto;
    gap: 10px;
  }

  .timeless-banner .first-element {
    padding: 0 !important;
  }

  .timeless-banner .first-row {
    flex-direction: column;
    padding: 0 !important;
    gap: 1px;
  }

  .timeless-banner .first-row .main-title {
    padding: 0 !important;
    .wp-block-heading {
      margin-top: 6px;
    }
  }

  .timeless-banner .designe-marquee h2 {
    margin-top: 0 !important;
  }

  .timeless-banner .img-cover {
    /* height: 160px; */
    min-height: 160px !important;
    padding: 0 !important;
  }
  .timeless-banner .wp-block-cover,
  .wp-block-cover-image {
    min-height: 160px !important;
  }
}
@media (max-width: 768px) {
  .timeless-banner .first-row {
    /* padding-top: 20px !important;
    padding-bottom: 20px !important; */
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .timeless-banner {
    .img-cover {
      padding: 0 !important;
      min-height: 350px !important;
    }
  }

  .timeless-banner .wp-element-button::before {
    content: "";
    transform: translateY(-180%) rotate(90deg);
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--wp--preset--color--contrast);
    left: 20px;
    top: 18px;
    box-shadow: 24px 0px 0px var(--wp--preset--color--contrast);
    transition: all 0.4s ease;
  }

  .timeless-banner .wp-element-button::after {
    content: "";
    transform: translateY(-180%) rotate(90deg);
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--wp--preset--color--contrast);
    right: 20px;
    top: 18px;
    box-shadow: 24px 0px 0px var(--wp--preset--color--contrast);
  }
}

/* @media (max-width: 425px) {
  .timeless-banner {
    .img-cover {
      padding: 0 !important;
      min-height: 160px !important;
    }
  }
} */

@media (max-width: 1024px) {
  .timeless-banner {
    .img-cover {
      min-height: 470px !important;
    }
  }
}

/* ================= TEXT ANIMATION ================= */

.mian-paragraph p,
.mian-paragraph h2 {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.swiper-slide-active .mian-paragraph p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.swiper-slide-active .mian-paragraph h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.9s;
}

.card-price {
  margin-top: 0;
  justify-content: space-between;
}
/* /////////////// end-timeless-banner //////////////////// */

/* /////////- start-our-store -///////// */

/* --- إعدادات الشاشات الكبيرة (Desktop) --- */
/* Tablet and Desktop (768px and up) */
@media (min-width: 768px) {
  .main-store-desctop {
    display: block;

    .wp-block-cover {
      min-height: 791px !important;
    }

    .cover-img {
      position: relative;

      img {
        height: 100%;
        width: 100%;
        object-fit: fill;
      }

      .content {
        max-width: 631px;

        .wp-block-button__link {
          position: relative;
          overflow: hidden;
          background-color: var(--wp--preset--color--contrast) !important;
          color: var(--wp--preset--color--base) !important;
          z-index: 1;
          transition: color 0.4s ease;
          border: none;
          display: inline-block;

          &::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background-color: var(--wp--preset--color--base) !important;
            transition: width 0.4s ease;
            z-index: -1;
          }

          &:hover {
            color: var(--wp--preset--color--contrast) !important;

            &::before {
              width: 100%;
            }
          }
        }
      }
    }
  }

  /* Hide phone version on desktop/tablet */
  .main-store-phone {
    display: none;
  }
}

/* Mobile (Up to 767px) */
@media (max-width: 767px) {
  .main-store-desctop {
    display: none;
  }

  .main-store-phone {
    padding: 0 16.5px;
    display: block;

    .wp-block-cover {
      min-height: 271px !important;
    }

    .cover-img {
      height: auto;

      img {
        width: 100%;
        height: 257px;
        object-fit: cover;
      }
    }
  }
}

/* /////////- end-our-store -///////// */

/* /////////////// start-blogs-page //////////////////// */

.blog-banner {
  .woocommerce .woocommerce-breadcrumb {
    margin: 0 0 1em 14px;
    padding: 0;
    text-align: center;
  }
}
.main-blog-page {
  /* ─── Sidebar ─── */
  .blogs-side-bar {
    /* Search */
    .wp-block-search__inside-wrapper {
      position: relative;
      display: flex;
      align-items: center;
      flex-direction: row-reverse;
      background-color: transparent;

      input {
        background-color: transparent;
        width: 100%;
        height: 56px;
        padding-left: 60px; /* Adjusted to give the icon breathing room */
        padding-right: 15px;
        border: 1px solid var(--wp--preset--color--accent-4);
      }

      button {
        position: absolute;
        left: -10px; /* Positioned inside the input on the left */
        top: 50%;
        transform: translateY(-50%);
        background-color: transparent;

        /* Hide the original "Search" text */
        text-indent: -9999px;
        overflow: hidden;

        /* The Magnifying Glass Icon (SVG URL) */
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23adadad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 24px;

        width: 40px;
        height: 40px;
        border: none;
        box-shadow: none;
        cursor: pointer;
        display: flex;
        transition: opacity 0.2s ease;

        &:hover {
          opacity: 0.7;
        }
      }
    }

    /* Latest Posts */
    .wp-block-post-template {
      margin: 0 !important;
    }

    /* Categories */
    .categories {
      list-style: none;
      padding-left: 0;
      margin-top: 3px;

      ul {
        padding: 0;
      }

      li {
        display: flex;
        align-items: center;
        gap: 8px;

        &::before {
          content: "";
          display: inline-block;
          width: 16px;
          height: 16px;
          flex-shrink: 0;
          background-image: url("../images/blogs/layer1.png");
          background-size: contain;
          background-repeat: no-repeat;
        }
      }

      a {
        color: var(--wp--preset--color--accent-4);
        transition: all 0.3s ease;

        &:hover {
          color: var(--wp--preset--color--accent-5);
        }
      }
    }

    /* Tags */
    .tags ul {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 24px;
      padding: 0;

      li {
        width: fit-content;
        list-style: none;
        margin-top: 10px;

        a {
          color: var(--wp--preset--color--accent-7);
          padding: 9px 24px;
          border: 1px solid var(--wp--preset--color--accent-7);
          text-decoration: none;
          transition: all 0.3s ease;

          &:hover {
            color: var(--wp--preset--color--accent-5);
            border-color: var(--wp--preset--color--accent-5);
          }
        }
      }
    }
  }

  /* ─── Main Blog Area ─── */
  .main-blogs {
    /* Post Title */
    .wp-block-post-title a {
      color: var(--wp--preset--color--accent-8);
      text-decoration: none;
      transition: all 0.3s ease;

      &:hover {
        color: var(--wp--preset--color--accent-9);
      }

      &:visited {
        color: var(--wp--preset--color--accent-8);
      }
    }

    a.wp-block-post-excerpt__more-link {
      color: var(--wp--preset--color--accent-5);
    }

    /* Pagination */
    .wp-block-query-pagination {
      .wp-block-query-pagination-numbers {
        a,
        span {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          width: 40px;
          height: 40px;
          padding: 0;
          color: var(--wp--preset--color--primary);
          border-radius: 50%;
          transition: all 0.3s ease;
        }

        .current {
          background-color: var(--wp--preset--color--dark-brown);
          color: var(--wp--preset--color--white);
        }
      }

      .is-arrow-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: var(--wp--preset--color--medium-gray);
        border: 1px solid var(--wp--preset--color--medium-gray);
        color: var(--wp--preset--color--primary);
        border-radius: 50%;
      }
    }
  }

  @media (max-width: 768px) {
    .main-blogs {
      ul {
        margin-left: 0;
      }
    }

    .tags ul {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 24px;
      /* padding: 0; */

      li {
        width: fit-content;
        list-style: none;
        margin-top: 16px;
      }
    }
  }
}
/* /////////////// end-blogs-page //////////////////// */

/* /////////////// start-post-page //////////////////// */
.main-post {
  .blogs-side-bar {
    /* Search */
    .wp-block-search__inside-wrapper {
      position: relative;
      display: flex;
      align-items: center;
      flex-direction: row-reverse;
      background-color: transparent;

      input {
        background-color: transparent;
        width: 100%;
        height: 56px;
        padding-left: 60px; /* Adjusted to give the icon breathing room */
        padding-right: 15px;
        border: 1px solid var(--wp--preset--color--accent-4);
      }

      button {
        position: absolute;
        left: -10px; /* Positioned inside the input on the left */
        top: 50%;
        transform: translateY(-50%);
        background-color: transparent;

        /* Hide the original "Search" text */
        text-indent: -9999px;
        overflow: hidden;

        /* The Magnifying Glass Icon (SVG URL) */
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23adadad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 24px;

        width: 40px;
        height: 40px;
        border: none;
        box-shadow: none;
        cursor: pointer;
        display: flex;
        transition: opacity 0.2s ease;

        &:hover {
          opacity: 0.7;
        }
      }
    }

    /* Latest Posts */
    .wp-block-post-template {
      margin: 0 !important;
    }

    /* Categories */
    .categories {
      list-style: none;
      padding-left: 0;
      margin-top: 3px;

      ul {
        padding: 0;
      }

      li {
        display: flex;
        align-items: center;
        gap: 8px;

        &::before {
          content: "";
          display: inline-block;
          width: 16px;
          height: 16px;
          flex-shrink: 0;
          background-image: url("../images/blogs/layer1.png");
          background-size: contain;
          background-repeat: no-repeat;
        }
      }

      a {
        color: var(--wp--preset--color--accent-4);
        transition: all 0.3s ease;

        &:hover {
          color: var(--wp--preset--color--accent-5);
        }
      }
    }

    /* Tags */
    .tags ul {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 24px;
      padding: 0;

      li {
        width: fit-content;
        list-style: none;
        margin-top: 10px;

        a {
          color: var(--wp--preset--color--accent-7);
          padding: 9px 24px;
          border: 1px solid var(--wp--preset--color--accent-7);
          text-decoration: none;
          transition: all 0.3s ease;

          &:hover {
            color: var(--wp--preset--color--accent-5);
            border-color: var(--wp--preset--color--accent-5);
          }
        }
      }
    }
  }
}
/* /////////////// end-post-page //////////////////// */

/* /////////////// start-blog-section-plus //////////////////// */

.blog-section-plus {
  .wp-block-post-featured-image {
    width: clamp(134px, 18vw, 322px);
  }
  .is-layout-constrained {
    height: stretch;
  }

  .content {
    .wp-block-post-excerpt__excerpt {
      /* font-size: clamp(1rem, 1.3125rem + -1vw, 0.75rem); */
    }
    .wp-block-post-excerpt__more-text {
      a {
        text-decoration: underline;
        text-transform: capitalize;
        /* font-size: clamp(1rem, 0.6875rem + 1vw, 1.25rem); */
        color: var(--wp--preset--color--accent-5);
      }
    }
  }

  .main-btn {
    padding: 0;
    border: none;
    overflow: hidden;

    a {
      background-color: var(--wp--preset--color--base);
      border: 1px solid var(--wp--preset--color--contrast);
      display: inline-block;
      padding: 10px 20px;
      color: var(--wp--preset--color--contrast);
      text-decoration: none;
      position: relative;
      z-index: 1;
      transition: color 0.4s ease;

      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background-color: var(--wp--preset--color--contrast);
        z-index: -1;
        transition: width 0.4s ease;
      }

      &:hover::before {
        width: 100%;
      }

      &:hover {
        color: var(--wp--preset--color--accent-1);
      }
    }
  }
}

@media (max-width: 425px) {
  .blog-section-plus {
    .is-layout-constrained {
      height: stretch;
    }

    .wp-block-post-featured-image{
    height: 176px !important;
  }

    .content {
      padding: 9px !important;

      .wp-block-post-title,
      .wp-block-post-excerpt {
        margin-block-start: 5px;
      }
      .wp-block-post-excerpt__more-text {
        margin-bottom: 0;
        margin-top: 7px;
        a {
          text-decoration: underline;
          color: var(--wp--preset--color--accent-5);
        }
      }
    }

    .columns-2 {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      overflow-x: auto;
      overflow-y: visible !important;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      gap: 16px;
      height: auto !important;

      scrollbar-width: none;
      &::-webkit-scrollbar {
        display: none;
      }

      .wp-block-post {
        flex: 0 0 100vw;
        scroll-snap-align: start;
        height: auto !important;
        overflow: visible !important;
      }

      .wp-block-post .first-row {
        min-height: 176px !important;
      }

      .wp-block-post .blog-img,
      .wp-block-post .blog-img img {
        height: 271px !important;
        width: auto !important;
      }
    }
  }
}

/* /////////////// end-blog-section-plus //////////////////// */
