
    #templates {
  transition: width 0.3s ease;
  /* margin-top: 50px; */
margin-top: 100px;
  flex-grow: 1;
  min-height: 100vh;
  overflow-y: visible;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  -webkit-transition: 0.25s ease;
  -o-transition: 0.25s ease;
  transition: 0.25s ease;
}


/* Container for side-by-side layout */
.Template-selector-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Card label wrapper */
.template-card {
  cursor: pointer;
  position: relative;
  display: inline-block;
  width: 150px;
  border-radius: 25px;
  transition: transform 0.2s ease;
}

/* Hide native radio button */
.template-card input[type="radio"] {
  display: none;
}

/* Card surface */
.Template-selector-container .card-content {
  background: #f8f8f8;
  border-radius: 25px;
  border: 2px solid #e6e6e6;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
 padding: 12px 9px;
}

/* Image container */
.Template-selector-container .image-wrap {
width: 100%;
  height: 62px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}

.Template-selector-container .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text below the image */
.Template-selector-container .card-label {
  font-size: 13px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 17px;
}

/* Selected state */
.Template-selector-container .template-card input[type="radio"]:checked + .card-content {
  border: 2px solid #2563eb; /* Blue border */
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
  transform: scale(1.02);
}


/* template Gallary */
.template-gallery {
  margin-top: 50px;
}

.template-item {
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 10px;
}

.template-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
border: 2px solid #fff;
}

.template-image-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: top;
  transition: transform 4s linear;
}

.template-item:hover img {
  transform: translateY(-60%);
}

.template-overlay {
  position: absolute;
  top: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(138, 138, 138, 0.88); */
  background: rgba(6, 6, 6, 0.33);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.template-item:hover .template-overlay {
  opacity: 1;
}

.template-buttons {
text-align: center;
  margin-top: 100px;
  display: flex;
  flex-direction: column;
}

.template-buttons .btn {
background: #fff;
  color: #333;
  margin: 5px;
  border-radius: 50px;
  padding: 10px 34px;
  transition: all 0.3s;
  font-size: 16px;
  font-weight: bolder;
}

.template-buttons .btn:hover {
  background: #222;
  color: #fff;
}

/* Pagination */
.template-pagination {
  margin-top: 30px;
  margin-bottom: 20px;
}

.template-pagination .pagination>li>a,
.template-pagination .pagination>li>span {
  border-radius: 50%;
  margin: 0 5px;
  color: #333;
}

.template-pagination .pagination>.active>a {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* Responsive */
@media (max-width: 991px) {
  .template-item img {
    height: auto;
    object-position: top;
  }
}

@media (max-width: 767px) {
  .template-item img {
    height: auto;
    object-position: top;
  }
}

/* Main Category Row */
.tg-main-category {
    padding: 6px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tg-main-category:hover {
    background: #f5f5f5;
}

/* Arrow */
.tg-arrow {
    transition: 0.3s ease;
}

.tg-rotate {
    transform: rotate(90deg);
}

/* Sub list */
.tg-sub-list {
    display: none;
    padding-left: 45px;
}

.tg-sub-item {
    padding: 5px 0;
    cursor: pointer;
    color: #555;
	  border-bottom: 1px solid #f2f2f2;
}

.tg-sub-item:hover {
    color: #ff7a00;
}

#templates[style*="display: none"] ~ #template-gallery-filter {
    display: none !important;
}

#tgCategoryDropdownBtn{
	border-radius: 5px;
  margin-right: 5px;
  padding: 4px 8px;
  width: 175px;
  text-align: left;
  margin-right: 5px;
  display: flex;
  justify-content: space-between;
  border-color: #e8e8e8;
}

.dropdown-toggle::after{
margin-top: 11px!important;
}
#tgCategoryDropdownMenu{
right: 0px;
}
.tg-main-category i {
  color: #ffa500!important;
  border-bottom: 1px solid #f2f2f2;
}

#categoryDropdownMenu .dropdown-item {
  border-bottom: 1px solid #e0e0e047;
}

.section-filter p,.category-filter p{
  margin-bottom: 0px;
  margin-top: -8px;
  font-size: 13px;
  padding-left: 5px;
  color: #aaa;
}

