/**
 * Theme Name:     meo child theme
 * Author:         websilt
 * Template:       hello-elementor
 * Text Domain:	   meo-child-theme
 * Description:    Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
 */

.menu-dd .menu-item ._svg {
    width: 2em !important;
}
.elementor-12 .elementor-element.elementor-element-5ad77402 .elementor-nav-menu--main:not(.e--pointer-framed) .elementor-item:before, .elementor-12 .elementor-element.elementor-element-5ad77402 .elementor-nav-menu--main:not(.e--pointer-framed) .elementor-item:after {border-radius:12px !important;  }
.menu-dd2 ul {
 	 min-width:400px !important;
	 word-wrap:break-word !important;
}
  .menu-dd a:hover span svg, .menu-dd .highlighted span svg {
	fill:#ffffff !important;
 }	


.elementor-nav-menu .menu-item-has-children > a .sub-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
  transform-origin: center;
}

.elementor-nav-menu .menu-item-has-children:hover > a .sub-arrow {
  transform: scaleY(-1);
}

.elementor-nav-menu > li.contact-menu > a {
  background-color: #3483C0;
  font-family: "Poppins", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-transform: capitalize;
  line-height: 1em;
  color: #FFFFFF !important;
  border: 1px solid #467FF7;
  border-radius: 10px !important;
  padding: 16px 45px;
  transition: all 0.3s ease;
	margin-left:20px !important;
	    width: 100px !important;
}

.elementor-nav-menu > li.contact-menu > a:hover {
  background-color: #fff !important;
  color: #3483C0 !important;
}


  .zoomImg .elementor-image-box-wrapper .elementor-image-box-img {
    overflow: hidden;
    display: block;
   
 }
.zoomImg .elementor-image-box-wrapper img  {
    transition: transform 0.5s ease-in-out !important;
}

.zoomImg:hover .elementor-image-box-wrapper img   {
    transform: scale(1.15); 
}  

 .el-img-zoom {
  overflow: hidden; 
	border-top-right-radius:20px;
	border-top-left-radius:20px;
}

 .el-img-zoom img {
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

 .el-img-zoom:hover img {
  transform: scale(1.15);
}

 .el-img-zoom  {
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}


.my-hover-box {
    transition: background-color 0.5s ease;
    overflow: hidden; 
}

.my-hover-box:hover {
    background-color: #DFF1FF; 
}

.my-hover-box .elementor-widget-image {
    transition: transform 0.5s ease-in-out;
}

.my-hover-box:hover .elementor-widget-image {
    transform: translateY(5px);
}

.my-hover-box .elementor-heading-title {
    transition: transform 0.5s ease-in-out, color 0.5s ease;
}

.my-hover-box:hover .elementor-heading-title {
    transform: translateY(-8px); 
    color: #ffffff;
}

.my-hover-box .elementor-widget-text-editor p {
    transition: 
        transform 0.5s ease-in-out,
        opacity 0.5s ease,
        color 0.5s ease;
}

.my-hover-box:hover .elementor-widget-text-editor p {
    transform: translateY(-8px);
    opacity: 0.9;
 } 

.heading-c1 {font-size:18px !important}

/*custom pagination for loop gird pagination */

/* Center the whole pagination */
.custom-pagination .elementor-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
	margin:40px 0 0 0;
}

/* Normal page numbers */
.custom-pagination .elementor-pagination .page-numbers {
    font-weight: 600;
    transition: all 0.3s;
}

/* Hover + active */
.custom-pagination .elementor-pagination .page-numbers:hover,
.custom-pagination .elementor-pagination .page-numbers.current {
    color: #3483C0;
}

/* Hide text inside prev/next completely */
.custom-pagination .elementor-pagination .page-numbers.prev,
.custom-pagination .elementor-pagination .page-numbers.next {
    font-size: 0;
    line-height: 0;
}

 /* Circle button */
.custom-pagination .elementor-pagination .page-numbers.prev,
.custom-pagination .elementor-pagination .page-numbers.next {
    width: 44px;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: background-color 0.3s, border-color 0.3s;
    cursor: pointer;
}

