@font-face{
  font-family: Vazir;
  src: url(../themes/default/fonts/Vazirmatn-Regular.woff2);
}
@font-face{
  font-family: Vazir;
  font-weight: bold;
  src: url(../themes/default/fonts/Vazirmatn-Bold.woff2);
}
/* styles.css */
body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  direction: rtl;
  text-align: right;
  line-height: 1.8;

}

.grid-container {
  display: grid;
  grid-template-areas:
  "header header header"
  "nav main main"
  "footer footer footer";
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: auto auto 1fr  auto;
  gap: 2px;
  min-height: 100vh;
  padding: 28px;
  background-color: #2E8BC0;
}

/* General Style for Areas */
.header, .nav, .main, .footer {
  background: #000C66;
  color: white;
  border-radius: 5px;
  margin: 3px;
  margin-left:6px;
  margin-right:6px;
  text-align: center;
  border: 6px solid darkblue;
}

/* Specific Styles */
.header {
/*  margin-top: 6.5rem;*/
  grid-area: header;
  font-size: 1.8rem;
}

.nav {
  grid-area: nav;
  background: #000C66;
}

.main {
  grid-area: main;
  background: #145DA0;
  font-size: 1.8rem;
}
.footer {
  grid-area: footer;
  background: #000C66;
  font-size: 1rem;
}
.footer a{
  text-decoration: none;
}

#logo{
  margin-right:  257px;
}

#nova{
 -moz-transform: rotate(90deg);
 -webkit-transform: rotate(90deg);
 -o-transform: rotate(90deg);
 -ms-transform: rotate(90deg);
 transform: rotate(90deg);
 width: 50px;
 border: 3px solid white;
}

ul{
  margin-top: 8px;
}

.navbar li{
  padding: 12px;
  margin-top: 10px;
  font-size: 18px;
}

.navbar a{
  color: white;
}

li{
  padding: 10px;
  margin-top: 10px;
  font-size: 18px;
}

.carousel-inner {
  border-radius:4px;
}

.card-img-top {
  border-radius:4px;
}

.container{
  margin-top: 4px;
}

#main_menu{
  margin: 0px;
  padding: 0px;
  list-style-type: none;
  width:435px;
  /*display: none;*/
}
#main_menu li{
  margin: 3px;
  background-color: #145DA0;
  transition: 0.4s;
  border-radius:5px; 
}
#main_menu li a{
  color: #D4F1F4;
  display: block;
  padding: 8px;
  text-decoration: none;
}
#main_menu li:hover{
  background-color: #003060 ;
  box-shadow: -5px 4px 5px #145DA0; 
}
#main_menu li:hover{
  color: #145DA0 ; 
}

/*.container {
    width: 100%;
    max-width: 1500px;
    margin: 20px auto;
}*/
.card1-container {
    background-color: #2E8BC0;
    border: 6px solid darkblue;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: right;
    display: grid;
    align-items: center;
    gap: 5px;
    margin:8px 8px 8px 8px;
}
.card1 {
    background-color: #2E8BC0;
    border: 6px solid darkblue;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: right;
    display: flex;
    align-items: center;
    gap: 16px;
    margin:8px 8px 8px 8px;
}
.card1 img {
    width: 280px;
    margin: 15px;
    height: auto;
    display: block;
}

.card1-body {
    padding: 15px;
}

.card1-title {
    /*font-size: 1.5em;*/
    margin: 0 0 10px;
    color: white;
}

.card1-text {
    font-size: 1em;
    color: white;
    margin: 0 0 15px;
}

.read-more {
    display: inline-block;
    padding: 10px 15px;
    background-color: #145DA0;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: 2px solid darkblue;
}
.read-more:hover {
    background-color: #003060 ;
    box-shadow: -5px 4px 5px #145DA0; 
}

.input_line {
    width: 94%;
    padding: 10px 3%;
    border: 1px solid #d0d0d0;
    background: #fff;
    margin-bottom: 15px;
    outline: none;
}
.input_area {
    width: 94%;
    padding: 10px 3%;
    border: 1px solid #d0d0d0;
    background: #fff;
    margin-bottom: 15px;
    outline: none;
    resize: vertical;
    height: 130px;
}

.mt-6 {
  margin-top: 6.3rem  ;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 5px;
  padding: 20px;
}
.gallery-container img{
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-container img {
  width: 100%;
  height: auto;
  display: block;
}
.gallery-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.list-group-item{
  background-color: #00f9ff;
}

.prof {
  position: fixed;
  top: 110px;
  right: 10px;
  color: white;
  cursor: pointer;
  z-index: 9999; /* باعث میشه همیشه روی بقیه‌ی عناصر باشه */
  transition: transform 0.2s ease, color 0.2s ease;
}

.prof i {
  font-size: 45px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .grid-container {
    grid-template-areas:
    "header"
    "nav"
    "main"
    "footer";
    grid-template-columns: 1fr;
  }
  #nova{
    display: none;
  }
  .card1{
    display: grid;
  }
  .card1 img {
      width: 100%;
      margin:0 auto;
   }
  .read-more{
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .baner1 img{
    width: 100%;
  }
  #main_menu{
    width: 100%;
  }
  body{
    margin-top: -40px;
  }
/*  .d-flex{
    width: 52%;
  }*/
  .social-icons br{
    display: none;
  }
  .social-icons{
    margin: 8px;
  }

  .gallery-container{
      flex-template-columns: 2fr;
      display: flex;
/*      flex-direction:column;*/
      overflow: visible;
      flex-wrap: wrap;
    }
    .gallery-container img{
      flex-template-columns: 2fr;
      display: flex;
      width: 100%;
      max-width: 125px;
      flex-direction:column;
    }
    .read-more {
      margin: 4px;
    }
    .mt-6 {
      margin-top: 3.6rem  ;
    }
      .d-flex{
    width: 95%;
            }

     .prof {
  top: 65px;
}
}

