@font-face{
    font-family:"IranYekan";
    src: url("./fonts/iranyekan/Yekan.woff") format("woff"),
    /* url("./fonts/iranyekan/Yekan.woff") format("woff"), */
    /* url("./fonts/vazir/Vazir-Medium-FD-WOL.ttf") format("truetype"); */
}


:root {
    --clr-primary-1: #2f3e46;
    --clr-primary-2: #354f52;
    --clr-primary-3: #52796f;
    --clr-primary-4: #84a98c;
    --clr-primary-5: #cad2c5;
    --clr-grey-1: #102a42;
    --clr-grey-2: #617d98;
    --clr-grey-3: rgb(241, 245, 248);
    --clr-white: #fff;
    --ff-primary: "IranYekan", sans-serif;
    --transition: all 0.5s linear;
    --radius: 0.5rem;
    --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --max-width: 1170px;
    --red1:#FFCDD2;
    --red2:#EF5350;
    --red3:#E53935;
    --red4:#C62828;
    --red5:#B71C1C;
    --gray1:#fafafa;
    --gray2:#e7e7e7;
    --gray3:#9e9e9e;
    --gray4:#616161;
    --gray5:#252525;
    --khas1:#e63946;
    --khas2:#f1f1f1;
    --khas3:#2b2d42;
    --khas4:#1d3557;
}


*,
::after,
::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--ff-primary);
    background: var(--clr-white);
    color: var(--khas3);
    line-height: 1.8;
    font-size: 0.875rem;
    /* overflow:hidden; */
    padding-top: 3rem;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی */

}

ul {
    list-style-type: none;
}
a {
    text-decoration: none;
}

img {
    width: 100%;
    display: block;
}

h1, h2, h3, h4 {
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-family: var(--ff-primary);
}

@media screen and (min-width: 800px) {
    h1 { font-size: 4rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1rem; }
    body { font-size: 1rem; }
}

h1 {
    font-size: 3rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.25rem;
}
h4 {
    font-size: 0.875rem;
    text-align: justify;
}
p {
    margin-bottom: 1.25rem;
    color: var(--khas4);
    text-align: justify;
}




.btn{
    background-color: var(--red5);
    width:8.5rem;
    height:2.6rem;
    color: white;
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    transition: var(--transition);
    font-size: clamp(0.9rem, 0.5vw + 0.8rem, 1rem);
    font-family: var(--ff-primary);
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    justify-content:center;
    align-items:center;
    margin-top:1.5rem;
    font-weight:600;
    text-align:center;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
   


}
.btn:hover {
    color: var(--clr-white);
    background: var(--red3);
}

.section {
    padding: 3rem 0;
    min-height: calc(100vh - 3rem);
    overflow-x:hidden;

}

.section-center {
    width: 90vw;
    margin: 0 auto;
    max-width: var(--max-width);
}

@media screen and (min-width: 992px) {
    .section-center {
        width: 95vw;
    }
}
.section-title {
    margin-bottom: 4rem;
    text-align: center;
}

.underline {
    width: 5rem;
    height: 0.25rem;
    background: var(--gray5);
    margin-bottom: 1.25rem;
    margin-left: auto;
    margin-right: auto;
}

.bg-grey {
    background: var(--clr-grey-3);
}
/* ریسپانسیو حرفه‌ای موبایل */
@media screen and (max-width: 576px) {
    body {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0 0.5rem;
        overflow-x:hidden;
    }

    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.1rem;
    }
    h4 {
        font-size: 0.9rem;
    }

    p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .section {
        padding: 2rem 0;
        min-height: auto; /* جلوگیری از اسکرول اضافی */
        overflow-x:hidden;
    }

    .section-center {
        width: 100%;
        padding: 0 1rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .underline {
        width: 3rem;
        height: 0.2rem;
        margin-bottom: 1rem;
    }

.btn {
    display: flex;
    justify-content: center;  /* متن وسط چین */
    align-items: center;      /* متن عمودی وسط */
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size:1.2rem;
    font-weight:500;
    margin-top:1.5rem;
}

    img {
        max-width: 100%;
        height: auto;
        border-radius: 0.5rem; /* برای زیبایی موبایل */
    }

    ul {
        padding-left: 0;
    }

    a {
        font-size: 0.9rem;
    }

    /* برای جلوگیری از شلوغی */
    .bg-grey {
        padding: 1.5rem 1rem;
        border-radius: 0.5rem;
    }
}

