/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Container adjustments */
.ahangar-read-more {
  position: relative;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ahangar-read-more h1,
.ahangar-read-more h2,
.ahangar-read-more h3,
.ahangar-read-more h4,
.ahangar-read-more h5,
.ahangar-read-more h6 {
  color: #1c3abb;
}
.ahangar-read-more a {
  color: #f05022;
}
.ahangar-read-more .table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 15px 0;
}

.ahangar-read-more .table-responsive-wrapper table {
  width: 100% !important;
  min-width: 650px;
  border-collapse: collapse;
}

/* State when it needs truncation */
.ahangar-read-more.is-truncated {
  max-height: 140px !important;
}

/* Subtle fade overlay matching the image backdrop to smoothly hide text overflow */
.ahangar-read-more.is-truncated::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Hide fade overlay when fully expanded */
.ahangar-read-more.is-expanded::after {
  opacity: 0;
}

/* Read more trigger button styling on the bottom-left corner */
.ahangar-read-more-btn {
  display: inline-block;
  background: none;
  border: none;
  color: #f05022;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  padding: 8px 0;
  margin-top: 8px;
  float: left;
  outline: none;
  transition: opacity 0.2s ease;
}

.ahangar-read-more-btn:hover,
.ahangar-read-more-btn:focus {
  opacity: 0.8;
  background-color: #fff;
  color: #f05022;
}

/* Clearfix utility wrapper if needed for floats */
.ahangar-read-more-wrapper {
  width: 100% !important;
}
.ahangar-read-more-wrapper::after {
  content: "";
  display: table;
  clear: both;
}

.ahangar-featured-product-categories-nav {
  margin: 0;
}

.ahangar-featured-product-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ahangar-feature-category {
  margin: 0;
}

.ahangar-feature-category-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 36px;
  padding: 0 12px;

  border: 1px solid #d8d8d8;
  border-radius: 999px;

  background: #ffffff;

  color: #666;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;

  text-decoration: none;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.ahangar-feature-category-link:hover,
.ahangar-feature-category-link:focus-visible {
  color: #222;
  border-color: #999;
  background: #f8f8f8;
  outline: none;
}

.ahangar-feature-category-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
  .ahangar-featured-product-cats {
    gap: 8px;
  }

  .ahangar-feature-category-link {
    min-height: 40px;
    padding: 0 10px;
    font-size: 12px;
  }
}
