* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #2352870b;
  font-family: "tajawal", sans-serif;
  scroll-behavior: smooth;
}

/*الهيدر*/
header img {
  width: 280px;
}

a {
  color: #111;
  text-decoration: none;
}

header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-around;
  align-items: center;
  background-color: white;
  z-index: 9999;
}

.header-nav ul {
  display: flex;
  list-style: none;
  font-size: 13px;
  font-weight: bold;
}

.header-nav ul li {
  margin-right: 10px;
}

.header-nav ul li a {
  padding: 6px 10px;
}

.header-nav ul li a:hover,
.header-nav ul li a.active {
  color: #e4293a;
}

/* منيو المدونات (submenu) */
.header-nav .has-submenu {
  position: relative;
}

.header-nav .submenu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 8px;
  display: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  margin: 5px;
}

.header-nav .submenu li {
  margin-right: 0;
}

.header-nav .submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
}

.header-nav .submenu a:hover {
  background: rgba(228, 41, 58, 0.1);
  color: #e4293a;
}

.header-nav .has-submenu:hover .submenu {
  display: block;
}

/* تصميم صفحة تسجيل الدخول*/
.model-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.model-box {
  background: white;
  padding: 30px;
  border-radius: 16px;
  width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  direction: rtl;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

.sign-title{
  padding-bottom: 20px;
}



.email-input,
.password-input,
.text-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background-color: rgb(231, 229, 229);
  color: #e4293a;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.policy-text {
  font-size: 11px;
  color: #999;
  margin-top: 14px;
}

/* رسالة نتيجة تسجيل الدخول/إنشاء الحساب داخل المودال */
.auth-message {
  min-height: 16px;
  margin: 8px 0 4px;
  font-size: 12px;
  font-weight: 700;
}

.auth-message.error {
  color: #d32f2f;
}

.auth-message.success {
  color: #2e7d32;
}

.auth-switch-row {
  margin: 6px 0 2px;
}

.auth-switch-row span {
  font-size: 12px;
  font-weight: 700;
  color: #111;
}

.forgot-pass-link {
  display: block;
  text-align: left;
  font-size: 12px;
  color: #666;
  margin-bottom: 15px;
}

.auth-create-link {
  margin-top: 2px;
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  color: #e4293a;
  text-decoration: none;
}

.auth-create-link:hover {
  text-decoration: underline;
}

/* تصميم زر تسجيل الدخول*/

header button {
  padding: 10px 10px;
  font-size: 13px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
}

header button:hover {
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 0 5px;
}

.btn-cont img {
  margin-bottom: -2px;
  margin-left: -2px;
  width: 15px;
}

/*زر البحث*/
.search-container {
  position: relative;
}

.search-img {
  cursor: pointer;
}

.search-img img {
  width: 25px;
}

.search-img img:hover {
  transform: scale(1.1);
}

.hide-search {
  display: none;
}

.show-search {
  display: block;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  padding: 10px 15px;
  border-radius: 25px;
  border: 1px solid #ddd;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 100;
  background: #fff;
}

.search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 55px);
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  z-index: 98;
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
  padding: 0;
}

.search-suggestions li {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f1f1;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-suggestions li:hover {
  background-color: #fff5f5;
  color: #e4293a;
  padding-right: 18px;
}
/*زر التسوق*/
.shop-img img {
  width: 27px;
}

.shop-img img:hover {
  cursor: pointer;
  scale: calc(1.1);
}

/* تنسيق الدائرة الحمراء */
.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #ff0000;
  color: white;
  font-size: 10px;
  font-weight: bold;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: 2px solid white;
  z-index: 10;
}

/*قسم صور الهيرو او العنوان */

.hero-section-m {
  position: relative;
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-section-m img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-section-m p {
  color: #e4293a;
  font-size: 5rem;
  margin-bottom: -90px;
  text-shadow: 2px 3px 9px rgba(0, 0, 0, 0.6);
}

/* نص العنوان فوق صورة الهيرو */
.logo-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #e4293a;
  font-weight: bold;
  font-size: 70px;
  text-align: center;
  width: 95%;
}

/*قسم وصف الصفحه*/
.title0 {
  display: flex;
  font-size: 25px;
  justify-content: center;
  padding: 20px 20px;
  gap: 5px;
  font-weight: bold;
  background-color: white;
  margin-top: -10px;
}

.title0-color {
  color: #e4293a;
}
.lastV {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.lastV img {
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(0, 0, 0, 0.5);
}

.lastV img:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 20px rgba(0, 0, 5, 0.25);
  transition: all 0.3s ease;
  z-index: 10;
}

