.Refinery{
    
    margin-top: 100px;
    /* background-color:#8FBC8F; */
    width: 100%;
    flex-direction:column;
    justify-content:space-around;
    align-items:center;
    border-radius: 15px;
    border-color: #8FBC8F;
    /* box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); */
    
}




.Refinery header{
  
  padding: 10px;
  /* padding-bottom: 0; */
  border-radius: 10px;
  display: flex;
  flex-direction:column;
  /* justify-content: space-between; */
 
  /* gap: 50px; */
}




.Refinery header img{
  border-style: solid;
  border-color: #e9ecef;
  border-width: 5px;
  border-radius: 10px;
  width: 20%;
  
  filter: blur(2px);
  
  border-radius: 5px;
  
  box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.3);
 
}
.Refinery header img:hover{
  border-color: #48a74b;
}

.Refinery-Subject {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  text-shadow: 0px 0px 10px rgba(0,0,0,0.2);
  box-shadow: inset 0px 0px 10px rgba(123, 127, 121, 0.3);;
  background-color: #e9ecef;
  padding: 10px;
  border-radius: 5px;
  
  
  


}

.Subject {
  margin: 50px;
  text-shadow: 0px 0px 10px rgba(0,0,0,0.2);
  
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  
  


}
.Refinery section p{
    
    width: 80%;
    margin-top: 25px;
    font-size: larger;
    line-height: 2em;
    font-weight: bold;
    padding: 10px;
    color:#6b7280;
    
}

.Refinery section h1{
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: bolder;
  line-height: 1.2;
  margin-top: 20px;
  color: var(--bs-heading-color);
  font-size: calc(1.375rem + 1.5vw);
}



.Refinery section {
    backdrop-filter: blur(2px);
    width: 98%;
    border-radius: 5px;
    /* padding: 5px; */
    /* background-image: url('/image/th2.png');
    background-size:contain;
    background-position: center;
    background-repeat: repeat;
    background-attachment:unset; */
    margin: 10px;
    padding: 50px;
    padding-bottom: 10PX;
    display: flex;
    justify-content: center;
    align-items: center;
    border-style: none;
    border-width: 5px;
    border-color: #8FBC8F;
    background-color: #e9ecef;
    box-shadow: inset 0px 0px 10px rgba(123, 127, 121, 0.3);
}

.Early video{
  cursor: pointer;
  width: 20%;
  margin: 5px;
  border-width: 5px;
  border-style:solid;
  border-color:#f3f4f6;
  border-radius: 20px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  
}

.Early video:hover{
  border-style: solid;
  border-color: #48a74b;
}

.Early {
  display: flex;
  position: static;
  width: 100%;
  flex-direction: row;
  align-items: center;
  margin-top: 20px;
  gap: 20px;
  border-radius: 5px;
  padding: 10px;
  background-color: #f3f4f6;
  box-shadow: inset 0px 0px 10px rgba(123, 127, 121, 0.3);
  
}

.Early h1{
  
  
  color:#1f1f20;
}

.Early div{
  
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin: 10px;
  padding: 10px;
}

.Early div div{
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.Early div div button{
  width: 200px;
  height: 50px;
}
.button-Access{
  
  color:#1f1f20;
  background-color: #e9ecef;
  border: none;
  border-radius: 5px;
 
}

.button-Access:hover{
  color: #eeaf10;
  font-weight: bold;
  box-shadow: inset 0px 0px 10px rgba(123, 127, 121, 0.3);
}

.button-More{
  background: none;
  color: #1f1f20;
  border-radius: 5px;
  border-style: solid;
}

.button-More:hover{
  font-weight: bold;
  color: #eeaf10;
  border-color: #eeaf10;
  box-shadow: inset 0px 0px 10px rgba(123, 127, 121, 0.3);
}

.Education_paragraf div{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;

}
.Education_Links{
    width: 220px;
    margin-top: 50PX;
    display: flex;
    
    
    align-items: center;
    /* padding: 10px; */

}


.Education_Links a{
    width: 100%;
    cursor: pointer;
    color: white;
    background-color: #8FBC8F;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    padding: 5px;
    
}
.Education_Links a:hover{
  background-color: #48a74b;
  /* box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); */
}



.Education_Links img{
  width: 100%;
  border-radius: 5px;
  border-style: solid;
  border-color: #48a74b;
  margin-top: 10px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
   
}

.Education_Links img:hover{
  border-color: #8FBC8F;
}

#rifinery-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  
  max-width: 1200px;
  margin: 0 auto;
}








/* ========================= */
/*   RESPONSIVE PATCH ONLY  */
/* ========================= */

/* ---------- Tablet ---------- */
@media (max-width: 992px) {

  .Refinery-Subject {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .Refinery header img {
    width: 40%;
  }

  .Early {
    flex-direction: column;
    text-align: center;
  }

  .Early video {
    width: 45%;
  }

  .Early div div {
    flex-direction: column;
    gap: 10px;
  }

  .Early div div button {
    width: 100%;
  }

  #rifinery-container {
    padding: 60px 30px;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {

    .Refinery {
      margin-top: 50px;
    }

    .Subject {
      margin: 20px;
      font-size: 24px;
    }

    .Refinery header img {
      width: 70%;
      filter: none;
    }

    .Refinery section {
      padding: 15px;
    }

    .Refinery section p {
      font-size: 15px;
      line-height: 1.7em;
    }

    .Early video {
      width: 70%;
    }

    #rifinery-container {
      padding: 40px 20px;
      grid-template-columns: 1fr;
    }
}

/* ---------- Small Mobile ---------- */
@media (max-width: 480px) {

  .Subject {
    font-size: 20px;
  }

  .Refinery header img {
    width: 90%;
  }

  .Early {
    gap: 15px;
  }

  .Early video {
    width: 95%;
  }

  .Early div {
    padding: 5px;
  }

  .Early div div button {
    height: 45px;
  }

  .Refinery section h1 {
    font-size: 20px;
  }

  .Refinery section p {
    font-size: 14px;
  }
}


@media (max-width: 1024px) and (min-width: 769px) {

  /* کانتینر اصلی */
  .Refinery {
    margin-top: 60px;
  }

  /* هدر */
  .Refinery header {
    padding: 15px;
    gap: 20px;
  }

  /* بخش عنوان + تصویر */
  .Refinery-Subject {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .Refinery header img {
    width: 30%;
    filter: blur(1px);
  }

  .Subject {
    margin: 20px;
    font-size: 1.8rem;
  }

  /* بخش Early */
  .Early {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .Early video {
    width: 35%;
  }

  .Early div {
    width: 60%;
    align-items: flex-start;
  }

  .Early h1 {
    font-size: 1.4rem;
    text-align: right;
  }

  /* دکمه‌ها */
  .Early div div {
    flex-direction: row;
    gap: 15px;
  }

  .Early div div button {
    width: 180px;
    height: 48px;
  }

  /* سکشن متن */
  .Refinery section {
    padding: 20px;
  }

  .Refinery section p {
    font-size: 17px;
    line-height: 1.9em;
  }

  /* گرید محتوا */
  #rifinery-container {
    padding: 50px 40px;
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;
  }

  /* لینک‌های آموزشی */
  .Education_Links {
    width: 260px;
    margin-top: 40px;
  }

}


@media (max-width: 1222px) and (min-width: 1025px){
  #rifinery-container {
    padding: 50px 40px;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}