/* =====================    navbar   ============================ */

.nav {
  height: 3rem;
  padding: 1.2rem;
  z-index: 30;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: var(--clr-white);
  box-shadow: var(--dark-shadow);
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-center {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: ltr;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  width: 35px;
  height: auto;
}

.logo h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #b60000; /* رنگ قرمز مثل عکس */
  margin-top: 16px;
}

.nav-links {
  display: none;
}

/* موبایل */
@media screen and (max-width: 768px) {
  .nav-head {
    display: flex;
    justify-content: space-between; /* فاصله بین دکمه و لوگو */
    width: 100%;
    direction: ltr; /* لوگو سمت راست */
  }

  .logo {
    order: 2; /* لوگو سمت راست */
  }

  .nav-btn {
    order: 1; /* دکمه سمت چپ */
    background:none;
    border-box:none;
    border:none;
  }

  .nav-links {
    display: none; /* لینک‌ها مخفی */
  }
}


@media screen and (min-width: 768px) {
  .nav-btn {
    display: none;
  }

  .nav-links {
    display: flex;
    gap: 1.5rem;
      direction:rtl;

  }

.nav-links li {
  position: relative;
  height: 3rem; /* به اندازه ارتفاع navbar */
  display: flex;
  align-items: center; /* متن وسط‌چین بشه */
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--clr-grey-1);
  transition: color 0.3s ease-in-out;
  padding: 0 0.5rem; /* فاصله افقی */
  height: 100%; /* لینک تمام ارتفاع li رو بگیره */
  display: flex;
  align-items: center;
}

  .nav-links a:hover {
    color: var(--red3);
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    bottom: 0;
    height: 3px;
    background-color: red;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

  .nav-links a:hover::after,
  .nav-links a.active::after {
    opacity: 1;
  }
}







/* =====================    sidebar   ============================ */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-grey-3);
    z-index: 40;
    display: grid;
    /* justify-content: center;
    align-items: center; */
    place-content: center;
    transform: translateX(100%);
    transition: var(--transition);
}

.show-sidebar {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    background: transparent;
    border: transparent;
    color: #bb2525;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: #e66b6b;
}

.sid-link {
    text-align: center;
}

.sid-link a {
    font-size: 1.5rem;
    color: var(--clr-grey-2);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.sid-link a:hover {
    color: var(--red3);
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    -moz-column-gap: 2rem;
         column-gap: 2rem;
    margin-top: 3rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--clr-grey-1);
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--clr-primary-4);
}

/* ========= ریسپانسیو موبایل =========== */
@media screen and (max-width: 767px) {
    .nav {
        height: 3.5rem;
        padding: 0.75rem 1rem;
    }

    .nav-head h3 {
        font-size: 1.25rem;
    }

    .nav-links {
        display: none; /* فقط از سایدبار استفاده می‌کنیم */
    }

    .nav-btn {
        display: block;
        font-size: 1.8rem;
    }

    /* سایدبار برای موبایل */
    .sidebar {
        width: 100%;
        padding: 2rem 1rem;
        text-align: center;
    }

    .sid-link a {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .social-icons {
        grid-template-columns: repeat(3, 40px);
        justify-content: center;
        margin-top: 2rem;
        gap: 1rem;
    }

    .social-icon {
        font-size: 1.25rem;
    }

    /* بستن سایدبار در موبایل */
    .close-btn {
        font-size: 2rem;
        top: 0.75rem;
        left: 0.75rem;
    }
}

/* ========= ریسپانسیو تبلت کوچک (بین 768 و 992) =========== */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .nav-center {
        grid-template-columns: auto 1fr;
    }

    .nav-links {
        grid-template-columns: repeat(4, auto);
        column-gap: 1rem;
    }

    .nav-head h3 {
        font-size: 1.5rem;
    }
}



/* =====================    hero   ============================ */




.hero2{
    display: flex;
    min-height:30vh;
    width:100%;
    justify-content:center;
    align-items:center;
    
    background:-webkit-linear-gradient( rgba(0,0,0,0.7)),
        url(./image/heroimg1.jpg) center top/cover no-repeat;
    /* scroll-margin-top: 13rem; */
    
}




.hero-banner{
    text-align: center;
    padding: 0 3rem;
    color:white;
    justify-content:center;
    align-item: center;

}

