.container_content_us {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: flex-start;
  background: #f4f4f4;
  padding: 0 40%;
  gap: 35px;
}

/* cards */
.side_cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  align-items: center;
  max-width: 100%;
  width: 65%;
  margin-right: -50px;
  margin-bottom: 20vh;
}

.card_latest_product {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: #ffffff;
  width: 134%;
  border-radius: 12px;
  justify-content: space-between;
}

.dark-mode .card_latest_product {
  background: #1e1a35;
}

.card_latest_product .title_card {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  min-height: 35px;
}

.card_latest_product .title_card h2 {
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ef8d65;
}

.card_latest_product .title_card a {
  color: #ef8d65;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ef8d65 !important;
  padding: 8px 8px 8px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: color 0.15s ease, padding 0.15s ease;
  z-index: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.card_latest_product .title_card a svg {
  opacity: 0;
  width: 0;
  margin-right: 0;
  overflow: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, width 0.15s ease,
    margin-right 0.15s ease;
}

.card_latest_product .title_card a:hover svg {
  opacity: 1;
  width: 12px;
  margin-right: 5px;
  transform: translateX(2px);
}

.card_latest_product .title_card a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: #ef8d65;
  transition: height 0.15s ease;
  z-index: -1;
  border-radius: 20px;
}

.card_latest_product .title_card a:hover {
  color: #fff;
  padding: 8px 8px 8px 16px;
}

.card_latest_product .title_card a:hover::before {
  height: 100%;
}

.divaider {
  border: 0.5px solid #ef8d65;
  width: 100%;
}

.content_card {
  display: flex;
  gap: 10px;

  flex-direction: column;
  margin-top: 15px;
}

.content_card .card {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  border: 1px solid #fcf0eb;
  padding: 10px;
  border-radius: 20px;
  gap: 10px;
  transition: 0.15s ease;
  cursor: pointer;
}

.content_card .card:hover {
  border: 1px solid #ef8d65;
}

.content_card .card:hover .text_card h2 {
  color: #ef8d65;
  transition: color 0.3s ease;
}

.dark-mode .content_card .card:hover .text_card h2 {
  color: #ef8d65;
}

.dark-mode .content_card .card {
  border: 1px solid #635148;
  &:hover {
    border: 1px solid #ef8d65;
  }
}

.content_card .card:hover .img-hover {
  background-image: url("../assets/img/arrow.svg");
  transform: scale(1) rotate(180deg);
}

.content_card .card img {
  height: 65px;
  width: 65px;
  margin: 0 0 0 -75%;
}

.content_card .card img:hover {
  cursor: pointer;
}

.content_card .card:has(img:hover) {
  border: 1px solid #ef8d65;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.text_card {
  text-align: right;
  width: 150%;
  margin-right: -5%;
}

.title_card .center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  text-align: center;
}

.text_card h2 {
  width: 40%;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.text_card p {
  max-width: 40%;
  font-size: 10px;
}

.down_app_product {
  width: 60px;
  height: 55px;
}

.img-hover {
  width: 100%;
  height: 100%;
  background-image: url("../assets/img/button.svg");
  background-size: cover;
  background-position: center;
  transition: background-image 0.15s ease-in-out, transform 0.15s ease;
}

.img-hover:hover {
  background-image: url("../assets/img/arrow.svg");
  transform: scale(1.05) rotate(180deg);
}

.logo_about {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.logo_about img.imgLogo {
  width: 120px;
  height: 120px;
  animation: heartbeat 2s ease-in-out infinite;
  transform-origin: center;
  transition: transform 0.3s ease;
}

.logo_about img.mailBox {
  width: 200px;
  transform-origin: center;
  margin-bottom: -50px;
  margin-top: -50px;
}

.text {
  width: 90%;
  margin: 0 0 10px 25px;
}

.text p {
  text-align: center;
  font-size: 13px;
}

.card_latest_product .socialMediaAbout {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.card_latest_product .socialMediaAbout a {
  width: 50px;
  height: 50px;
  border-radius: 20px;
  border: 1.5px solid #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.socialMediaAbout {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
}

.socialMediaAbout a {
  width: 50px;
  height: 50px;
  border-radius: 20px;
  border: 1.5px solid #d3d3d3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.socialMediaAbout a img {
  width: 25px;
  height: 25px;
  transition: filter 0.3s ease;
  position: relative;
  z-index: 1;
}

.socialMediaAbout a img.youtube {
  width: 33px;
  height: 33px;
}

.socialMediaAbout a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  border-radius: 16px;
  z-index: 0;
  transition: height 0.3s ease;
}

/* ألوان الخلفية عند الـ hover */
.socialMediaAbout a.youtbe_color::before {
  background: #ff0000;
}

.socialMediaAbout a.tiktok_color::before {
  background: #000000;
}

.socialMediaAbout a.google_play_color::before {
  background: #01875f;
}

.socialMediaAbout a.instagram_color::before {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.socialMediaAbout a.facebook_color::before {
  background: #1877f2;
}

.socialMediaAbout a:hover::before {
  height: 100%;
}

.socialMediaAbout a:hover img {
  filter: brightness(0) invert(1);
}

.subscripe_card {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.subscripe_card input {
  width: 155px;
  height: 45px;
  border-radius: 0 8px 8px 0;
  text-align: center;
  margin: auto;
  margin-right: 0;
  padding: 0 10px 0;
  background: #f4f4f4;
  font-size: 12px;
  border: none;
  color: black !important;

  &:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }
}

.dark-mode .subscripe_card input {
  background: #231e41;
  color: white !important;
}

.subscripe_card input::placeholder {
  color: #a1a6d3 !important;
  opacity: 1;
}

.subscripe_card button {
  font-size: 13px;
  font-weight: 500;
  margin-right: -3.5px;
  width: 90px;
  border-radius: 8px 0 0 8px;
  height: 44px;
  background: #ef8d65;
  color: white;
  transition: 0.3s ease;
  z-index: 1001;

  &:active {
    scale: 1.03;
  }
}

#lottie-sidebar {
  width: 200px;
  margin: -40px auto;
}

.posts {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.post {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 5px 10px;
}

.post .postside {
  border-radius: 10px !important;
  transition: 0.3s ease !important;
  border: 1px solid transparent !important;

  &:hover {
    box-shadow: 0 0 10px #ef8c6510 !important;
    border: 1px solid #ef8d65 !important;
    cursor: pointer !important;
  }
}

.post img {
  width: 33%;
  margin: auto;
}

.post .content_post {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.post .content_post h4 {
  font-size: 11px;
  width: 90%;
}

.post .content_post p {
  font-size: 9px;
  width: 90%;
}

/* تنسيق المشاركات الشائعة */
.popular-post {
  display: flex;
  flex-direction: column;
  height: auto !important;
  margin-bottom: 15px;
}

.popular-post img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.popular-post .text_card {
  padding: 0;
}

.popular-post .text_card h2 {
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.popular-post .text_card p {
  font-size: 11px;
  line-height: 1.4;
  color: #666;
  margin-bottom: 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #888;
  margin-top: 8px;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-meta i {
  font-size: 9px;
}

.views {
  color: #ef8d65;
}

/* الوضع المظلم للمشاركات الشائعة */
.dark-mode .popular-post .text_card p {
  color: #bbb;
}

.dark-mode .post-meta {
  color: #aaa;
}

.dark-mode .views {
  color: #ef8d65;
}

@media (max-width: 440px) {
  .side_cards {
    display: none;
  }
  .container_content_us {
    padding: 0 7%;
  }

  .post img {
    width: 100%;
    margin-left:0%;
  }
  
}
