/* global styles------------------------------- */

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

  --green: #198754;
  --lightGreen: #ceecd8;
  --gray: #a6abb0;
  --lightGray: #e7e5e5;
  --backgroundColor: #f5f2ed;
  --darkBlue: #1981da;
  --blue: #0d6efd;
}

@font-face {
  font-family: Vazir;
  src:
    url("../fonts/Vazir/Vazir-Light.woff2") format("woff2"),
    url("../fonts/Vazir/Farsi-Digits-Without-Latin/Vazir-Light-FD-WOL.woff") format("woff"),
    url("../fonts/Vazir/Farsi-Digits-Without-Latin/Vazir-Light-FD-WOL.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: Vazir-FD;
  src:
    url("../fonts/Vazir/Vazir-Light.woff2")
      format("woff2"),
    url("../fonts/Vazir/Farsi-Digits-Without-Latin/Vazir-Light-FD-WOL.woff")
      format("woff"),
    url("../fonts/Vazir/Farsi-Digits-Without-Latin/Vazir-Light-FD-WOL.ttf")
      format("truetype");
  font-weight: 300;
  font-style: normal;
}

body {
  font-family: "Vazir-FD", "Vazir", sans-serif;
  background-color: var(--backgroundColor);
}


a {
  cursor: pointer;
  text-decoration: none;
}
a:hover {
  color: var(--blue) !important;
}

/* background of header--------------------------------  */

  header {
    background-image:
            linear-gradient(to right, rgba(245, 242, 237, 0.7), rgba(255, 255, 255, 0)),
            url("../img/backgroundImg.png"),
            url("../img/background.jpg");
    background-size: cover, contain, cover;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: center, left center, center;
  }



@media (max-width: 991px) {
  header {
    background-image:
      linear-gradient(
        to right,
        rgba(245, 242, 237, 0.7),
        rgba(255, 255, 255, 0)
      ),
      url("../img/background.jpg");

    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
  }
}

/* for lawyers cards  and for articles cards shadow when hover ----------------------------*/
.transition-hover {
  transition: all 0.3s ease-in-out;
}
.transition-hover:hover {
  box-shadow: 0px 0px 15px 0px var(--gray);
}
/* for articles cards------------------------------------------ */
.customBorder {
  background:
    linear-gradient(#f5f2ed, #f5f2ed) padding-box,
    linear-gradient(145deg, transparent 35%, var(--gray), var(--gray))
      border-box;
  border: 2px solid transparent;
}

/* شبکه های اجتماعی */

.svgSocialMedia {
  font-size: 1.5rem;

  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: 0.3s;
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 5px rgba(255, 255, 255, 0.5),
    0 5px 5px rgba(0, 0, 0, 0.16);
}

.textSocialMedia {
  opacity: 0;
  transition: 0.3s;
  position: absolute;
  z-index: 10;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  color: var(--lightGray);
}

.iso-pro:hover .svgSocialMedia {
  transform: translate(5px, -5px);
}
.iso-pro:hover .textSocialMedia {
  opacity: 1;
  transform: translate(25px, -2px) skew(-5deg);
}
/* -------------------------------------------------- */

.neumorphism-card {
  box-shadow:
    15px 15px 30px #bebebe,
    -15px -15px 30px #ffffff;
}

/* Home Page Cards - کارت‌های صفحه اصلی */
.home-content-card {
  border-radius: 16px;
  min-height: 350px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  background: #fff;
}
.home-content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(13, 110, 253, 0.15);
}
.home-content-card .card-title {
   font-size: 20px !important;
   margin: 24px 20px 10px 20px;
   color: black;
 }
.home-content-card .card-title h2 {
   font-size: 17px!important;
   font-weight: 700;
   color: #212529;
   line-height: 1.4;
 }
.home-content-card .card-body {
   overflow: hidden;
   padding: 20px;
   font-size: 0.95rem;
   line-height: 1.7;
   color: #495057;
 }
.home-content-card .card-footer{
   border: none;
   padding: 16px 20px;
   background: #fff !important;
   border-top: 1px solid rgba(0, 0, 0, 0.05);
 }
.home-content-card .card-footer .btn-primary {
   padding: 8px 20px;
   border-radius: 8px;
   font-size: 0.9rem;
   font-weight: 500;
   transition: all 0.2s ease;
 }
.home-content-card .card-footer .btn-primary:hover {
   transform: scale(1.05);
 }
.home-content-card .card-footer small {
   color: #6c757d;
   font-size: 0.875rem;
 }
.home-content-card .card-footer small a {
   color: #0d6efd;
   text-decoration: none;
   font-weight: 500;
   transition: color 0.2s ease;
 }
.home-content-card .card-footer small a:hover {
   color: #0a58ca;
 }

/* Legacy card styles */
.card-title-call{
  font-size: 15px !important;
}
 .glass-card{
   padding: 20px;
   border-radius: 20px;
 }
.btn-glass {
  background-color: rgba(13, 110, 253, 0.7); /* رنگ btn-primary با کمی شفافیت */
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  backdrop-filter: blur(8px); /* افکت شیشه‌ای */
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background-color: rgba(233, 238, 244, 0.95); /* کمی تیره‌تر روی hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}
.glass-card {

  background-color:#0071f7 ;
}

 :root{
   --muted-gray: #4f5b62;
   --primary-blue: #0d47a1;
   --deep-blue: #899fc3;

 }
@font-face {
  font-family: Vazir;
  src:
          url("../fonts/Vazir/Vazir-Light.woff2") format("woff2"),
          url("../fonts/Vazir/Farsi-Digits-Without-Latin/Vazir-Light-FD-WOL.woff") format("woff"),
          url("../fonts/Vazir/Farsi-Digits-Without-Latin/Vazir-Light-FD-WOL.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: Vazir-FD;
  src:
          url("../fonts/Vazir/Vazir-Light.woff2")
          format("woff2"),
          url("../fonts/Vazir/Farsi-Digits-Without-Latin/Vazir-Light-FD-WOL.woff")
          format("woff"),
          url("../fonts/Vazir/Farsi-Digits-Without-Latin/Vazir-Light-FD-WOL.ttf")
          format("truetype");
  font-weight: 300;
  font-style: normal;
}
body {
  font-family: "Vazir-FD", "Vazir", sans-serif;
  background-color: var(--backgroundColor);
}
header {
  background-image:
          linear-gradient(to right, rgba(245, 242, 237, 0.7), rgba(255, 255, 255, 0)),
          url("../img/background.jpg");
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
}

/* فقط در دسکتاپ (بالای 992px) تصویر گل اضافه شود */
@media (min-width: 992px) {
  header {
    background-image:
            linear-gradient(to right, rgba(245, 242, 237, 0.7), rgba(255, 255, 255, 0)),
            url("../img/backgroundImg.png"),
            url("../img/background.jpg");
    background-size: cover, contain, cover;
    background-position: center, left center, center;
  }
}

.services-section .service-card {
  display: block;
  height: 200px;
  background-color: #f8f9fa;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: right;
  transition: transform 0.3s, box-shadow 0.3s;
  color: #212529;
  text-decoration: none;
}

.services-section .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  background-color: #ffffff;
}

.services-section .service-icon {
  font-size: 1.5rem;
  color: #0d6efd;
  margin-bottom: 0.75rem;
}

.services-section h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  margin-top:10px;
}