/* Arrow shape */
.custom-pagination .elementor-pagination .page-numbers.prev::before,
.custom-pagination .elementor-pagination .page-numbers.next::after {
    content: "";
    width: 12px;
    height: 12px;

    border-top: 3px solid #3483C0;
    border-right: 3px solid #3483C0;

    display: block;
    box-sizing: border-box;

    transition: border-color 0.3s;
}

/* Left arrow */
.custom-pagination .elementor-pagination .page-numbers.prev::before {
    transform: rotate(-135deg);
}

/* Right arrow */
.custom-pagination .elementor-pagination .page-numbers.next::after {
    transform: rotate(45deg);
}

/* Hover fill */
.custom-pagination .elementor-pagination .page-numbers.prev:hover,
.custom-pagination .elementor-pagination .page-numbers.next:hover {
    background-color: #3483C0;
    border-color: #3483C0;
}

/* Arrow turns white on hover */
.custom-pagination .elementor-pagination .page-numbers.prev:hover::before,
.custom-pagination .elementor-pagination .page-numbers.next:hover::after {
    border-color: #fff;
}


/*post*/
  
.custom-filters {
  display: flex;
  justify-content:center;
  color:#000;
  gap: 24px;
  margin-bottom: 40px;
}

.custom-filters input,
.custom-filters select {
  border: none;
  border-bottom: 2px solid #2F80ED;
  padding: 10px 6px;
  font-size: 15px;
  outline: none;
}

/* Grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}


/* Smooth transition container */
#posts-container {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* While loading */
#posts-container.is-loading {
  opacity: 0;
  transform: translateY(12px);
}

/* After load */
#posts-container.is-loaded {
  opacity: 1;
  transform: translateY(0);
}


/* Card */
.post-card {
  border: 1.5px solid #2F80ED;
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.post-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.post-card h3 {
  font-size: 20px;
  margin: 14px 16px 10px 16px;
}

.post-card p {
  font-size: 16px;
  color: #374151;
  margin: 10px 16px 10px 16px;
}

.read-more {
  padding: 10px 18px;
  margin: auto 16px 20px 16px;
  border-radius:10px ;
  text-decoration: none;
  width: fit-content;	
	background-color: #3483C0;
    font-family: "Poppins", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: capitalize;
    font-style: normal;
    line-height: 1em;
    letter-spacing: 0px;
    word-spacing: 0em;
    fill: #FFFFFF;
    color: #FFFFFF;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #3483C0;
}
.read-more:hover {
	background-color: #FFFFFF;
    color: #467FF7;
}
.acf-icon-list {
  list-style: none;
  padding: 0;
  margin: 12px 16px;
}

.acf-icon-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.acf-icon-img, .acf-icon-img svg {
  width: 20px !important;
  height: auto;
  object-fit: contain;
}

.acf-icon-text {
  font-size: 16px;
  color: #000;
}


.custom-filters {
  display: flex;
   gap: 48px;
  margin-bottom: 40px;
}

/* SEARCH */
.search-box {
  position: relative;
  width: 250px;
}

.search-box input {
  width: 100%;
  border: 0 !important;
  border-bottom: 1px solid #2F80ED !important;
  padding: 10px 36px 4px 4px;
  font-size: 16px;
  outline: none;
}

.search-box button {
  position: absolute;
  right: 0;
  bottom: 0;
  background: none !important;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #2F80ED;
  padding: 6px;
  line-height: 1;
}

.search-box button svg {
 fill: #2F80ED !important;
  pointer-events: none; 
  width:20px !important;
  height:20px !important;
}

/* CATEGORY */
.category-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-box label {
  font-size: 14px;
  color: #374151;
}

.category-box select {
  border: none;
  border-bottom: 2px solid #2F80ED;
  padding: 10px 6px;
  font-size: 15px;
  outline: none;
  background: transparent;
}




/* Responsive */
@media (max-width: 768px) {
  .custom-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .search-box {
    width: 100%;
  }

	
}


/* multi select dropdown */
.select2-container--default .select2-selection--multiple {
  border: none !important;
  border-bottom: 1px solid #3483C0 !important;;
  border-radius: 0;
  min-height: 42px;
	overflow-x:hidden;
}

.select2-results__option {
  display: flex;
  align-items: center;
}

.select2-results__option input[type="checkbox"] {
  pointer-events: none;
}

.select2-container--default .select2-selection__choice {
  background-color: #3483C0;
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
}

/* Selected option in dropdown */
.select2-container--default
.select2-results__option[aria-selected="true"] {
  background-color: #3483C0 !important;
  color: #fff !important;
}

/* Hover state */
.select2-container--default
.select2-results__option--highlighted[aria-selected] {
  background-color: #3483C0 !important;
  color: #fff !important;
}

/* Selected tags (top area) */
.select2-container--default
.select2-selection__choice {
  background-color: #3483C0 !important;
  border: none;
  color: #fff;
  border-radius: 6px;
}
.select2-container--default
.select2-selection--multiple::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #3483C0;
  pointer-events: none;
 color: #fff;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {color: #fff !important;}

@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
.elementor-nav-menu > li.contact-menu > a {  
    margin-bottom: 20px !important;
	 margin-top: 10px !important;
 }

 .menu-dd2 ul {
 		 min-width:inherit !important;	 
}
		.elementor-12 .elementor-element.elementor-element-5ad77402 .elementor-nav-menu--main > .elementor-nav-menu > li > .elementor-nav-menu--dropdown, .elementor-12 .elementor-element.elementor-element-5ad77402 .elementor-nav-menu__container.elementor-nav-menu--dropdown {
        margin-top: 28px !important;
        margin-left: -70px !important;
        left: 0 !important;
		max-width:100% !important;
}
	
 }