.filter-container {
  width: 100%;
  height: 40px;
  position: fixed;
  z-index: 10000;
  margin-top: 9px;
}
#category-filter .dropdown-menu {
  display: none;
}

#category-filter.open .dropdown-menu {
  display: block;
}
/* .category-filter .dropdown-menu {
  left: -146px !important;
} */
.section-filter .dropdown-menu {
  left: -75px !important;
}
.section-filter .dropdown-menu li {
padding: 7px 0px;
  cursor: pointer;
  position: relative;
  font-size: 14px;
  border-bottom: 1px solid #e0e0e047;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
}

.filter-style .dropdown-menu {
  z-index: 10500;
  max-height: 400px;
  overflow-y: auto;
  border-radius: 10px;
  padding: 20px 10px 20px 20px;
  scrollbar-width: thin;
  scrollbar-color: #888 #e0e0e0;
  white-space: nowrap;
  width: auto;
  min-width: 333px;
}

.editmode-filter .filter-style .dropdown-menu {
  z-index: 10500;
  max-height: 400px;
  overflow-y: auto;
  border-radius: 10px;
  padding: 20px 10px 20px 20px;
  scrollbar-width: thin;
  scrollbar-color: #888 #e0e0e0;
  white-space: nowrap;
  width: auto;
  min-width: 250px;}

.editmode-filter .filter-style .dropdown-menu > li > a{
background: transparent!important;
}
.editmode-filter .filter-style .dropdown-menu > li > a{
  border: none!important;
}
.editmode-filter .filter-style .dropdown-menu > li > a{
background: transparent!important;
}
.dropdown.filter-dropdown .dropdown-menu {
  width: 340px; /* You can increase to 360px or more if needed */
}
.main-menu {
  max-height: 400px;
  width: 100%; /* Ensure full width */
}
.submenu-wrapper {
  width: 100%; /* Match width of main menu */
}
.filter-style .dropdown-menu::-webkit-scrollbar {
  width: 3px;
}

.filter-style .dropdown-menu::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 2px;
}

.filter-style .dropdown-menu::-webkit-scrollbar-track {
  background-color: #e0e0e0;
  border-radius: 2px;
  margin-right: 20px;
}


/* .filter-style .dropdown-menu > li.active  a{
background-color: transparent!important;
} */
.filter-style .dropdown-menu > .active a{
  background-color: transparent!important;
  color:#f39c12!important;
}
.filter-style .dropdown-menu > li .tg-sub-item:hover{
background-color: #fff7ed!important;
}
.dropdown-menu > li > a:hover{
    background-color: transparent!important;
}
.filter-style .dropdown-menu > li > a:hover, .dropdown-menu > li > a:hover{
  color: #000;

  /* border: 4px solid rgba(224, 224, 224, 0.692); */
}

/* filter-category */
 .dropdown.filter-dropdown {
      position: fixed;
      top: 13px;
      right: 765px;
      z-index: 9999;
    }
.dropdown.filter-dropdown .dropdown-menu > li > a {
  padding: 3px 10px!important;
}

.dropdown.filter-dropdown .dropdown-menu > li:not(:last-child) {
  border-bottom: 1px solid #f0f0f077!important;
}
.template-gallery-filter .dropdown-menu {
    top: 100% !important;
    bottom: auto !important;
    transform: none !important;
}
.template-item-wrapper{
	background: #fbfbfb;
  padding: 43px 14px;
  border-radius: 20px;
  border: 1px solid #fcb07236;
  box-shadow: rgba(149, 157, 165, 0.22) 0px 8px 24px;
  margin: 10px;
}
    .filter-dropdown-toggle {
      background: white;
      border-radius: 8px;
      padding: 10px 15px;
      border: 1px solid #ccc;
      color: #333;
      font-weight: 500;
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
      transition: background 0.3s ease, box-shadow 0.3s ease;
    }

    .filter-dropdown-toggle:hover {
      background: #f9f9f9;
      box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    }

    .dropdown.filter-dropdown .dropdown-menu {
      border-radius: 10px;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
      border: none;
      padding: 3px 0px!important;
      min-width: 250px;
      animation: fadeInMenu 0.3s ease-in-out;
        max-height: 400px;
  overflow: hidden;
  position: relative;
    }
