:root {
    --brand: #61de8b;
    --ink: #111827;
    --muted: #6b7280;
    --bg: #fafafa;
    --card: #ffffff;
    --radius: 18px;
    --shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 1rem;
    overflow-x: hidden;
    text-decoration: none;
}



.hero {
    margin: 0;
    padding: 120px 20px 70px;
    background: linear-gradient(135deg, #3c82d8, #61de8b);
    color: #fff;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search {
    display: flex;
    align-items: center;
    gap: 100px;
    background: #fff;
    border-radius: 100px;
    padding: 6px 10px;
    box-shadow: var(--shadow);
}

.search input {
    flex: 1;
    min-width: 460px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    color: #111;
    outline: none;
}

.search button {
    background: var(--brand);
    border: none;
    border-radius: 100px;
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.search button:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.search button svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.hero-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.5rem;
        margin-top: 16px;
    }
}


@media (max-width: 768px) {
    .search {
        flex-direction: row;
        gap: 8px;
        border-radius: 12px;
        padding: 6px 8px;
        width: 100%;
    }

    .search input {
        min-width: unset;
        width: 100%;
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .search button {
        padding: 8px 10px;
    }

    .search button svg {
        width: 18px;
        height: 18px;
    }
}
.btn {
    border: none;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
    font-size: .95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.btn.secondary {
    background: #f3f4f6;
    color: #111827;
}

.types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  gap: 20px;
  min-height: 400px;
  place-items: center;
}

.type-card {
  position: relative;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
}

.type-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  filter: brightness(.7);
}

.type-card b {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  text-align: center;
  line-height: 1.2;
}

.type-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0));
  z-index: 1;
  transition: opacity .3s ease;
  opacity: .6;
}

.type-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .15);
}

.type-card:hover img {
  transform: scale(1.08);
}

.type-card:hover::after {
  opacity: .4;
}

.type-card .coming-soon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: #fff;
  opacity: 0.8;
  z-index: 2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
  margin: 0;
  text-align: center;
  white-space: nowrap;
  top: calc(50% + 1.2rem);
  line-height: 1.2;
}

@media (max-width: 768px) {
  .types {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 10px;
  }

  .type-card {
    height: 140px;
  }

  .type-card b {
    font-size: 1.2rem;
  }

  .type-card .coming-soon {
    top: calc(50% + 0.8rem);
    font-size: clamp(0.7rem, 3vw, 0.8rem);
  }
}

@media (max-width: 480px) {
  .types {
    grid-template-columns: repeat(2, 1fr); /* تغییر به دو ستون، حتی در موبایل‌های کوچک */
    gap: 8px; /* gap کوچیک‌تر برای جا شدن بهتر */
    padding: 0 5px;
  }

  .type-card {
    height: 120px;
  }

  .type-card b {
    font-size: 1rem;
  }

  .type-card .coming-soon {
    top: calc(50% + 0.7rem); /* Half of 1rem + 0.2rem spacing */
    font-size: 0.7rem;
  }
}
.promo {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    max-width: 1400px;

    margin: 40px auto;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


.promo-inner {
    max-width: 800px;
    margin: 0 auto;
}

.promo h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--brand);
}

.promo p {
    font-size: 1.15rem;
    margin-bottom: 28px;
    opacity: 0.95;
    line-height: 1.7;
}

.offers {
    padding: 70px 20px;
    background: #f9fafb;
}

.offers-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.offers-inner h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 800;
    color: var(--ink);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.offer-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: right;
    display: flex;
    flex-direction: column;
    height: 100%;
}



.offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.offer-tag {
    position: absolute;
    top: 12px;
    left: 0;
    background: linear-gradient(90deg, #9333ea, #6d28d9);
    color: #fff;
    padding: 6px 14px;
    border-radius: 0 8px 8px 0;
    font-size: .85rem;
    font-weight: 700;
}

.offer-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.offer-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.offer-type {
    display: block;
    font-size: .85rem;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 600;
}

.offer-title {
    font-size: 1.2rem;
    margin: 0 0 6px;
    font-weight: 800;
    color: #111827;
}

.offer-sub {
    font-size: .95rem;
    color: #6b7280;
    margin: 0 0 12px;
}

.offer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rating {
    background: #10b981;
    color: #fff;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 700;
}

.price {
    font-weight: 700;
    font-size: .95rem;
    color: #fff;
    background-color: #ff0d0d;
    border-radius: 5px;
    padding: 5px;
}

.offer-footer {
    font-size: .85rem;
    color: #6b7280;
    margin-top: auto;
}

.offer-btn {
    margin-top: 12px;
    width: 100%;
}

.loading {
    text-align: center;
    padding: 20px;
    font-size: 1rem;
    color: #6b7280;
    display: none;
}

.loading.active {
    display: block;
}

footer {
    margin-top: 50px;
    background: #111827;
    color: #fff;
}

.foot {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.foot h4 {
    margin-bottom: 14px;
    font-size: 1.15rem;
    color: var(--brand);
    font-weight: 700;
}

.foot a {
    display: block;
    margin: 6px 0;
    color: #f3f4f6;
    text-decoration: none;
    font-size: .95rem;
    transition: .2s;
}

.foot a:hover {
    color: #fcd34d;
    transform: translateX(-2px);
}

.doctor-login {
    text-align: center;
    margin: 20px 0;
}

.doctor-btn {
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    max-width: 100%;
    width: 100%;
}

.doctor-btn i {
    margin-right: 8px;
}

.doctor-btn:hover {
    background-color: #0056b3;
}


.sub {
    border-top: 1px solid #333;
}

.sub-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: #9ca3af;
    font-size: .9rem;
}

@media (max-width: 768px) {
    .foot {
        grid-template-columns: repeat(2, 1fr);
    }
}


.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    transition: transform 0.4s ease;
    z-index: 9999;
    min-height: 60px;
}

.mobile-bottom-nav.hidden {
    transform: translateY(100%);
}

.mobile-bottom-nav .nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ink);
    background: none;
    border: none;
    margin: 0;
    padding: 8px 6px;
    box-sizing: border-box;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-bottom-nav .doctor-btn {
    width: auto;
    padding: 8px 12px;
    border-radius: 12px;
}

.mobile-bottom-nav .nav-btn i,
.mobile-bottom-nav .nav-btn svg {
    font-size: 1.4rem;
    width: 30px;
    height: 30px;
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-btn span {
    font-size: 0.8rem;
}

@media (max-width: 320px) {
    .mobile-bottom-nav .nav-btn {
        padding: 0 4px;
        font-size: 0.7rem;
    }

    .mobile-bottom-nav .nav-btn i {
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none;
    }
}
.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 10px;
    margin-right: -30px;
}

.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}


.icon-container img {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    transition: transform 0.3s ease;
}

.icon-container p {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

header.scrolled .icon-container img {
    width: 28px;
    height: 28px;
}

header.scrolled .icon-container p {
    font-size: 0.7rem;
}

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



.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 1px;
    flex: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;

}

.hamburger {
    display: none;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 20px;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 200;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-center,
    .nav-right {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .nav-center .btn,
    .nav-right .btn {
        width: 100%;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 210;
    }

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: #333;
    }
}


.doctor-categories {
    padding: 70px 20px;
    background: #f9fafb;
    text-align: center;
}

.categories-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.categories-inner h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 10px;
}

.categories-inner .sub-text {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--ink);
}

.category-card i {
    font-size: 2rem;
    color: var(--brand);
    margin-bottom: 14px;
}

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.category-card p {
    font-size: 0.95rem;
    color: var(--muted);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    color: var(--ink);
}

.doctors {
    padding: 70px 20px;
    background: #f9fafb;
    text-align: center;
}

.doctors-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.doctors-inner h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 40px;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.doctor-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.doctor-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.doctor-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doctor-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--ink);
}

.specialty {
    font-size: 0.95rem;
    color: var(--brand);
    font-weight: 600;
}

.clinic {
    font-size: 0.9rem;
    color: var(--muted);
}

.doctor-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin: 12px 0;
}

.doctor-meta .rating {
    background: #10b981;
    color: #fff;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 700;
}

.doctor-meta .experience {
    color: #6b7280;
}


.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.category-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .categories-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .category-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 12px 16px;
        height: 80px;
        background: #fff;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        text-align: left;
        direction: ltr;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;
    }

    .category-card i,
    .category-card .category-img {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        margin-bottom: 0;
        font-size: 1.5rem;
        color: var(--brand);
        flex-shrink: 0;
    }

    .category-card .category-img {
        border-radius: 50%;
        object-fit: cover;
    }

    .category-card h3 {
        font-size: 0.8rem;
        font-weight: 700;
        margin: 0;
        color: var(--ink);
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .category-card p {
        font-size: 0.85rem;
        color: var(--muted);
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .category-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
}

.labs {
    padding: 70px 20px;
    background: #f9fafb;
    text-align: center;
}

.labs-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.labs-inner h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 10px;
}

