html {
  direction: rtl;
}

blockquote,
.wp-block-quote {
  position: relative;
  margin: 2em 0;
  padding: 2em 3em 2em 2em;
  border: none;
  background: linear-gradient(-135deg, rgba(111, 156, 80, 0.06) 0%, rgba(230, 244, 215, 0.4) 100%);
  border-radius: 10px 0 0 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1.125em;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #333;
}

blockquote::before,
.wp-block-quote::before {
  content: "“";
  position: absolute;
  right: 0.35em;
  top: -0.05em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6em;
  line-height: 1;
  color: #6F9C50;
  opacity: 0.2;
}

ul,
ol {
  margin: 0 3em 1.5em 0;
}

li > ul,
li > ol {
  margin-bottom: 0;
  margin-right: 1.5em;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 6px 10px;
  color: #666;
  font-size: 14px;
  cursor: pointer;
}

.header-content.header-layout-1 .main-navigation {
  order: 2;
  margin-right: 0;
  margin-left: 20px;
  justify-content: flex-end; /* Menu on right side */
  flex: 1 1 auto; /* Allow to shrink if needed */
  min-width: 0; /* Allow flex item to shrink below content size */
  max-width: 100%; /* Prevent overflow */
}

.header-content.header-layout-1 .main-navigation ul {
  justify-content: flex-end; /* Menu items on right */
  margin-right: 0; /* Override media query */
  flex-wrap: wrap; /* Allow menu items to wrap if needed */
  min-width: 0;
}

.header-content.header-layout-1 .header-search-toggle {
  order: 4;
  margin-right: 10px;
  flex: 0 0 auto;
  flex-shrink: 0; /* Prevent search button from shrinking */
}

.header-content.header-layout-2 .site-branding {
  order: 1;
  margin-left: 0;
  flex: 0 0 auto;
  min-width: 0;
  flex-shrink: 0; /* Prevent logo from shrinking */
}

.header-content.header-layout-2 .main-navigation {
  order: 1;
  margin-right: 20px;
  margin-left: 0;
  justify-content: flex-start; /* Override media query */
  flex: 1 1 auto; /* Allow to grow and shrink */
  min-width: 0; /* Allow flex item to shrink below content size */
  max-width: none; /* Remove max-width constraint */
  position: relative; /* Ensure proper stacking */
  z-index: 1; /* Below search button */
}

.header-content.header-layout-2 .main-navigation ul {
  justify-content: flex-start; /* Override media query */
  margin-right: 0; /* Override media query */
  flex-wrap: wrap; /* Allow menu items to wrap if needed */
  min-width: 0;
}

.header-content.header-layout-2 .header-social-icons {
  order: 2;
  margin-right: auto;
  flex: 0 0 auto;
  min-width: 0;
  flex-shrink: 0; /* Prevent social icons from shrinking */
  position: relative;
  z-index: 2;
  max-width: 100%; /* Prevent overflow */
}

.header-content.header-layout-2 .header-search-toggle {
  order: 3;
  margin-right: 10px;
  flex: 0 0 auto;
  flex-shrink: 0; /* Prevent search button from shrinking */
  position: relative;
  z-index: 3; /* Above menu and socials */
  max-width: 100%; /* Prevent overflow */
}

.header-content.header-layout-3 .main-navigation {
  order: 2;
  position: absolute;
  right: 50%;
  top: 50%; /* Center vertically */
  transform: translate(50%, -50%); /* Center both horizontally and vertically */
  margin-right: 0;
  margin-left: 0;
  justify-content: center; /* Override media query */
  flex: 0 0 auto; /* Override flex: 1 from media query */
  width: auto;
  max-width: calc(100% - 300px); /* Prevent menu from overlapping logo and icons */
  min-width: 0;
}

.header-content.header-layout-3 .main-navigation ul {
  justify-content: center; /* Override media query */
  margin-right: 0; /* Override media query */
  flex-wrap: nowrap; /* Keep menu items on one line */
  white-space: nowrap; /* Prevent text wrapping within menu items */
}

.header-content.header-layout-3 .header-social-icons {
  order: 3;
  margin-right: auto;
}

.header-content.header-layout-3 .header-search-toggle {
  order: 4;
  margin-right: 10px;
}

.header-content.header-layout-3:not(:has(.header-social-icons)) .header-search-toggle {
  margin-right: auto;
}