.services-section p {
  word-spacing: 0.1rem;
  line-height: 1.3;
  font-size: 1.0rem;
  color: #6c757d;
}
.knowledge-section .knowledge-card {
  padding: 18px !important;
  border-radius: 14px !important;
}
.knowledge-section h4 {
  font-size: 1rem !important;
  text-align: center !important;
  margin: 0 auto !important;
}
.knowledge-section .knowledge-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(229, 239, 246, 0.98));
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 20px 55px rgba(13, 71, 161, 0.08);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.knowledge-section .knowledge-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(13, 71, 161, 0.08), rgba(66, 165, 245, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.knowledge-section .knowledge-card:hover::after {
  opacity: 1;
}

.knowledge-section .icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(13, 71, 161, 0.12);
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.knowledge-section h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.knowledge-section p {
  color: var(--muted-gray);
  line-height: 1.9;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.knowledge-section .btn-outline-primary {
  border-radius: 999px;
  padding: 8px 18px;
}
/* دکمه‌های هدر */
.header-btn-wrapper .btn-primary {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991px) {
  .header-btn-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .header-btn-wrapper .btn-primary {
    width: 100%;
  }
}
.header-btn-wrapper .btn-primary:hover {
  color: white !important;
  background-color: var(--blue) !important;
}
@media (min-width: 992px) {
  .header-btn-wrapper {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
  }
}

/* Statistics Section Styles */
.statistics-box {
  box-shadow: 0 10px 40px rgba(23, 59, 90, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-card h3 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.stat-card:hover h3 {
  transform: scale(1.1);
}

.stat-icon {
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon i {
  transform: rotateY(360deg);
}

@media (max-width: 768px) {
  .statistics-box h2 {
    font-size: 1.25rem !important;
  }
  .stat-card h3 {
    font-size: 1.1rem !important;
  }
  .stat-card p {
    font-size: 0.8rem !important;
  }
  .stat-icon i {
    font-size: 1.5rem !important;
  }
}

/* Lawyer Search Section Styles */
.lawyer-search-wrapper {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.lawyer-search-wrapper:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
  transform: translateY(-2px);
}

.lawyer-search-wrapper #tags {
  transition: all 0.3s ease;
}

.lawyer-search-wrapper #tags:focus {
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15) !important;
  outline: none;
}

.lawyer-search-wrapper .btn-primary {
  transition: all 0.3s ease;
}

.lawyer-search-wrapper .btn-primary:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4) !important;
}

@media (max-width: 768px) {
  .lawyer-search-wrapper {
    padding: 1.5rem !important;
  }
  .lawyer-search-wrapper h5 {
    font-size: 1rem;
  }
}