.labs-inner .sub-text {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 40px;
}

.labs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.lab-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lab-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.lab-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.lab-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lab-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--ink);
}

.location {
    font-size: 0.9rem;
    color: var(--muted);
}

.desc {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
}

.lab-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin: 12px 0;
}

.lab-meta .rating {
    background: #10b981;
    color: #fff;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 700;
}

.lab-meta .price {
    font-weight: 600;
    color: #111827;
}

.pharmacies {
    padding: 70px 20px;
    background: #f9fafb;
    text-align: center;
}

.pharmacies-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.pharmacies-inner h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 10px;
}

.pharmacies-inner .sub-text {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 40px;
}

.pharmacies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.pharmacy-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pharmacy-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.pharmacy-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pharmacy-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pharmacy-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--ink);
}

.location {
    font-size: 0.9rem;
    color: var(--muted);
}

.desc {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
}

.pharmacy-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin: 12px 0;
}

.pharmacy-meta .status {
    font-weight: 700;
}

.pharmacy-meta .status.open {
    color: #10b981;
}

.pharmacy-meta .status.closed {
    color: #ef4444;
}

.pharmacy-meta .hours {
    color: #111827;
    font-weight: 600;
}

.actions {
    display: flex;
    gap: 10px;
}

.clinics {
    padding: 70px 20px;
    background: #f9fafb;
    text-align: center;
}

.clinics-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.clinics-inner h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 40px;
}

.clinics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.clinic-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.clinic-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.clinic-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.clinic-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clinic-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--ink);
}

.specialty {
    font-size: 0.95rem;
    color: var(--brand);
    font-weight: 600;
}

.location {
    font-size: 0.9rem;
    color: var(--muted);
}

.clinic-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin: 12px 0;
}

.clinic-meta .rating {
    background: #10b981;
    color: #fff;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 700;
}

.clinic-meta .experience {
    color: #6b7280;
}

.profile {
    padding: 120px 20px 40px;
    background: #f9f9f9;
}

.profile-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    /* برای قرار دادن باکس تخفیف */
}

.profile-img-wrapper {
    position: relative;
    text-align: center;
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.instagram-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 2rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.instagram-link:hover {
    color: #E1306C;

}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e20000;
    color: #fff;
    padding: 8px 15px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: rotate(5deg);
    transition: transform 0.3s ease;
}