/*قسم الكروت*/
.card-container1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, 280px);
  grid-template-columns: repeat(auto-fit, 270px);
  gap: 30px;
  padding: 40px 5%;
  justify-content: center;
  justify-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.magazines-filter {
  max-width: fit-content;
  margin: 30px auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 10px 25px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  direction: rtl;
  border: 1px solid #eee;
}

.magazines-filter label {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.magazines-filter select {
  padding: 6px 15px 6px 35px;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e4293a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-color: #fff;
  border-radius: 30px;
  border: 1px solid #000;
  font-weight: 700;
  color: #e4293a;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.magazines-filter select:hover {
  background-color: rgb(236, 235, 235);
}

.card1 {
  width: 100%;
  max-width: 300px;
  background-color: #f1f1f1;
  border-radius: 30px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  animation: cardFadeIn 0.6s ease forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card1:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
}

.type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 12px;
  color: white;
  font-size: 11px;
  border-radius: 20px;
  font-weight: bold;
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.card1 img {
  width: 100%;
  height: auto;
}

.class-content1 {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  direction: rtl;
  gap: 3px;
}

.class-content1 h3 {
  font-family: inherit;
  font-size: inherit;
}

.class-content1 .btn1 {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(#e4293a, #e429397e);
  color: black;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  border-radius: 10px;
  border: 1px solid black;
  transition: all 0.3s ease-in-out;
  margin-top: auto;
  width: fit-content;
}

.class-content1 .btn1:hover {
  color: rgb(247, 245, 245);
}

/* كروت السلة */
.cart-item {
  width: min(900px, 100%);
  width: min(900px, 95%);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  margin: 0 auto 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  direction: rtl;
}

.cart-item__media img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-left: 20px;
}

.cart-item__body {
  flex: 1;
  min-width: 0;
}

.cart-item__title {
  font-size: 16px;
  margin-bottom: 6px;
  color: #111;
}

.cart-item__price {
  font-size: 16px;
  color: #e4293a;
  font-weight: 800;
}

.cart-remove-btn {
  background: rgba(228, 41, 58, 0.1);
  color: #e4293a;
  border: 1px solid rgba(228, 41, 58, 0.25);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.cart-remove-btn:hover {
  background: rgba(228, 41, 58, 0.16);
}

.cart-summary {
  width: min(900px, 100%);
  margin: 0 auto 30px;
  width: min(900px, 95%);
  margin: 20px auto 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 40px;
  padding: 0 20px;
}

#cart-total {
  color: #111;
  font-weight: 800;
}

.cart-checkout-btn {
  background: #e4293a;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  border: none;
  display: inline-block;
}

.cart-checkout-btn:hover {
  filter: brightness(0.95);
}

.page-content{
  margin-top: 80px;
}
/*قسم الاخير*/

footer .container {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 40px 20px;
  background-color: #ececec;
  color: #444;

  margin: 0 auto;
}

footer {
  background-color: #ececec;
}

.footer-content {
  flex: 1;
  min-width: 250px;
  text-align: center;
  margin-bottom: 20px;
}

.footer-content h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  border-bottom: 2px solid #23528754;
  display: inline-block;
  padding-bottom: 5px;
  color: #222;
}

.footer-content a {
  color: #444;
}

.footer-content a:hover {
  color: #235287;
  cursor: pointer;
}

.footer-content li {
  margin-bottom: 10px;
  list-style: none;
}

.footer-content li a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.footer-content p {
  margin-bottom: 10px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.footer-content p:hover {
  margin-bottom: 10px;
  color: #235287;
  cursor: pointer;
}

.footer-content img {
  width: 25px;
  height: auto;
  vertical-align: auto;
}

.footer-content img:hover {
  transform: scale(1.2);
}

/*قسم سياسة الخصوصية*/

.bottom-bar {
  background: white;
  display: flex;
  justify-content: space-between;
  text-align: right;
  padding: 10px 0;
}

.bottom-bar p {
  color: #000;
  margin: 0;
  font-size: 14px;
  padding: 7px;
}

.bottom-bar p a {
  padding: 0 10px;
}

.bottom-bar p a:hover {
  color: #7a7a7a;
}

.bottom-bar p img {
  width: 30px;
  height: auto;
  margin-bottom: -11px;
}

/*تنيسق صفحة عرض الكروت*/

#title-placeholder {
  color: #e4293a;
  text-align: center;
  padding: 20px;
}

#image-placeholder {
  display: block;
  margin: 0 auto;
  max-width: 400px;
  width: 100%;
}

#description-placeholder {
  text-align: right;
  line-height: 1.8;
  margin-top: 20px;
}