.dropdown.filter-dropdown .dropdown-menu {
  width: 300px;
  height: 400px;
  padding: 0;
  overflow: hidden;
  position: absolute;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

#categoryDropdownMenu .dropdown-item.active-sub > a {
  color: #f39c12;
  font-weight: bold;
  background-color: #fff8e1;

}
#categoryDropdownMenu .dropdown-item > a{
  padding: 0px!important;
}
.all-main-category{
  color: #333!important;
}
#categoryDropdownMenu .dropdown-item > a i {
  color: #f39c12; /* orange icon */
  vertical-align: middle;
  margin-right: 10px;
}
.all-main-category.active-orange {
  color: #f39c12;
  font-weight: 600;
}
#categoryDropdownMenu .dropdown-item.active a{
   color: #f39c12 !important;
}
#categoryDropdownMenu .dropdown-item > a:hover {
  background-color: #fff8e1;
  color: #f39c12;
}
#categoryDropdownMenu .dropdown-item > div {
  display: flex;
  align-items: center;
}
#categoryDropdownMenu .dropdown-item {
padding: 7px 12px;
  cursor: pointer;
  position: relative;
  font-size: 14px;
  border-bottom: 1px solid #e0e0e047;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bolder;
  color: #000!important;

		}
.dropdown-menu > li > a{
  font-weight: bolder;
  color: #000!important;
}
		#categoryDropdownMenu .dropdown-item:hover {
			background-color: #fff7ed;
		}

		/* Icon before text */
		#categoryDropdownMenu .dropdown-item>div i {
			color: #ffa500;
			margin-right: 10px;
			font-size: 16px;
		}

		#categoryDropdownMenu ul li.active a {
			color: #ffa500;
		}

		/* Arrow styling */
		#categoryDropdownMenu .dropdown-item>i.ri-arrow-right-s-line {
	  background: #f2f2f2;
  border-radius: 5px;
  padding: 6px;
  width: 28px;
  height: 28px;
  font-size: 16px;
  color: #666;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  box-sizing: border-box;
		}

		.ri-arrow-right-s-line.rotate {
			transform: rotate(90deg);
		}

		/* Submenu list */
		#categoryDropdownMenu ul {
			list-style: none;
			padding-left: 20px;
			margin: 0;
			background-color: #fff;
		}

		#categoryDropdownMenu ul li {
			padding: 6px 12px;
			font-size: 13px;
			cursor: pointer;
			border-bottom: 1px solid #e0e0e0;
		}

		#categoryDropdownMenu ul li a {
			text-decoration: none;
			display: block;
			color: #333;
		}

		#categoryDropdownMenu ul li:hover,
		#categoryDropdownMenu ul li.active-sub {
			background-color: #fff7ed;
		}

		#categoryDropdownMenu ul li.active-sub a,
		#categoryDropdownMenu ul li:hover a {
			color: #ffa500;
			/* orange */
			font-weight: bold;
		}

		/* Highlight the parent category icon when submenu is active */
		#categoryDropdownMenu .dropdown-item.active-parent>div,
		#categoryDropdownMenu .dropdown-item:hover>div {
			color: #ffa500;
		}

.pagination-container {
  text-align: center;
  margin-top: 20px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.pagination li {
  display: inline-block;
  margin: 0 5px;
}
.pagination li a {
  padding: 0px 12px;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  color: #494949;
  font-size: 12px;
  text-decoration: none;
  border-radius: 12px;
}
.pagination li.active a {
 background-color: #ffc000;
  color: white;
  border-color: #fff;
}
.pagination li.disabled a {
  pointer-events: none;
  opacity: 0.5;
}

/* Optional */
.template-gallery-filter .btn {
    min-width: 200px;
}

.template-gallery-section {
    position: relative;
    min-height: 300px;
}

.template-gallery-filter {
    position: fixed;
    right: 15px;
    z-index: 10;
	margin-top: -65px;
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: auto !important;
}
.template-gallery-filter h6 {
white-space: nowrap;
  font-size: 16px;
  font-weight:600;
}
.dropdown-menu-custom {
    width: 320px;
    border-radius: 18px;
    padding: 10px 0;
    max-height: 400px;
    overflow-y: auto;
}


