/* ==========================================================================
   3. Header Styles
   ========================================================================== */

/* ==========================================================================
   Global Header Transitions
   ========================================================================== */
.main-header {
  margin-top: 0 !important;
  position: sticky !important;
  top: 0;
  z-index: 9999;
  background-color: var(--wp--preset--color--base, #fff);

  a {
    transition: color 0.25s ease;

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

  .mega-menu__swatch,
  .mega-menu__style-tag {
    background-color: var(--wp--preset--color--accent-3);

    p {
      border: 1px solid transparent !important;
      transition: border-color 0.3s ease;
    }

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

    a {
      color: inherit;

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

  .header-baty .wp-block-categories select {
    border: none;
    background-color: transparent;
  }

  .header-baty .postform {
    background-color: transparent;
    font-size: 16px;
  }

  .header-baty .postform option {
    background-color: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--accent-1);
  }
}

/* ==========================================================================
   Mega Menu
   ========================================================================== */
.baty-mega-menu {
  position: fixed;
  z-index: 9998;
  background-color: var(--wp--preset--color--base, #fff);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

  :where(.is-layout-constrained)>* {
    margin-block-start: 0 !important;
    margin-block-end: 0;
  }

  .wp-element-button,
  .wp-block-button__link {
    border-radius: 4px;
    padding: 10px 8px !important;
  }

  .wp-block-button__link span {
    font-size: 0;
  }
}

.mega-menu__product-links li {
  list-style: none;
}

/* ==========================================================================
   Shared Layout
   ========================================================================== */
.header-baty {
  overflow: hidden;
  border: 1px solid var(--wp--preset--color--contrast);
}

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

/* ==========================================================================
   GLOBAL ICON RULE
   ========================================================================== */

/* Hide search by default */
.second-head .search-btn {
  display: none !important;
}

/* Icon base */
.second-head .wishlist-btn,
.second-head .wp-block-woocommerce-customer-account,
.second-head .wc-block-mini-cart {
  position: relative;
}

/* Icon borders */
.second-head .wishlist-btn::after,
.second-head .wp-block-woocommerce-customer-account::after,
.second-head .wc-block-mini-cart::after {
  content: "";
  position: absolute;
  right: 0;
  top: -1000px;
  width: 1px;
  height: 2000px;
  background-color: var(--wp--preset--color--contrast);
  pointer-events: none;
}

/* ==========================================================================
   ACTIVE HEADER (426px+)
   ========================================================================== */
.second-head .wc-block-mini-cart__badge {
  font-size: 12px !important;
  top: 0 !important;
  left: 0 !important;
  border-radius: 0 !important;
  color: var(--wp--preset--color--base) !important;
  background-color: var(--wp--preset--color--contrast) !important;
}

@media (min-width: 426px) {
  .second-head {
    gap: 0 !important;
  }

  /* Icons layout */
  .second-head .wishlist-btn,
  .second-head .wp-block-woocommerce-customer-account,
  .second-head .wc-block-mini-cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 72px;
    min-width: 72px;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Inner icon center */
  .second-head .wishlist-btn .wp-block-button__link,
  .second-head .wc-block-customer-account__link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 100%;
    margin: 0 0 0 10px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }


  /* ==========================================================================
     LINKS BORDER (added)
     ========================================================================== */

  .wp-block-navigation li {
    position: relative;
  }

  .wp-block-navigation li::after {
    content: "";
    position: absolute;
    right: -12px;
    top: -1000px;
    width: 1px;
    height: 2000px;
    background-color: var(--wp--preset--color--contrast);
    pointer-events: none;
  }

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

/* ==========================================================================
   SEARCH (768px+ only)
   ========================================================================== */
@media (min-width: 768px) {
  .second-head .search-btn {
    display: flex !important;
    position: relative;
    align-items: center !important;
    justify-content: center !important;
    width: 72px;
    min-width: 72px;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  .second-head .search-btn a,
  .second-head .search-btn .wp-block-button__link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .second-head .search-btn::after {
    content: "";
    position: absolute;
    right: 0;
    top: -1000px;
    width: 1px;
    height: 2000px;
    background-color: var(--wp--preset--color--contrast);
    pointer-events: none;
  }
}

/* ==========================================================================
   SEARCH HIDE fallback
   ========================================================================== */
@media (max-width: 767px) {
  .second-head .search-btn {
    display: none !important;
  }
}

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

  .navigation-header {
    display: none;
  }

  .header-baty .wp-block-site-logo-wrapper,
  .header-baty .wp-block-categories {
    position: relative;
  }

  .header-baty .wp-block-site-logo-wrapper::before,
  .header-baty .wp-block-categories::before {
    content: "";
    position: absolute;
    top: -1000px;
    width: 1px;
    height: 2000px;
    background-color: var(--wp--preset--color--contrast);
  }

  .header-baty .wp-block-site-logo-wrapper::before {
    right: -10px;
  }

  .header-baty .wp-block-categories::before {
    right: -7px;
  }
}

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

  .navigation-header {
    display: none;
  }

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

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 599px) {

  .header-baty .wp-block-categories,
  .main-navigation-header {
    display: none !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open {
    width: 70vw !important;
    max-width: 70vw !important;
    left: 0 !important;
    right: auto !important;
  }

  .wp-block-navigation__responsive-container .wp-block-navigation-item,
  .wp-block-navigation__responsive-container .wp-block-navigation-item__content {
    display: block !important;
    width: 100% !important;
  }

  .wp-block-navigation__responsive-container *::before,
  .wp-block-navigation__responsive-container *::after {
    display: none !important;
  }

  .wp-block-navigation__responsive-container .wp-block-woocommerce-customer-account,
  .wp-block-navigation__responsive-container .wc-block-mini-cart {
    display: none !important;
  }

  .wp-block-navigation__responsive-container .second-head {
    display: block !important;
    width: 100%;
  }

  .wp-block-navigation__responsive-container .second-head .wishlist-btn {
    display: flex !important;
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 0 20px !important;
  }

  .wp-block-navigation__responsive-container .second-head a {
    width: 100% !important;
    justify-content: flex-start !important;
  }
}

/* ==========================================================================
   Small Mobile (0–425 reset)
   ========================================================================== */
@media (max-width: 425px) {

  .second-head .wishlist-btn,
  .second-head .wp-block-woocommerce-customer-account,
  .second-head .wc-block-mini-cart {
    width: auto !important;
    min-width: auto !important;
  }

  .second-head .wishlist-btn a span {
    margin-right: 15px;
  }


  .wp-block-navigation li::before,
  .wp-block-navigation li::after {
    display: none !important;
  }

  /* .second-head .wc-block-mini-cart__badge {
    font-size: 9px !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--contrast);
      /* 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--contrast);
          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--accent-5) !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 {

    /* Base Styles */
    a span,
    button span {
      background-color: var(--wp--preset--color--contrast);
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      font-size: 0;
      padding: 0;
      border: none;
      cursor: pointer;
      /* Added transition for a smooth color change */
      transition:
        background-color 0.25s ease,
        color 0.25s ease;
    }

    /* Hover Styles */
    /* This triggers when you hover the link/button OR the span itself */
    a:hover span,
    button:hover span,
    a span:hover,
    button span:hover {
      background-color: var(--wp--preset--color--accent-5) !important;
    }

    /* If there is an icon or SVG inside the span that needs to change color too */
    a:hover span *,
    button:hover span * {
      fill: var(--wp--preset--color--base);
      /* Example: changes icon color to white/base */
      color: var(--wp--preset--color--base);
    }
  }
}

/* --- الميديا كويري للموبايل --- */
@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-components-product-price {
          max-width: 100%;
        }

        .wc-block-product {
          flex: 0 0 calc(100vw - 20px) !important;
          /* ✅ accounts for padding on both sides */
          width: calc(100vw - 20px) !important;
          max-width: calc(100vw - 20px) !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 {

  /* Banner Image Covers */
  .img-cover {
    min-height: 549px !important;
  }

  /* Button Styles */
  .wp-element-button {
    position: relative;
    padding: 15px 45px;
    background-color: var(--wp--preset--color--base);
    border: 2px solid var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--contrast);
    z-index: 1;
    display: inline-block;
    overflow: visible;
    background-image: linear-gradient(var(--wp--preset--color--contrast),
        var(--wp--preset--color--contrast));
    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;

    &::before,
    &::after {
      content: "";
      transform: translateY(-180%) rotate(90deg);
      position: absolute;
      width: 8px;
      height: 8px;
      background-color: var(--wp--preset--color--contrast);
      box-shadow: 24px 0px 0px var(--wp--preset--color--contrast);
      transition: all 0.4s ease;
    }

    &::before {
      left: 20px;
      top: 24px;
    }

    &::after {
      right: 20px;
      top: 26px;
    }

    &:hover {
      color: var(--wp--preset--color--accent-1) !important;
      background-size: 100% 100%;

      &::before,
      &::after {
        background-color: var(--wp--preset--color--base);
        box-shadow: 24px 0px 0px var(--wp--preset--color--base);
      }
    }
  }

  /* Title Styles */
  .main-title {
    h3 {
      opacity: 0.4;
      transition: all 0.3s ease;
      cursor: pointer;

      &.is-active {
        opacity: 1;
        color: var(--wp--preset--color--contrast);
      }

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

    &:hover h3.is-active {
      opacity: 0.4;
    }
  }

  /* Text & Groups */
  .wp-block-group p {
    color: var(--wp--preset--color--contrast) !important;
  }

  /* Marquee Animation */
  .designe-marquee {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;

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

  /* Media Queries nested inside the parent for organization */
  @media (max-width: 1024px) {
    .img-cover {
      min-height: 470px !important;
    }
  }

  @media (max-width: 768px) {
    .first-row {
      padding-right: 0 !important;
      padding-left: 0 !important;
    }

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

    .wp-element-button {

      &::before,
      &::after {
        top: 18px;
      }
    }
  }

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

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

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

      .main-title {
        padding: 0 !important;

        .wp-block-heading {
          margin-top: 6px;
        }
      }
    }

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

    .img-cover,
    .wp-block-cover,
    .wp-block-cover-image {
      min-height: 166px !important;
      padding: 0 !important;
    }
  }
}

/* Keyframes remain global */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-30%);
  }
}

/* ================= 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--accent-5) !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--contrast);
          padding: 9px 24px;
          border: 1px solid var(--wp--preset--color--contrast);
          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--contrast);
          padding: 9px 24px;
          border: 1px solid var(--wp--preset--color--contrast);
          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--accent-5);
        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;

      img {
        height: 100% !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 //////////////////// */