.page-container {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  box-sizing: border-box;
}

.hero-header {
    height: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #7851A9;
    color: white;
    text-align: center;
    direction: rtl;
    flex-direction: column;
    padding: 1.5rem;
}

.hero-header h1 {
    font-family: 'Secular One', sans-serif;
    font-size: 70px;
    font-weight: 400;
    margin-bottom: 20px;
    justify-self: center;
}

.hero-header p {
    font-family: 'Heebo', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0;
}

.container {
  margin: 2rem auto;
  padding: 1rem;
}
.features {
  display: grid;
  gap: 1rem;
}
.features div {
  background-color: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.cta {
  text-align: center;
  margin: 1.5rem 0;
}
.cta button {
  background-color: #5cbf7b;
  color: white;
  font-size: 1.2rem;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.cta button:hover {
  background-color: #4aa667;
}
footer {
  text-align: center;
  padding: 1rem;
  color: #777;
}

.site-footer {
  background-color: #7851A9;
  color: white;
  text-align: center;
  padding: 1rem 0;
  direction: rtl;
  font-family: 'Assistant', sans-serif;
}

.loading {
  display: inline-block;
  margin-right: 10px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.button-link {
  display: inline-block;
  padding: 12px 20px;
  background-color: #4caf50;
  color: white;
  text-decoration: none;
  font-size: 16px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.button-link:hover {
  background-color: #388e3c;
}


.tools-section {
  background-color: #f9f9f9;
  padding: 2rem 1rem;
  direction: rtl;
}

.tools-inner {
  margin: 0 auto;
  text-align: center;
}

.tools-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-items: center; /* חשוב – כדי למרכז את האלמנטים עם max-width */

}

.tool-item {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.2s ease;
  width: 33.33%;
}

@media (max-width: 829px) {
  .tool-item {
    width: 50%;
  }
}

@media (max-width: 555px) {
  .tool-item {
    width: 100%;
  }
}

.tool-item:hover {
  transform: translateY(-5px);
}

.tool-item a {
  color: inherit;
  text-decoration: none;
  display: block;
  padding: 1rem;
}

.tool-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.tool-item h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.tool-item p {
  font-size: 0.95rem;
  color: #666;
}

.tools-section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #7851A9;
}

.blog-section {
  background-color: #7851A9;
  padding: 2rem 1rem;
  direction: rtl;
}

.blog-inner {
  margin: 0 auto;
  text-align: center;
}

.blog-section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #f9f9f9;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-items: center; /* חשוב – כדי למרכז את האלמנטים עם max-width */

}

.blog-item {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.2s ease;
  width: 100%;
}

.blog-item:hover {
  transform: translateY(-5px);
}

.blog-item a {
  color: inherit;
  text-decoration: none;
  display: block;
  padding: 1rem;
}

.blog-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.blog-item h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.blog-item p {
  font-size: 0.95rem;
  color: #666;
}

.user-menu {
  position: relative;
  display: inline-block;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  min-width: 120px;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.user-dropdown li {
  padding: 8px 16px;
}

.user-dropdown li a {
  text-decoration: none;
  color: #333;
}

.user-dropdown li a:hover {
  background-color: #f0f0f0;
}

.hidden {
  display: none;
}