/* ========================================================================== 
   Services Section
   ========================================================================== */

.services-section {
  padding: 80px 0;
  background: var(--background);
}

/* Section Heading */
.section-heading {
  text-align: center;
  margin-bottom: 45px;
}

.section-heading span {
  display: inline-block;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-heading h2 {
  color: var(--primary);
  font-size: var(--fs-2xl);
  margin: 0;
}

/* Grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: -12px;
}

.col {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 12px;
}

@media (max-width: 992px) {
  .col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 576px) {
  .col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Service Card */
.service-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(22, 58, 74, 0.08);
  transition: 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 35px rgba(22, 58, 74, 0.14);
}

/* Image */
.service-img-wrap {
  position: relative;
}

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

/* Category */
.service-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--secondary);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* Content */
.service-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: var(--fs-lg);
  color: var(--primary);
  margin: 0 0 10px;
}

.service-desc {
  color: var(--text);
  line-height: 1.8;
  font-size: var(--fs-sm);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Call Button */
.service-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 30px;
  transition: 0.3s ease;
  font-size: var(--fs-sm);
}

.service-call-btn:hover {
  background: var(--secondary);
  color: var(--white);
}

.service-call-btn i {
  font-size: var(--fs-sm);
}

/* ========================================================================== 
      skin care
========================================================================== */
.inner-hero {
  background:
    linear-gradient(rgba(22, 58, 74, 0.82), rgba(22, 58, 74, 0.82)),
    url("../images/skincare-banner.webp") center / cover;

  padding: 120px 20px 80px;
  text-align: center;
  color: var(--white);
  margin-top: 80px;
}

.inner-hero .hero-title {
  font-size: var(--fs-3xl);
  margin-bottom: 15px;
  color: var(--accent);
  font-family: var(--font-family);
  font-weight: 700;
}

.inner-hero .hero-subtitle {
  font-size: var(--fs-lg);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--white);
  font-family: var(--font-family);
}

.skincare-page-section {
  padding: 80px 0;
  background-color: var(--background);
}

.filter-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 30px;

  font-family: "Tajawal", var(--font-family), sans-serif;
  font-size: var(--fs-base);
  font-weight: 600;

  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.filter-btn:hover {
  transform: translateY(-2px);
}

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

.skincare-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;

  box-shadow: 0 5px 20px rgba(29, 42, 48, 0.06);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  padding-bottom: 20px;
  text-align: center;
}

.skincare-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(29, 42, 48, 0.12);
}

.card-img-wrapper img {
  width: 100%;
  height: 220px;
  object-fit: cover;

  border-bottom: 3px solid var(--accent);
  display: block;
}

.skincare-card h3 {
  color: var(--primary);
  font-family: var(--font-family);
  font-size: var(--fs-xl);

  margin: 20px 15px 10px;
  font-weight: 700;
}

.skincare-card p {
  color: var(--text);
  font-family: var(--font-family);
  font-size: var(--fs-sm);

  line-height: 1.8;
  padding: 0 15px;
  margin-bottom: 25px;
}

.skincare-card.hide {
  display: none;
}

@media (max-width: 768px) {
  .inner-hero {
    padding: 100px 20px 60px;
    margin-top: 70px;
  }

  .inner-hero .hero-title {
    font-size: var(--fs-2xl);
  }

  .inner-hero .hero-subtitle {
    font-size: var(--fs-base);
  }

  .skincare-page-section {
    padding: 60px 15px;
  }

  .skincare-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .card-img-wrapper img {
    height: 210px;
  }
}

@media (max-width: 480px) {
  .inner-hero {
    padding: 90px 15px 50px;
  }

  .inner-hero .hero-title {
    font-size: var(--fs-xl);
  }

  .filter-controls {
    gap: 10px;
  }

  .filter-btn {
    padding: 9px 18px;
    font-size: var(--fs-sm);
  }

  .skincare-card h3 {
    font-size: var(--fs-lg);
  }
}
.about-section {
  margin-bottom: 80px;
}