.hero-banner p{
    max-width: 30rem;
    color: var(--clr-white);
    font-size: 1rem;
}
.hero-banner h1{
    margin-bottom: 2.5rem;
    color: var(--clr-white);
}

.btn-banner{
    background-color: var(--clr-white);
    color: var(--clr-primary-2);
    font-size: 1rem;
    margin-top: 1.5rem;
    padding: 0.5rem 1.2rem;
}


.btn-banner:hover{
    background: transparent;
    color: var(--clr-white);
    border-color: var(--clr-white);
    transform: scale(1.02);
}
@media screen and (min-width: 768px) {
    .hero{
        background:-webkit-linear-gradient( rgba(0,0,0,0.7)),
        url(./image/hero-img.jpg) center/cover no-repeat;
    }
    
    .hero-banner p{
        max-width: 45rem;
    }

    .hero-banner{
        padding: 0;
    }

}

.separator{
    height: 0.5vh;
    background-color: var(--red5);
    width: 100%;
    /* background-color: #B71C1C; */
}
@media screen and (max-width: 576px) {
    .hero {
        min-height: 80vh; /* کوتاه‌تر برای موبایل */
        padding: 1.5rem 1rem;
        background: -webkit-linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                    url(./image/hero-img.jpg) center/cover no-repeat;
    }

    .hero-banner {
        padding: 0 1rem;
        text-align: center;
    }

    .hero-banner img {
        max-width: 250px; /* لوگو یا تصویر داخل hero */
        height: auto;
        margin: 0 auto 1.5rem auto;
    }

    .hero-banner h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        line-height: 1.4;
        color: var(--clr-white);
    }

    .hero-banner p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        max-width: 100%;
        color: var(--clr-white);
    }

    .btn-banner {
        display: inline-block;
        width: 100%; /* دکمه تمام‌عرض برای UX بهتر */
        font-size: 1rem;
        padding: 0.75rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
    }

    .btn-banner:hover {
        transform: scale(1.01);
    }

    .separator {
        height: 0.3rem; /* ضخامت کمتر در موبایل */
    }

    .underline,
    .underline-t,
    .underline-f {
        display: block;
        margin: 0.5rem auto 1rem auto; /* خودکار وسط‌چین */
    }

}
@media screen and (min-width:576px) and (max-width:768px){
    .hero{
        background:-webkit-linear-gradient(rgba(0,0,0,0.7)),url(./image/hero-img.jpg) center/cover no-repeat
    }
}




.about-header {
  display:flex;

  color: var(--gray5);
  text-align: right;
  padding: 2rem 1rem 0.5rem 1rem;
  font-size: 2rem;
  font-weight: bold;
  justify-content:center;
  align-item:center;
}

.underline1{
    display: block;
    width: clamp(4rem, 12vw, 6rem);
    height: .25rem;
    background: currentColor;
    opacity: 0.2;
    border-radius: 999px;
    margin: 0.3rem auto 2rem auto;
}

.about-section {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 3rem auto;
  /* overflow: hidden; */
}

.about-section img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 6px;
}

.about-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;   /* کل ارتفاع بخش رو بگیره */
  width: 60%;  /* عرض متن روی تصویر */
  background: rgba(255, 205, 210, 0.85);
  color: #fff;
  padding: 2rem;
  border-radius: 0 6px 6px 0;
  
  /* برش مورب بک‌گراند */
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* محتوا بره بالا */
  align-items: flex-start;         /* محتوا بره سمت راست */
  text-align: right;             /* متن‌ها راست‌چین شن */

}

.about-content h2,
.about-content p {
  margin: 0 0 1rem 0;
  max-width: 80%;   /* مطمئن می‌شیم از بک‌گراند بیرون نزنه */
}


.about-content h2 {
  margin-top: 0;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  line-height: 1.6;


}

.about-content p {
  font-size: 1.1rem;
  line-height: 2.2;
  font-weight:400;
}


    /* سکشن ویژگی‌ها */
   .features {
      background: #fff;
      padding: 3rem 1rem;
    }

    .features-container {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
      gap: 1.5rem;
      text-align: center;
    }

    .feature-box {
      padding: 1.5rem;
    }

    .feature-icon {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: rgb(255, 148, 148);
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 1.5rem;
      margin: 0 auto 1rem auto;
    }

    .feature-box h3 {
      font-size: 1.2rem;
      margin: 0.5rem 0;
      color: #333;
    }

    .feature-box p {
      font-size: 0.9rem;
      color: #555;
    }