#description-placeholder img {
  display: none !important;
}

.back {
  background: white;
  padding: 15px 20px;
  border-radius: 25px;
  margin-bottom: 16px;
  font-weight: bold;
}

.back:hover {
  cursor: pointer;
  background-color: rgb(213, 209, 209);
}

/*تنسيف حاوية ملفات روابط سريعة*/
.container0 {
  width: 90%;
  margin: 120px auto 40px;
  background-color: white;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  padding: 30px;
  border-radius: 16px;
}

/*صفحة الشهادات و الوظائف*/

.search-class {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 150px 5% 40px;
  max-width: 900px;
  margin: 0 auto;
  direction: rtl;
}

.search-input {
  flex: 1;
  padding: 15px 25px;
  border: 2px solid #eee;
  border-radius: 0 50px 50px 0;
  border-left: none;
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
}

.search-input:focus {
  border-color: #e4293a;
}

.search-category {
  position: relative;
  background: #fff;
  border: 2px solid #eee;
  border-left: none;
  padding: 0 25px; /* زيادة المسافة قليلاً لزر تصنيف البحث أيضاً */
  display: flex;
  align-items: center;
  cursor: pointer;
  min-width: 140px;
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #444;
  font-size: 14px;
  width: 100%;
  justify-content: space-between;
}

.arrow-icon {
  font-size: 10px;
  color: #e4293a;
  transition: transform 0.3s;
}

.category-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  background: #fff;
  list-style: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
  overflow: hidden;
  border: 1px solid #eee;
  margin-top: 2px; /* مسافة بسيطة جداً لا تؤثر على حركة الماوس */
}

.search-category:hover .category-menu {
  display: block;
}

.search-category:hover .arrow-icon {
  transform: rotate(180deg);
}

.category-menu li {
  padding: 12px 20px;
  font-size: 13px;
  border-bottom: 1px solid #f9f9f9;
  text-align: right;
  transition: all 0.2s ease;
}

.category-menu li:hover {
  background: #fff5f5;
  color: #e4293a;
  padding-right: 25px;
}