.about-section .container {
  display: flex;
  align-items: center;
  gap: 60px;
  padding-top: 2rem;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.image-wrapper {
  position: relative;
  display: inline-block;
  z-index: 1;
  margin-top: 20px;
  margin-left: 20px;
}

.image-wrapper img {
  display: block;
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 12px;
  position: relative;
  z-index: 2;
}

/* إطار زخرفي أعلى يسار الصورة باستخدام اللون الثانوي */
.image-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 8px solid var(--secondary);
  border-radius: 20px;
  z-index: 1;
}

/* مربع زخرفي أسفل يمين الصورة باستخدام لون التمييز */
.image-wrapper::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background-color: var(--accent);
  z-index: 0;
}

.about-content {
  flex: 1;
}

.about-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.about-header h2 {
  font-size: var(--fs-xl);
  font-weight: bold;
  color: var(--primary);
  margin: 0;
}

/* مربع الأيقونة الغامق جنب العنوان */
.header-icon {
  background-color: var(--primary);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-icon::before {
  content: "🏢";
  font-size: var(--fs-sm);
  color: var(--white);
}

.about-content h3 {
  font-size: var(--fs-md);
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text);
  line-height: 1.6;
}

.about-content p {
  font-size: var(--fs-md);
  color: var(--text);
  opacity: 0.9;
  text-align: justify;
  line-height: 1.9;
  margin: 0;
}

/* =========================================
   SECTION 2: About Panels / Tabs (عن العيادة)
   ========================================= */
.panels-section {
  background-color: var(--white);
}

.panels-section .container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.tabs-sidebar {
  width: 250px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(29, 42, 48, 0.05); /* تحديث الظل ليناسب --text */
}

.tabs-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 15px 20px;
  font-size: var(--fs-base);
  font-weight: bold;
  text-align: center;
}

.tab-list {
  list-style: none;
  background-color: var(--background);
  margin: 0;
  padding: 0;
}

.tab-button {
  width: 100%;
  text-align: right;
  padding: 15px 20px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(29, 42, 48, 0.1);
  cursor: pointer;
  font-size: var(--fs-base);
  font-family: inherit;
  color: var(--text);
  transition: background 0.3s ease;
}

.tab-button:last-child {
  border-bottom: none;
}

.tab-button:hover {
  background-color: rgba(29, 42, 48, 0.03); /* تأثير hover مناسب */
}

.tab-button.active {
  background-color: var(--white);
  font-weight: bold;
  border-right: 4px solid var(--primary);
}

.tab-content-area {
  flex: 1;
  min-width: 0;
  padding: 20px 0;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-pane.active {
  display: block;
}

.tab-pane h3 {
  font-size: var(--fs-lg);
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary); /* ميزنا العناوين باللون الأساسي */
}

.tab-pane p {
  font-size: var(--fs-base);
  color: var(--text);
  opacity: 0.9;
  line-height: 1.8;
  text-align: justify;
  margin: 0;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-section .container {
    flex-direction: column;
  }
  .panels-section .container {
    flex-direction: column;
  }
  .tabs-sidebar {
    width: 100%;
  }
  .image-wrapper::after {
    bottom: -15px;
    right: -15px;
  }

  /* ===== شكل التابات في الموبايل ===== */
  .tabs-sidebar .tabs-header {
    display: none;
  }

  .tabs-sidebar {
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }

  .tab-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    background: none;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tab-list::-webkit-scrollbar {
    display: none;
  }

  .tab-button {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
    text-align: center;
    padding: 10px 20px;
    border: 1px solid var(--secondary); /* تحديد الحدود باللون الثانوي */
    border-radius: 999px;
    background-color: var(--white);
    font-size: var(--fs-sm);
  }

  .tab-button:last-child {
    border-bottom: 1px solid var(--secondary);
  }

  .tab-button.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    border-right: none;
  }

  .tab-content-area {
    padding: 10px 4px;
  }
}
