@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;
/*  font-size: 16px;*/

}

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

/* General Style for Areas */
.header, .nav, .featured, .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 {
  grid-area: header;
  font-size: 1.8rem;
}

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

.featured {
  grid-area: featured;
  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;
}

/*.social-icons{
  margin-right: 4px;
}*/

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  padding: 20px;
}
.gallery-item {
  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-item img {
  width: 100%;
  height: auto;
  display: block;
}
.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}


.container {
    width: 100%;
    max-width: 1500px;
    margin: 20px auto;
}

.article {
    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;
}

.article img {
    width: 280px;
    margin: 15px;
    height: auto;
    display: block;
}

.article-content {
    padding: 15px;
}

.article-title {
    font-size: 1.5em;
    margin: 0 0 10px;
    color: black;
}

.article-summary {
    font-size: 1em;
    color: black;
    margin: 0 0 15px;
}

.read-more {
    display: inline-block;
    padding: 10px 15px;
    background-color: #145DA0;
    color: black;
    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; 
}

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


.containerr {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 50px 20px;
}

.card {
  background-color: white;
  width: 325px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  border-radius: 2px;
  overflow: hidden;
  text-align: center;
}

.card-header {
  position: relative;
  padding: 20px;
  border-bottom: 1px solid #ddd;
}

.card-header i {
  font-size: 30px;
  margin-bottom: 10px;
  display: block;
  color: #333;
}

.card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 0px 0px 0px 25px;
  background-color: darkblue;
}

.card-body {
  padding: 20px;
  font-size: 14px;
  color: #333;
}


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

.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"
    "featured"
    "footer";
    grid-template-columns: 1fr;
  }
  #nova{
    display: none;
  }
  .baner1 img{
    width: 100%;
  }
  #main_menu{
    width: 100%;
  }
  body{
    margin-top: -40px;
  }
  .d-flex{
    width: 95%;
  }
  .social-icons br{
    display: none;
  }
  .social-icons{
    margin: 8px;
  }
  .featured img{
    width: 100%;
  }
  .featured{
    font-size: 15px;
  }
  .article{
   display: block;
  }
  .article img{
   width: 100%;
   margin: auto;
  }
  .main {
    grid-template-columns: 1fr;
  }
  .mt-6 {
  margin-top: 6.5rem ;
  }

  .containerr {
    flex-direction: column;
    align-items: center;
  }
  .card-header img{
    width: 35px;
  }
  .card {
    width: 90%;
  }
    .prof {
  top: 65px;
}
}