.search-btn {
  padding: 0 35px;
  background: #e4293a;
  color: #fff;
  border: none;
  border-radius: 50px 0 0 50px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.search-btn:hover {
  background: #b71c1c;
}

/*احدث اصدارات المجلة و المدونات (زر)*/
.magazine-new-btn {
  display: flex;
  justify-content: center;
  margin-top: -50px;
  padding: 25px;
}

.magazine-new-btn button {
  display: inline-block;
  padding: 15px 20px;
  background: whitesmoke;
  text-decoration: none;
  margin-top: 16px;
  color: black;
  font-size: 15px;
  font-weight: bold;
  border-radius: 25px;
  border: 1px solid black;
}

.magazine-new-btn button:hover {
  cursor: pointer;
  color: gray;
}

/* تصنيف المدونات */
.blogs-filter {
  max-width: fit-content;
  margin: 30px auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 10px 25px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  direction: rtl;
  border: 1px solid #eee;
}

.blogs-filter label {
  font-weight: 700;
  color: #666;
  font-size: 15px;
  white-space: nowrap;
}

.blogs-filter select {
  padding: 6px 15px 6px 35px;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e4293a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-color: #fff;
  border-radius: 30px;
  border: 1.5px solid #e4293a;
  font-weight: 700;
  color: #e4293a;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.blogs-filter select:hover {
  background-color: rgb(236, 235, 235);
}

.blogs-filter select:focus {
  box-shadow: 0 0 0 3px rgba(228, 41, 58, 0.15);
  border-color: #b71c1c;
}

.cart-popup {
  position: fixed;
  top: 75px;
  left: 20px;
  width: 300px;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  z-index: 1000;
  padding: 15px;
  transition: 0.3s ease;
}

.cart-popup.hidden {
  display: none;
}

.product-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-info img {
  width: 60px;
  height: 60px;
  padding: 5px;
  object-fit: cover;
  border-radius: 5px;
}

.popup-footer button {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
}

.btn-checkout {
  background-color: #e4293a;
  color: white;
}
.close-popup {
  cursor: pointer;
  float: right;
  font-size: 20px;
}
.checkout-container {
  display: flex;
  margin-top: 50px;
  flex-direction: row-reverse;
  gap: 50px;
  padding: 50px 10%;
  background-color: whitesmoke;
  direction: rtl;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.section-title {
  color: #d32f2f;
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-weight: bold;
}

.billing-details {
  flex: 2;
}
.input-group {
  display: flex;
  gap: 30px;
}
.field {
  margin-bottom: 20px;
  flex: 1;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #333;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  background: #fff;
  outline: none;
}

textarea {
  border-radius: 15px;
  height: 120px;
}

.order-sidebar {
  flex: 1;
}
.order-card {
  border: 1px solid #f0f0f0;
  padding: 30px;
  background: #fdfdfd;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.order-title {
  text-align: center;
  color: #d32f2f;
  margin-bottom: 20px;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.order-table th,
.order-table td {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  text-align: right;
  font-size: 0.9rem;
}

.price {
  text-align: left !important;
  font-weight: bold;
}
.red-text {
  color: #d32f2f;
  font-size: 1.3rem;
}

.pay-btn {
  width: 100%;
  background-color: #d32f2f;
  color: white;
  padding: 15px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
}

.pay-btn:hover {
  background-color: #b71c1c;
}

.payment-instruction {
  background: #fff;
  padding: 15px;
  border: 1px solid #eee;
  font-size: 0.8rem;
  margin: 10px 0;
}

.terms-text {
  font-size: 0.75rem;
  color: #777;
  line-height: 1.6;
}

/*قسم تحسين المقاسات*/

.hero-section {
  background: url("assets/imge/page.webp");

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 790px;
  width: 100%;
  display: flex;
  justify-content: flex-start; /* المحاذاة لليمين في وضع RTL */
  text-align: right;
  padding-top: 50px;
  color: black;
  border: 2px solid white;
}

.hero-section .content {
  width: 50%; /* جعل النص يأخذ نصف الشاشة ليكون أكثر جمالاً */
  padding: 30px;
  text-shadow: 2px 3px 9px rgba(0, 0, 0, 0.3);
}
.hero-section h1 {
  font-size: 42px;
  color: #e4293a;
  margin-bottom: 20px;
}

.hero-section p {
  font-size: 16px;
  line-height: 1.9;
  color: #000;
}
.hero-section span {
  color: #7a7a7a;
}

/* زر الهامبرغر */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hero-section .content {
    margin-top: 10px;
    width: 90%; /* تكبير العرض في الجوال ليناسب الشاشات الصغيرة */
  }
  .hero-section span {
    font-size: 12px;
  }
  .hero-section h1 {
    font-size: 22px;
  }
  .hero-section p {
    font-size: 8px;
    margin: 0;
  }
}

@media (max-width: 600px) {
  header {
    position: fixed;
    padding: 5px 10px;
    justify-content: space-between;
    gap: 5px;
  }

  header img {
    width: 130px;
  }

  .menu-toggle {
    order: 1;
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: #333;
    margin-left: 10px;
  }

  .header-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;

    /* تأثيرات الحركة */
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.4s ease-in-out,
      opacity 0.3s ease;
    opacity: 0;
    border-top: 2px solid #e4293a; /* لون أحمر يتناسب مع الشعار */
  }

  .header-nav.active {
    max-height: 100vh; /* تسمح للقائمة بالتمدد حسب المحتوى */
    opacity: 1;
  }

  .header-nav.is-open {
    display: block;
  }

  .header-nav ul {
    flex-direction: column;
    padding: 10px 0;
    margin: 0;
    list-style: none;
  }

  .header-nav ul li a {
    display: block;
    padding: 15px 25px;
    color: #333;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    text-align: right;
  }

  .search-img img {
    width: 22px;
    display: block;
  }

  .shop-img img {
    width: 22px;
    display: block;
  }

  .btn-cont {
    width: auto;
    min-width: 80px;
    font-size: 11px;
    color: black;
    padding: 6px 8px;
    margin: 0;
    white-space: nowrap;
  }
  .social-buttons button {
    color: #111;
  }

  /**/
  .back {
    color: #111;
    border: 1px solid #242323;
  }

  .title0 {
    font-size: 1.5rem;
  }

  .card-container1 {
    padding: 20px 10px;
    grid-template-columns: repeat(1, 1fr);
  }

  .cart-popup {
    left: 12px;
    right: 12px;
    width: auto;
  }

  .page-content {
    padding-bottom: 50px;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .cart-item__media img {
    margin-left: 0;
    width: 120px;
    height: 120px;
  }

  .cart-remove-btn {
    width: 100%;
  }

  .cart-summary {
    padding: 0 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .cart-checkout-btn {
    text-align: center;
  }

  .header-nav .submenu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding: 0;
  }

  footer .container {
    flex-direction: column;
    align-items: center;
    width: 100%;
    font-size: 12px;
  }
  footer .container h3 {
    width: 100%;
  }
  .footer-content img {
    width: 13px;
  }
  .bottom-bar {
    flex-direction: column;
    text-align: center;
  }

  .hero-section {
    width: 100%;
  }

  .hero-section-m {
    margin-top: 65px; /* لإعطاء مساحة كافية تحت الهيدر الثابت */
    height: 150px;
  }

  .logo-text {
    margin-top: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
  }

  .hero-section-m p {
    font-size: 2.5rem;
    margin: 0;
  }
  .lastV img {
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.5);
  }

  .search-class {
    flex-direction: column;
    padding: 120px 20px 30px;
    gap: 10px;
  }
  .search-input,
  .search-category,
  .search-btn {
    border-radius: 12px !important;
    border: 1px solid #eee !important;
    padding: 12px 20px;
    height: 50px;
  }
}

@media (max-width: 900px) {
  .checkout-container {
    flex-direction: column;
    gap: 20px;
    padding: 30px 16px;
  }

  .input-group {
    flex-direction: column;
    gap: 0;
  }

  .order-card {
    padding: 20px;
  }
}

.empty-cart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 20px;
  background-color: #fff;
  text-align: center;
  direction: rtl;
}