@media screen and (max-width: 576px) {
  .about-content {
    position: static;         /* دیگه روی عکس نباشه */
    width: 100%;              /* کل عرض رو بگیره */
    background: transparent;  /* بک‌گراند حذف بشه */
    clip-path: none;          /* برش مورب هم حذف بشه */
    border-radius: 0;         /* گوشه‌ها صاف بشن */
    padding: 1.5rem 1rem;     /* پدینگ جمع‌وجورتر */
  }

  .about-content p {
    max-width: 100%;          /* متن آزاد باشه */
    text-align: justify;      /* متن مرتب‌تر */
    color: #333;              /* رنگ تیره برای خوانایی روی سفید */
    font-size: 0.95rem;
    line-height: 1.8;
  }
}



:root{
  --pentest-max-w: 1200px;
  --pentest-gap: clamp(1rem, 2.5vw, 3rem);
  --pentest-pad: clamp(1rem, 4vw, 3rem);
  --pentest-radius: var(--radius);
}



/* پایه (موبایل پیش‌فرض) */
.pentest {
  background: var(--gray2);
  width: 100%;
  max-height: 100vh;
  font-size: 100%;
}

.pentest-center {
  width: min(100%, var(--pentest-max-w));
  margin-inline: auto;
  display: grid;
  gap: var(--pentest-gap);
  align-items: center;
  padding: 0 var(--pentest-pad);
}

/* رپر تصاویر */
.pentest-img,
.pentest-img11 {
  position: relative;
  display: none; /* موبایل: فقط .pentest-img11 نمایش داده می‌شود */
  justify-content: center;
  align-items: center;
}