.main-navigation {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: 20px; /* Space between menu and social icons */
}

.header-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: transparent;
  color: #2c3e50;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(44, 62, 80, 0.2);
  cursor: pointer;
  box-shadow: none;
  padding: 0;
  margin-right: 10px;
  flex-shrink: 0; /* Prevent distortion */
}

.header-search-overlay .header-search-close {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  z-index: 10000;
}

.header-search-overlay .header-search-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: rotate(-90deg);
}

.header-search-overlay .header-search-overlay-content .header-search-form-wrapper .search-form .search-field {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 6px 6px 0;
  color: #ffffff;
  padding: 12px 15px;
  font-size: 14px;
  width: 100%;
  margin: 0;
  transition: all 0.3s ease;
}

.header-search-overlay .header-search-overlay-content .header-search-form-wrapper .search-form .search-submit {
  background-color: #6F9C50;
  border: none;
  border-radius: 6px 0 0 6px;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  min-width: 100px;
}

.header-content .header-social-icons {
  margin-left: 0; /* Remove margin since search button has its own margin-left */
}

.main-navigation {
  display: block;
  width: 100%;
}

.main-navigation ul {
  display: none;
  list-style: none;
  margin: 0;
  padding-right: 0;
}

.main-navigation ul ul {
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  float: right;
  position: absolute;
  top: 100%;
  right: -999em;
  z-index: 99999;
}

.main-navigation ul ul ul {
  right: -999em;
  top: 0;
}

.main-navigation ul ul li:hover > ul, .main-navigation ul ul li.focus > ul {
  display: block;
  right: auto;
}

.main-navigation ul ul a {
  width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
  right: auto;
}

.main-navigation li {
  position: relative;
}

.main-navigation {
  display: block;
  position: relative;
  text-align: left;
  margin-right: auto; /* Push navigation to the right */
}

.main-navigation ul {
  display: none;
  list-style: none;
  margin: 0;
  padding-right: 0;
}

.main-navigation ul ul {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  float: right;
  position: absolute;
  top: 100%;
  right: -999em;
  z-index: 99999;
  background-color: #fff;
  border-radius: 8px;
  padding: 12px 0;
  width: 250px;
  min-width: 250px;
  display: block;
  flex-direction: column;
  text-align: right; /* Align dropdown items to the left */
}

.main-navigation ul ul::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: #6F9C50;
  background: linear-gradient(-90deg, #6F9C50, #5a7d3f);
}

.main-navigation ul ul ul {
  right: -999em;
  top: 0;
  border-radius: 8px;
}

.main-navigation ul ul li:hover > ul, .main-navigation ul ul li.focus > ul {
  display: block;
  right: 100%;
}

.main-navigation ul ul a {
  width: 100%;
  padding: 0.6rem 1.2rem;
  font-size: 0.95em;
  border-bottom: none;
  transition: color 0.2s ease, background 0.2s ease;
  display: block;
  white-space: normal; /* Allow text to wrap */
  line-height: 1.4; /* Better line spacing for wrapped text */
  word-wrap: break-word; /* Ensure long words don't overflow */
  position: relative; /* For full-width hover effect */
  text-align: right; /* Ensure dropdown text aligns left */
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
  right: auto;
}

.main-navigation li {
  position: relative;
  margin-left: 25px;
}

.main-navigation li:last-child {
  margin-left: 0;
}

.menu-toggle {
  display: inline-block;
  background: none;
  background-color: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  padding: 0.75rem;
  cursor: pointer;
  margin-right: auto;
  flex-direction: column;
  justify-content: space-between;
  appearance: none;
}

.menu-toggle.toggled span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.toggled span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.page-links span.page-links-title {
  background: none;
  border: none;
  padding-right: 0;
  margin-left: 0.5em;
  font-weight: 600;
  color: #333;
}

.entry-footer .edit-link {
  margin-right: auto;
}

.entry-footer .tags-links a::before {
  content: "#";
  opacity: 0.5;
  margin-left: 2px;
}

