@font-face {
    font-family: 'vazir';
    src: url('../fonts/Vazir.woff') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'vazir', Tahoma, Geneva, Verdana, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* کادر اصلی – تمام عرض */
.hero-card {
  position: relative;
  width: 100%;
  min-height: 420px;
  background-color: #2563eb; /* اگر عکس لود نشد */
  overflow: hidden;
}

/* عکس پس‌زمینه */
.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
  transform: scale(1.15); /* جلوگیری از بریدگی blur */
  z-index: 1;
}

/* لایه تیره برای خوانایی */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:#6091fc99;
  z-index: 2;
}

/* محتوا */
.hero-content {
  position: relative;
  z-index: 3;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 24px;
}

/* عنوان */
.hero-title {
  font-size: 38px;
  margin-bottom: 32px;
}

/* دکمه‌ها */
.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

/* دکمه شیشه‌ای */
.glass-btn {
  padding: 14px 30px;
  font-size: 16px;
  color: #fff;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
}

/* 📱 ریسپانسیو */
@media (max-width: 768px) {
  .hero-title {
    font-size: 26px;
  }

  .hero-content {
    min-height: 340px;
  }

  .glass-btn {
    width: 100%;
    max-width: 280px;
  }
}


body {
    background-color: white;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Search Box Section */
.search-box {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

#search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid #2563eb;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#search-input:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 8px rgba(81, 119, 255, 0.3);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #2563eb;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #1e3a8a;
}

.search-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    background-color: white;
    padding: 15px 25px;
    border-radius: 11px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1e3a8a;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #2563eb;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #2563eb;
    border-radius: 50%;
}

.radio-option span {
    font-weight: 500;
}

/* Registration Section */
.registration-section {
    padding: 60px 0;
}

.registration-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.registration-boxes p {
    color: #ffffff;
    font-weight: bold;
}

.reg-box {
    border-radius: 11px;
    padding: 50px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px;
    justify-content: center;
}

.employer-box {
    background-color: #1e3a8a;
}

.setter-box {
    background-color: #2563eb;
}

.box-title {
    color: white;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 700;
}

.box-image {
    margin: 30px 0;
}

.reg-btn {
    border: none;
    padding: 16px 32px;
    border-radius: 11px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.primary-btn {
    background-color: #2563eb;
    color: white;
}

.complementary-btn {
    background-color: #1e3a8a;
    color: white;
}

/* Suggested Ads Section */
.suggested-ads-section {
    padding: 60px 0;
    background-color: #1e3a8a;
}
.suggested-worker-section {
    margin-top: 10px;
    padding: 60px 0;
    background-color: #2563eb;
}
.suggested-employer-section {
    margin-top: 10px;
    padding: 60px 0;
    background-color: #008a84;
}

.suggested-ads-section h4 {
    text-align: center;
    color: #ffffff;
}
.suggested-worker-section h4 {
    text-align: center;
    color: #ffffff;
}

.suggested-ads-container {
    position: relative;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.suggested-ads-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    width: 100%;
    max-width: calc(280px * 4 + 20px * 3);
    margin: 0 auto;
}

.suggested-ads-scroll::-webkit-scrollbar {
    height: 8px;
}

.suggested-ads-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.suggested-ads-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.suggested-ads-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.suggested-ad-item {
    background-color: white;
    border-radius: 11px;
    padding: 20px;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.suggested-ad-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.suggested-ad-title {
    color: #1e3a8a;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.suggested-ad-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggested-ad-price {
    color: #2563eb;
    font-size: 16px;
    font-weight: 600;
}

.suggested-ads-more-btn {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    padding: 12px 30px;
    border-radius: 11px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-top: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.suggested-worker-more-btn {
    background-color: #1e3a8a;
}
.suggested-employer-more-btn {
    background-color: #006b66;
}


.suggested-ads-more-btn:hover {
    background-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #1e3a8a;
    margin-bottom: 50px;
    font-weight: 700;
}

.features-box {
    background-color: white;
    border-radius: 11px;
    padding: 50px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.feature-title {
    color: #1e3a8a;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-desc {
    color: #666;
    font-size: 14px;
}

/* Locations Section */
.locations-section {
    padding: 80px 0;
}

.locations-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.locations-content > img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.locations-image {
    display: flex;
    justify-content: center;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.city-item {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 11px;
    text-align: center;
    font-weight: 500;
    color: #1e3a8a;
    transition: all 0.3s ease;
    cursor: pointer;
}

.city-item:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(81, 119, 255, 0.3);
}

/* Served Cities Section */
.served-cities-section {
    margin-top: 10px;
    padding: 60px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50% 100%);
}

.served-cities-section .section-title {
    color: #ffffff;
    margin-bottom: 40px;
}

.served-cities-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.served-city-item {
    background-color: #ffffff17;
    border-radius: 16px;
    padding: 18px 12px;
    text-align: center;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.served-city-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.served-city-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    background-color: rgba(255, 255, 255, 0.16);
}

.served-city-item:hover::before {
    opacity: 1;
}

.served-city-name {
    position: relative;
    z-index: 1;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .suggested-ads-scroll {
        max-width: calc(250px * 3 + 20px * 2);
    }
    
    .suggested-ad-item {
        min-width: 250px;
        max-width: 250px;
        padding: 18px;
    }
    
    .suggested-ad-title {
        font-size: 16px;
    }
    
    .suggested-ad-desc {
        font-size: 13px;
    }

    .registration-boxes {
        grid-template-columns: 1fr;
    }
    
    .features-box {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .city-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .locations-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .locations-content > img {
        max-width: 250px;
    }
}

@media (max-width: 640px) {
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .logo-section, .auth-btn {
        flex: 0 0 auto;
    }
    
    .logo-center {
        order: -1;
        flex: 0 0 100%;
        justify-content: flex-start;
    }
    
    .logo-section{
        font-size: 20px;
    }

    
    .reg-box {
        padding: 40px 20px;
        min-height: 350px;
    }
    
    .box-title {
        font-size: 24px;
    }
    
    .features-box {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
    
    .city-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .locations-content > img {
        max-width: 200px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .suggested-ads-section {
        padding: 40px 0;
    }
    
    .suggested-worker-section {
        padding: 40px 0;
    }
    
    .suggested-ads-container {
        padding: 20px 15px;
    }
    
    .suggested-ads-scroll {
        max-width: calc(220px * 2 + 20px * 1);
    }
    
    .suggested-ad-item {
        min-width: 220px;
        max-width: 220px;
        padding: 15px;
    }
    
    .suggested-ad-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .suggested-ad-desc {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .suggested-ad-price {
        font-size: 14px;
    }
    
    .suggested-ads-more-btn {
        padding: 10px 25px;
        font-size: 14px;
        margin-top: 20px;
    }
    
    .search-options {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
        width: 100%;
    }
    
    .search-input-wrapper {
        max-width: 100%;
    }
    
    .radio-option {
        font-size: 13px;
    }

    .served-cities-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
    }

    .served-city-name {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .served-cities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}