.discount-badge:hover {
    transform: rotate(0deg) scale(1.1);
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.profile-info .specialty {
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 5px;
}

.profile-info .location {
    color: #555;
    margin-bottom: 5px;
}

.profile-info .rating {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 15px;
}

.profile-info .btn {
    margin-right: 10px;
    margin-top: 5px;
}

.profile-info .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-info .header h2 {
    margin: 0;
}

.msg-btn {
    margin-top: 12px;
    width: 10%;
}

.about {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}

.about h3 {
    margin-bottom: 10px;
}

.reviews {
    max-width: 1000px;
    margin: 20px auto 60px;
    padding: 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.reviews h3 {
    margin-bottom: 15px;
}

.review-card {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.review-card:last-child {
    border-bottom: none;
}

.review-text {
    font-style: italic;
}

.review-author {
    display: block;
    margin-top: 5px;
    font-weight: bold;
    color: #555;
}

.review-form {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
}

.review-form textarea {
    resize: none;
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

.review-form button {
    align-self: flex-end;
}

@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-info .btn {
        margin: 10px 5px 0;
    }

    .discount-badge {
        top: 15px;
        right: 15px;
    }
}

.appointment {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.appointment h3 {
    margin-bottom: 15px;
}

.appointment form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.appointment input,
.appointment select {
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.day {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.date-picker {
    margin-bottom: 20px;
    text-align: center;
}

.date-picker input {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.time-slots {
    margin: 20px 0;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
}

.slot-btn,
.slot {
    display: inline-block;
    padding: 18px 25px;
    border-radius: 12px;
    border: 2px solid var(--primary);
    background: #fff;
    color: var(--primary);
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.slot-btn:hover,
.slot:hover {
    background: var(--primary);
    color: var(--brand);
    border: 1px solid var(--brand);
}

.slot-btn.selected,
.slot.selected {
    background: var(--brand);
    color: #fff;
    border: 2px solid var(--secondary);
}

.day h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.slot {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    transition: 0.2s;
}

.slot:hover {
    background: var(--primary);
    color: #b1b1b1;
}

.slot.selected {
    background: var(--secondary);
    color: #77ba52;
    border: none;
}

.contact-numbers {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.phone-number {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: 0.2s;
}

.phone-number:hover {
    color: var(--secondary);
}

.star-rating {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.star-rating span {
    font-size: 2rem;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s;
}

.star-rating span.active {
    color: gold;
}

.star-rating span.active,
.star-rating span:hover,
.star-rating span:hover~span {
    color: gold;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 1.5rem;
    cursor: pointer;
    color: #ccc;
    transition: color 0.3s;
}

.star-rating input:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: gold;
}

.doctor-address {
    margin-top: 20px;
    padding: 15px;
    background: #fdfdfd;
    border-radius: 15px;
    border: 1px solid #eee;
    box-shadow: var(--shadow);
}

.doctor-address h4 {
    margin-bottom: 8px;
    color: var(--primary);
}

.map-container {
    margin-top: 10px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.portfolio {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.portfolio h3 {
    margin-bottom: 15px;
}

.gallery-wrapper {
    position: relative;
    overflow: hidden;
}

.gallery-container {
    overflow: hidden;
    width: 100%;
}

.gallery-track {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease-in-out;
}

.gallery-img {
    width: 240px;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.3s;
    box-shadow: var(--shadow);
}

.gallery-img:hover {
    transform: scale(1.05);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 5px;
    z-index: 2;
    transition: transform 0.2s ease;
}

.gallery-nav-btn:hover {
    transform: translateY(-50%) scale(1.2);
}

.gallery-nav-btn.left {
    left: 10px;
}

.gallery-nav-btn.right {
    right: 10px;
}

#imagePopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#imagePopup img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

#imagePopup.hidden {
    display: none;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
}

.service-picker {
    margin-bottom: 20px;
    text-align: center;
}

.service-picker select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 12px 40px 12px 15px;
    border-radius: 12px;
    border: 1px solid #b2b2b2;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    background: #fff url("data:image/svg+xml;utf8,<svg fill='%23006699' height='24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 12px center;
    background-size: 20px;
    transition: all 0.3s ease;
}

.service-picker select:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.gallery-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 8px 16px;
    border: 1px solid var(--primary);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
}

.tab-btn:hover {
    background: var(--secondary);
    color: #fff;
}



.order {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.order h3 {
    margin-bottom: 15px;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.order-item img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.order-item .info {
    flex: 1;
}

.order-item button {
    white-space: nowrap;
}

.icon-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.icon-container svg {
    width: 50px;
    height: 50px;
}

.icon-container p {
    font-size: 1rem;
    margin-top: 1px;
    color: #333;
    font-weight: 600;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup.hidden {
    display: none;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 250px;
}

.popup-content button {
    display: block;
    width: 100%;
    margin: 8px 0;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

#callBtn {
    background: #007bff;
    color: white;
}

#whatsappBtn {
    background: #25d366;
    color: white;
}

#closePopup {
    background: #ccc;
}

.see-more {
    align-items: center;
    text-align: center;
    margin-top: 50px;
    font-weight: 600;
    font-size: 20px;
}

.see-more a {
    text-decoration: none;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.arrows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.arrow {
    width: 15px;
    height: 15px;
    border-right: 3px solid black;
    border-bottom: 3px solid black;
    transform: rotate(45deg);
    opacity: 0;
    animation: slideDown 1.8s ease-in-out infinite;
    transition: border-color 0.3s ease;
}

.see-more a:hover .arrow {
    border-color: var(--brand);
}


.arrow:nth-child(1) {
    animation-delay: 0s;
}

.arrow:nth-child(2) {
    animation-delay: 0.3s;
}

.arrow:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-12px, -12px) scale(0.8);
    }

    50% {
        opacity: 1;
        transform: rotate(45deg) translate(0, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(12px, 12px) scale(0.8);
    }
}

a {
    text-decoration: none;
    border-bottom: none;
}