.entry-footer .comments-link a::before {
  content: "\f075"; /* Comment icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 5px;
  font-size: 0.9em;
  opacity: 0.7;
}

.entry-footer .edit-link a::before {
  content: "\f304"; /* Edit icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 5px;
  font-size: 0.9em;
  opacity: 0.7;
}

.comment-list .children {
  margin-right: 3em;
  padding-right: 1.5em;
  border-right: 1px solid #eee;
  list-style-type: none;
}

.comment-list .comment-author .avatar {
  margin-left: 15px;
  border-radius: 50%;
  border: 2px solid #f2f2f2;
}

.comment-list .comment-metadata {
  margin-right: auto;
  font-size: 0.85em;
  color: #888;
}

.comment-list .comment-content blockquote {
  margin-right: 1em;
  padding-right: 1em;
  border-right: 3px solid #e0e0e0;
  font-style: italic;
  color: #666;
}

.comment-list .reply .comment-reply-link::before {
  content: "\f3e5"; /* Reply icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 5px;
  font-size: 0.9em;
}

.comment-list .pingback,
.comment-list .trackback {
  padding: 1em;
  margin-bottom: 1em;
  background-color: #f9f9f9;
  border-right: 3px solid #eee;
}

.comment-list .pingback .edit-link,
.comment-list .trackback .edit-link {
  font-size: 0.85em;
  margin-right: 1em;
}

.comment-navigation .nav-previous a::before {
  content: "\f053"; /* Left arrow icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 5px;
  font-size: 0.8em;
}

.comment-navigation .nav-next a::after {
  content: "\f054"; /* Right arrow icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 5px;
  font-size: 0.8em;
}

.no-comments {
  background-color: #f9f9f9;
  padding: 1em;
  border-right: 3px solid #ddd;
  font-style: italic;
  color: #666;
  margin: 1.5em 0;
}

.comment-respond .comment-reply-title small {
  margin-right: 1em;
  font-size: 0.7em;
  font-weight: normal;
}

.comment-respond .comment-form-cookies-consent input {
  margin-left: 10px;
}

.search-form .search-field {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0 6px 6px 0;
  color: #333;
  padding: 12px 15px;
  font-size: 14px;
  width: 100%;
  margin: 0;
}

.search-form .search-submit {
  background-color: #6F9C50;
  border: none;
  border-radius: 6px 0 0 6px;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  min-width: 100px;
}

.login-form .login-remember label,
.register-form .login-remember label {
  margin-bottom: 0;
  margin-right: 10px;
}

.widget.widget_search .search-form .search-field {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0 6px 6px 0;
  color: #333;
  padding: 12px 15px;
  font-size: 14px;
  width: 100%;
  margin: 0;
}

.widget.widget_search .search-form .search-submit {
  background-color: #6F9C50;
  border: none;
  border-radius: 6px 0 0 6px;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  min-width: 100px;
  position: static;
  width: auto;
  height: auto;
}

.widget.widget_search .wp-block-search .wp-block-search__input {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0 6px 6px 0;
  color: #333;
  padding: 12px 15px;
  font-size: 14px;
  width: 100%;
  margin: 0;
}

.widget.widget_search .wp-block-search .wp-block-search__button {
  background-color: #6F9C50;
  border: none;
  border-radius: 6px 0 0 6px;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  min-width: 100px;
}

img.alignleft,
.wp-caption.alignleft {
  margin-left: 1.5em;
  margin-bottom: 1em;
  float: right;
}

img.alignright,
.wp-caption.alignright {
  margin-right: 1.5em;
  margin-bottom: 1em;
  float: left;
}

.footer-widget-area .widget .widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 25%;
  height: 2px;
  background-color: #6F9C50;
}

.footer-widget-area .widget .wp-block-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 25%;
  height: 2px;
  background-color: #6F9C50;
}

.footer-widget-area .widget ul {
  padding-right: 0;
  list-style: none;
}

.footer-widget-area .widget ul li a:hover {
  color: #6F9C50;
  padding-right: 5px;
}

.footer-widget-area .widget ul li a::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 8px;
  font-size: 0.85em;
  color: #6F9C50;
  opacity: 0.7;
}

.footer-widget-area .widget .recent-posts-widget li img {
  width: 70px;
  height: 70px;
  border-radius: 5px;
  margin-left: 15px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.footer-widget-area .widget .recent-posts-widget li .post-info .post-date i {
  margin-left: 5px;
  font-size: 0.9em;
  color: #6F9C50;
}

.footer-widget-area .widget .tagcloud a {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 4px 10px;
  margin: 0 0 5px 5px;
  border-radius: 3px;
  font-size: 0.8em;
  transition: all 0.3s ease;
}

.footer-widget-area .widget.widget_search .wp-block-search .wp-block-search__label::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 25%;
  height: 2px;
  background-color: #6F9C50;
}

.footer-widget-area .widget.widget_search .search-form .search-field {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 6px 6px 0;
  color: #ffffff;
  padding: 12px 15px;
  font-size: 14px;
  width: 100%;
  margin: 0;
}

.footer-widget-area .widget.widget_search .search-form .search-submit {
  background-color: #6F9C50;
  border: none;
  border-radius: 6px 0 0 6px;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  min-width: 100px;
}

.accepta-hero-section .accepta-hero-video-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.accepta-hero-section .accepta-hero-video-background .accepta-hero-video-embed {
  position: absolute;
  top: 50%;
  right: 50%;
  width: 100%;
  height: 100%;
  transform: translate(50%, -50%);
  min-width: 100%;
  min-height: 100%;
  pointer-events: none;
}

.accepta-hero-section .accepta-hero-video-background .accepta-hero-video-embed iframe {
  pointer-events: none;
}

.accepta-hero-section .accepta-hero-video-background .accepta-hero-video-embed::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.accepta-hero-section .accepta-hero-video-background .accepta-hero-video-embed iframe {
  position: absolute;
  top: 50%;
  right: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(50%, -50%);
}

.accepta-hero-section .accepta-hero-video-background .accepta-hero-video-element {
  position: absolute;
  top: 50%;
  right: 50%;
  width: 100%;
  height: 100%;
  transform: translate(50%, -50%);
  object-fit: cover;
  min-width: 100%;
  min-height: 100%;
}

.accepta-hero-section .accepta-hero-video-controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 4;
}

.accepta-hero-section .accepta-hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.screen-reader-text:focus {
  background-color: #f5f5f5;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  right: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

@media screen and (max-width: 599px) {
  .main-navigation {
    width: auto;
    position: relative;
  }
  .branding-text {
    margin-top: 0;
    margin-right: 0;
  }
  .main-navigation {
    width: auto;
    margin-top: 0;
    margin-right: auto;
    flex-shrink: 0;
  }
  .header-content .header-search-toggle {
    flex-shrink: 0;
    margin-right: 8px;
  }
  .comment-list .children {
    margin-right: 1em;
    padding-right: 1em;
  }
}

@media screen and (min-width: 768px) {
  .header-content.header-layout-3 .main-navigation {
    display: flex;
    align-items: center;
    justify-content: center; /* Override media query */
    margin-right: 0; /* Override media query */
    flex: 0 0 auto; /* Override flex: 1 from media query */
  }
  .header-content.header-layout-3 .main-navigation ul {
    display: flex;
    justify-content: center; /* Override media query */
    margin-right: 0; /* Override media query */
    flex-wrap: nowrap; /* Keep menu items on one line */
  }
  .header-content:not(.header-layout-1):not(.header-layout-2):not(.header-layout-3) .main-navigation {
    justify-content: flex-end; /* Align navigation to the right */
    margin-right: auto; /* Push navigation to the right edge */
    flex: 1; /* Allow navigation to take up available space */
  }
  .header-content:not(.header-layout-1):not(.header-layout-2):not(.header-layout-3) .main-navigation .main-navigation ul {
    justify-content: flex-end; /* Align menu items to the right */
    margin-right: auto; /* Push menu items to the right */
  }
}

@media screen and (max-width: 767px) {
  .main-navigation {
    display: flex;
    align-items: center;
    width: auto;
    margin-right: auto;
    flex-shrink: 0;
  }
  .header-content.header-layout-1 .main-navigation,
  .header-content.header-layout-2 .main-navigation,
  .header-content.header-layout-3 .main-navigation {
    position: static !important;
    transform: none !important;
    right: auto !important;
    margin-right: auto !important;
  }
  .main-navigation.toggled ul ul ul {
    padding-right: 1rem;
    margin-right: 0.25rem;
    padding-bottom: 0.5rem; /* Match top spacing so last child has equal space below */
  }
}

@media (min-width: 768px) {
  .entry-footer > span {
    margin-bottom: 0;
    margin-left: 0;
  }
}

@media screen and (max-width: 576px) {
  .comment-list .comment-metadata {
    display: block;
    margin-right: 0;
    margin-top: 0.5em;
    margin-right: 45px; /* Align with comment author name */
  }
  .comment-form-author,
  .comment-form-email,
  .comment-form-url {
    width: 100%;
    margin-left: 0;
  }
}