/* تصاویر */
.pentest-photo,
.pentest-photo11 {
  width: 100%;
  max-width: 45em;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--pentest-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* محتوا */
.pentest-info {
  max-width: clamp(36ch, 90vw, 65ch);
  margin-inline: auto;
  
}



.pentest-info h2 {
  font-size: clamp(1.5rem, 2.2vw + .8rem, 2.5rem);
  line-height: 1.3;
}

.pentest-info p {
    direction:rtl;
  font-size: clamp(.95rem, .4vw + .9rem, 1.2rem);
  line-height: 1.7;
  text-align: justify;
  margin-block: 1.25rem 0;
}

.pentest-info h4 {
  color: var(--clr-grey-2);
  margin-top: 2rem;
  font-size: 1.1rem;
}

/* تیتر و آندرلاین */
.pentest-title {
  margin: 0 auto;
  text-align: center;
}

.pentest-title h2 {
  font-size: clamp(1.5rem, 2.2vw + .8rem, 2.5rem);
}

.pentest .underline {
  display: block;
  width: clamp(4rem, 12vw, 6rem);
  height: .25rem;
  background: currentColor;
  opacity: .2;
  border-radius: 999px;
  margin: .5rem auto 1rem auto;
}

/* ============ موبایل (<=576px) ============ */
@media (max-width: 576px){
  .pentest-center{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pentest-img11{
    display: flex;
    width: 100%;
  }
  .pentest-img{ display: none; }

  .pentest-photo11{
    max-width: 90%;
    max-height:14rem ;
    min-height:10rem  ;
    aspect-ratio: 16/9;
    margin: 0 auto;
  }

  .pentest-photo{ display: none; }
}

/* ============ تبلت (577px–991px) ============ */
@media (min-width: 577px) and (max-width: 991px){
  .pentest-center{
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    text-align: center;
    padding-bottom: var(--pentest-pad);
  }

  .pentest-img{
    display: flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 1.5rem; /* فاصله عکس از متن */
  }
  .pentest-img11{ display: none; }

  .pentest-photo{
    display: block;
    max-width: min(80%, 40rem);
    height: auto;
    aspect-ratio: 16/9;
    margin: 0 auto;
  }

  .pentest-photo11{ display: none; }

  .pentest-info{
    max-width: clamp(44ch, 80vw, 70ch);
    margin-inline: auto;
  }
}

/* ============ دسکتاپ (>=992px) ============ */
@media (min-width: 992px){
  .pentest-center{
    direction:ltr;
    grid-template-columns: 1.05fr 1fr; /* تصویر کمی غالب‌تر از متن */
    gap: clamp(2rem, 3vw, 3rem);
    padding: 0 var(--pentest-pad);
    align-items: center;
  }

  .pentest-img{
    display: flex;
    position: relative; /* ضروری برای قاب */
    z-index:3;
  }
  .pentest-img11{ display: none; }

  .pentest-photo{
    max-width: 45em;
    
    max-height: 45em;
    min-height:25em;
    height: auto;
    aspect-ratio: 16/9;
    margin: 0;
  }

  /* قاب تزئینی دسکتاپ */
  .pentest-img::before{
    content: "";
    position: absolute;
    inset: 0;
    border: .25rem solid var(--red5);
    border-radius: var(--pentest-radius);
    transform: translate(-1rem, 1rem);
    z-index:-1;
    
  }

  .pentest-info{
    max-width: clamp(46ch, 50vw, 70ch);
    margin-inline: 0;
    text-align: center;
  }
.pentest-info a {
  display: inline-block;       /* لازم برای margin-left:auto */
  margin-left: auto;           /* دکمه سمت راست متن می‌رود */
  margin-top: 1.5rem;          /* فاصله از متن */
  direction:rtl;
}


  .pentest-title{
    text-align: center;
  }

  .pentest .underline{
    margin: .5rem auto 1rem auto;
  }
}

/* ♿ دسترس‌پذیری */
@media (prefers-reduced-motion: reduce){
  *{
    transition: none !important;
    animation: none !important;
  }
}

.white{
    direction:rtl;
    text-align:right;
}



:root{
  --about-max-w: 1200px;
  --about-gap: clamp(1rem, 2.5vw, 3rem);
  --about-pad: clamp(1rem, 4vw, 3rem);
  --about-radius: var(--radius);
}

/* پایه (موبایل پیش‌فرض) */
.about-center {
  width: min(100%, var(--about-max-w));
  margin-inline: auto;
  display: grid;
  gap: var(--about-gap);
  align-items: center;
  padding: 0 var(--about-pad);
  font-size: 100%;
}

/* رَپِرهای تصویر */
.about-img,
.about-img11 {
  position: relative;
  display: none;               /* موبایل: فقط .about-img11 نمایش داده می‌شود */
  justify-content: center;
  align-items: center;
}

/* تصویرها (یکسان‌سازی استایل) */
.ab-photo,
.ab-photo11 {
  width: 100%;
  max-width: 45em;             /* در دسکتاپ محدود می‌شود */
  aspect-ratio: 16 / 9;        /* نسبت ثابت و حرفه‌ای */
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: var(--about-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* محتوا */
.ab-info {
  max-width: clamp(36ch, 90vw, 65ch); /* خوانایی بهتر متن */
  margin-inline: auto;
}

.ab-info p{
  font-size: clamp(.95rem, .4vw + .9rem, 1.2rem);
  line-height: 1.7;
  text-align: justify;
  margin-block: 1.25rem 0;
}

/* تیتر و آندرلاین */
.ab-title { 
  margin: 0 0 1.25rem 0; 
  text-align: center;
}
.ab-title h2{
  font-size: clamp(1.5rem, 2.2vw + .8rem, 2.5rem);
  line-height: 1.3;
}
.ab-info .underline,
.underline{
  display: block;
  width: clamp(4rem, 12vw, 6rem);
  height: .25rem;
  background: currentColor;
  opacity: .2;
  border-radius: 999px;
  margin: .5rem auto 1rem auto; /* همیشه وسط */
}

/* ============ موبایل (<=576px) ============ */
@media (max-width: 576px){
  .about-center{
    grid-template-columns: 1fr; 
    text-align: center;
  }

  /* موبایل: نسخه موبایلی تصویر */
  .about-img11{ 
    display: flex; 
    width: 100%;
  }
  .about-img{ display: none; }

  .ab-photo11{
    max-width: 90%;
    height: auto;            /* اجازه بده نسبت تصویر با aspect-ratio کنترل بشه */
    aspect-ratio: 16/9;
    margin: 0 auto;
  }

  .ab-photo{ display: none; }
}

/* ============ تبلت (577px–991px) ============ */
@media (min-width: 577px) and (max-width: 991px){
  .about-center{
    grid-template-columns: 1fr; /* یک ستون، اما عریض و مرتب */
    gap: clamp(1.25rem, 3vw, 2.5rem);
    text-align: center;         /* آندرلاین و عناوین وسط */
    padding-bottom: var(--about-pad);
  }

  /* تبلت: تصویر نمایش داده شود و وسط‌چین بماند */
  .about-img{ 
    display: flex; 
    width: 100%;
  }
  .about-img11{ display: none; }

  .ab-photo{
    max-width: min(80%, 40rem);
    height: auto;
    aspect-ratio: 16/9;
    margin: 0 auto;
  }

  .ab-photo11{ display: none; }

  .ab-info{
    max-width: clamp(44ch, 80vw, 70ch);
  }
}

/* ============ دسکتاپ (>=992px) ============ */
@media (min-width: 992px){
  .about-center{
    grid-template-columns: 1.05fr 1fr; /* تصویر کمی غالب‌تر از متن */
    gap: clamp(2rem, 3vw, 3rem);
    padding: 0 var(--about-pad);
    align-items: center;
  }

  /* دسکتاپ: نسخه دسکتاپی تصویر + قاب تزئینی */
  .about-img{ 
    display: flex; 
  }
  .about-img11, .ab-photo11{ display: none; }

  .ab-photo{
    max-width: 45em;
    max-height: 50em;
    min-height:26em;
    aspect-ratio: 16/9;
    margin: 0; /* اجازه بده در شبکه کنار متن بنشیند */
  }

  /* قاب تزئینی (اختیاری – اگر متغیر --red5 داری) */
  .about-img::before{
    content: "";
    position: absolute;
    inset: 0;
    border: .25rem solid var(--red5);
    border-radius: var(--about-radius);
    transform: translate(1rem, 1rem);
    z-index: -1;
  }

  .ab-info{
    max-width: clamp(46ch, 50vw, 70ch);
    margin-inline: 0;
  }
}

/* دسترس‌پذیری: اگر کاربر کاهش انیمیشن خواست */
@media (prefers-reduced-motion: reduce){
  * { 
    transition: none !important;
    animation: none !important;
  }
}



.footer {
    width: 100%;
    min-height: 60vh;
    background-color: var(--gray5);
    color: white;

    /* فلکس برای وسط‌چین کردن */
    display: flex;
    justify-content: center;  /* وسط افقی */
    align-items: center;      /* وسط عمودی */
    flex-direction: column;   /* بچه‌ها زیر هم باشن */
    gap: 3rem;                /* فاصله بین بخش‌ها */
    padding: 3rem 3rem  0 3rem;
    box-sizing: border-box;
}

.footer-center {
    width: 100%;
    display: flex;
    flex-direction: column;   /* بچه‌ها (detail و certificate) زیر هم */
    justify-content: center;
    align-items: center;
    gap: 3rem;                /* فاصله بین دو بخش اصلی */
}
.footer-contact{
    margin: 1rem;
}

.footer .footer-menu ul.menu li a {
    direction: ltr;
    color: white;
    /* background-color: white; */
}
.footer-menu{
    direction: ltr;
}

.underline-f{
    background-color:white;
    width: 5rem;
    height: 0.3rem;
    margin: 1.5rem 0rem 2rem 0rem;
}

.footer-detail {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;   /* در موبایل بیفته زیر هم */
    gap: 12rem;         /* فاصله بین آیتم‌ها */
    text-align: center; /* متن‌ها وسط */
}
.footer-detail ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-detail ul li a {
    color: white;
    text-decoration: none;   
}

.footer-detail ul li a:hover {
    color: var(--red2);          
}

.footer-certificate {
    color: #fff;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.certificate-cards-container {
    width: 100%;
    display: flex;
    justify-content: center; /* وسط چین افقی */
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem; /* فاصله بین کارت‌ها */
}

.certificate-card{
    flex-direction: column  ;
}

/* استایل عمومی برای همه‌ی کارت‌ها */
.certificate-card-image {
    width: 90px; 
    height: 80px;
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: center;
    filter: grayscale(100%) brightness(0.8);
     /* تبدیل به طوسی */
}

/* هر کارت تصویر مخصوص خودش رو می‌گیره */
.daneshbonyan .certificate-card-image {
    background-image: url("/image/d-bonyan1-g.png");
}

.enamad .certificate-card-image {
    background-image: url("/image/enamd-g.png");
}

.senfi .certificate-card-image {
    background-image: url("/image/nasr-g.png");
}

.afta .certificate-card-image {
    background-image: url("/image/afta-g.png");
}




/* تغییر رنگ تمام <p>های داخل بخش گواهینامه ها */
.footer-certificate p {
    color: #555555; /* رنگ دلخواه طوسی */
    font-size: 14px; /* اختیاری، اندازه متن */
    line-height: 1.4; /* فاصله بین خطوط */
    font-weight: 500; /* ضخامت دلخواه */
}

.aboutus {
    width: 45%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 2rem;
     white-space: nowrap;
}

.aboutus p {
    color: #aaa;
    font-size: 12px;
    margin: 0;
    overflow: hidden; 
    text-overflow: ellipsis; 

    }


.aboutus a {
    color: #bbb;
    font-size: 12px;
    font-weight: 700;

    display: flex;          /* آیکون و متن در یک خط */
    align-items: center;    /* عمودی وسط */
    gap: 4px;               /* فاصله بین متن و آیکون */
    direction: rtl;         /* متن "بیشتر" راست باشه، آیکون بعدش */
    text-decoration: none;  /* خط زیر متن حذف */
}

.copyR {
    width: 100%;
    height: 5rem;
    /* border-top: 0.2rem solid var(--red2); */
    background-color: var(--gray5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
    margin-top: -3rem;
}

.copyR-persian {
    color: var(--gray2);
    font-size: 12px;
    margin-bottom: 10px;
    margin-top: 20px;
}

.copyR-english {
    color: var(--gray3);
    font-size: 12px;
}

@media screen and (max-width: 576px) {
    .footer {
        padding: 2rem 1rem 1rem 1rem;
        gap: 2rem;
    }

    .footer-detail {
        flex-direction: column;   /* منوها زیر هم */
        gap: 2rem;
        align-items: center;
        text-align: center;
    }

    .footer-item h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .footer-detail ul li {
        margin: 0.3rem 0;
    }

    .footer-detail ul li a {
        font-size: 0.9rem;
    }

    .footer-certificate h3 {
        font-size: 1rem;
    }

    .certificate-cards-container {
        flex-direction: column; /* کارت‌ها زیر هم */
        gap: 1rem;
    }

    .certificate-card-image {
        width: 70px;
        height: 60px;
    }

    .certificate-card p {
        font-size: 0.8rem;
    }

    .aboutus {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .aboutus p, 
    .aboutus a {
        font-size: 0.8rem;
        white-space: normal;
    }

    .copyR {
        padding: 1rem 0.5rem;
        margin-top: 0;
        text-align: center;
    }

    .copyR-persian, 
    .copyR-english {
        font-size: 0.75rem;
        line-height: 1.4;
        text-align: center;
    }
}






.footer-contactus {
    text-align: center;      /* همه متن‌ها و محتوا وسط چین */
    
}

.footer-contactus h3 {
    margin-bottom: 1rem;
}

.footer-contactus ul {
    list-style: none;
    padding: 0;
    
}

.footer-contactus ul li {
    margin-bottom: 2rem;     /* فاصله بین خطوط */
    text-align:center;
        margin: 0 auto;

}
.social_wrapper{
    width:10rem;

    /* background-color:green; */
    text-align:center;
    
}
.social_wrapper p{

    text-align:center;
    
}


/* متن‌ها زیر هم */
.footer-contactus .social_wrapper p {
    margin: 0.25rem 0;
    justify:center;
    margin:0 auto;
}

/* آیکون‌ها کنار هم */
.footer-contactus .social_wrapper a {
    
    justify-content: center; /* وسط چین افقی */
    gap: 17rem;               /* فاصله بین آیکون‌ها */
    margin-top: 0.5rem;
}

.footer-contactus .social_wrapper .social-icons a {
    color: #333;
    font-size: 2rem;
    transition: color 0.3s;
}

.footer-contactus .social_wrapper .social-icons a:hover {
    color: #0077ff;
}

.btn-wrapper a{
    text-align:center;
}

.ttt{
    background-size:10rem 14rem;
    background-color:var(--gray5);
    max-width: 65%;
    max-height:14rem ;
    min-height:10rem  ;
    aspect-ratio: 16/9;
    margin: 0 auto;
  
}