.empty-cart-content {
  max-width: 600px;
}

.cart-icon-wrapper {
  margin-bottom: 30px;
  opacity: 0.2;
}

.cart-icon-wrapper img {
  width: 120px;
  height: auto;
}

/* العنوان الرئيسي */
.empty-cart-title {
  font-size: 2rem;
  color: #333;
  font-weight: bold;
  margin-bottom: 20px;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

/* النص الوصفي */
.empty-cart-text {
  font-size: 1rem;
  color: #777;
  line-height: 1.8;
  margin-bottom: 40px;
}

.return-shop-btn {
  display: inline-block;
  background-color: #e4293a;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s;
}

.return-shop-btn:hover {
  background-color: #b71c1c;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* زر الصعود للأعلى */
#scroll-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #e4293a;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 1000;
  transition: all 0.3s ease;
}

#scroll-to-top:hover {
  background-color: #b71c1c;
  transform: translateY(-5px);
}

.load-more-btn-container {
  text-align: center;
  margin: 20px 0 40px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn1 {
  display: inline-block;
  padding: 15px 20px;
  background: whitesmoke;
  text-decoration: none;
  margin-top: 16px;
  color: black;
  font-size: 15px;
  font-weight: bold;
  border-radius: 25px;
  border: 1px solid black;
}

.btn1:hover {
  cursor: pointer;
  color: gray;
}

/* تصميم حاوية عرض المجلة PDF لمنع تمدد الصفحة */
.pdf-viewer-container {
  width: 95%;
  max-width: 1200px;
  height: 85vh; /* ارتفاع ثابت يمنع الصفحة من النزول للأسفل بشكل مفرط */
  margin: 20px auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden; /* يمنع تمدد الحاوية مع محتوى الـ PDF */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pdf-viewer-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* تنسيق المجلة المصغرة بدون حاوية */
.mini-magazine-view {
  width: min(600px, 95%); /* عرض مرن يسمح برؤية تأثير تقليب الصفحات */
  height: 400px; /* ارتفاع متناسق للعرض المصغر */
  margin: 30px auto;
  display: block;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* ظل خفيف لإبرازها فقط */
}

/* قسم التعليقات */
.comments-section {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #eee;
  direction: rtl;
}

.comment-form {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.comment-form h3 {
  margin-bottom: 15px;
  color: #235287;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
}

.comment-form button {
  background: #e4293a;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.comment-item {
  background: white;
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: bold;
  color: #e4293a;
}

.comment-date {
  font-size: 12px;
  color: #888;
}

.comment-body {
  line-height: 1.6;
  margin-bottom: 10px;
}

.reply-btn {
  background: none;
  border: none;
  color: #235287;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  padding: 0;
}

.replies-container {
  margin-right: 30px;
  border-right: 2px solid #eee;
  padding-right: 15px;
  margin-top: 10px;
}

/* تصميم شريط الأحداث المتحرك */
.latest-events-ticker {
  background: #fff;
  border-bottom: 2px solid #e4293a;
  display: flex;
  align-items: center;
  height: 50px;
  overflow: hidden;
  direction: rtl;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ticker-label {
  background: #e4293a;
  color: #fff;
  padding: 0 30px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 900;
  font-size: 15px;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

.ticker-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-content {
  display: flex;
  width: max-content;
  animation: ticker-slide 60s linear infinite;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-event {
  padding: 0 40px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

.ticker-event:hover {
  color: #e4293a;
}

.ticker-event::after {
  content: "★";
  margin-right: 30px;
  color: #e4293a;
  font-size: 12px;
}

@keyframes ticker-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}