@media (max-width: 767px) {
  .post-grid { grid-template-columns: 1fr; }
	.elementor-nav-menu > li.contact-menu > a {  
    margin-bottom: 20px !important;
 }
	
 .menu-dd2 ul {
 	 min-width:200px !important;
 }
	
	.elementor-12 .elementor-element.elementor-element-5ad77402 .elementor-nav-menu--main > .elementor-nav-menu > li > .elementor-nav-menu--dropdown, .elementor-12 .elementor-element.elementor-element-5ad77402 .elementor-nav-menu__container.elementor-nav-menu--dropdown {
        margin-top: 28px !important;
        margin-left: -70px !important;
        left: 0 !important;
		max-width:351px !important;
}

	.menu-dd2 ul {
 	 min-width:358px !important;
	 word-wrap:break-word !important;
}
 .menu-dd a:hover span svg, .menu-dd .highlighted span svg {
	fill:#333333 !important;
 }	 
 
.elementor-12 .elementor-element.elementor-element-5ad77402 .elementor-nav-menu--dropdown a:hover, .elementor-12 .elementor-element.elementor-element-5ad77402 .elementor-nav-menu--dropdown a:focus, .elementor-12 .elementor-element.elementor-element-5ad77402 .elementor-nav-menu--dropdown a.elementor-item-active, .elementor-12 .elementor-element.elementor-element-5ad77402 .elementor-nav-menu--dropdown a.highlighted {
  background-color: #fff !important;
  color: #333 !important;
}

.elementor-nav-menu, .elementor-nav-menu li, .elementor-nav-menu ul {
     border-radius: 0 !important;
}
/* Make arrow react when submenu opens */
  .elementor-nav-menu .menu-dd a.elementor-item-active span svg,
  .elementor-nav-menu .menu-dd a.highlighted span svg,
  .elementor-nav-menu .menu-dd .elementor-active > a span svg {
    fill: #333333 !important;
    transform: rotate(180deg);
    transition: transform 0.3s ease;
  }

  /* Reset arrow when submenu closes */
  .elementor-nav-menu .menu-dd span svg {
    transition: transform 0.3s ease;
  }

  /* Ensure tap works properly */
  .elementor-nav-menu .menu-dd > a {
    pointer-events: auto !important;
  }

  /* Prevent overlay blocking arrow clicks */
  .elementor-nav-menu--dropdown {
    z-index: 9999 !important;
  }
	
	 .elementor-nav-menu .sub-menu.elementor-active {
        animation: elementor-nav-menu__fadeIn 0.3s ease-in-out;
    }
	
}