html, body
{
    margin: 0;
      padding: 0;
      height: 100%;
}

@font-face{
    font-family: 'iranSans';
    src: url("./iran_sans.woff");
}

@font-face{
    font-family: 'Far_TV.ttf';
    src: url("./Far_TV.ttf");
}

* 
{
    direction: rtl;
}

    .header-section {
        font-family: 'iranSans';
        display: flex;
        align-items: center;
        padding: 10px 150px;
        
    }

    .logo {
      width: 110px;
      height: 100px;
    }

    .nav-links {
        margin-left: auto; 
    }

    .nav-links a {
        padding-right: 55px;
        margin-left: 20px;
        font-size: 20px;
        text-decoration: none;
        color: #000;
        font-weight: bold;
    }

.header-two-section {
    font-family: 'Far_TV.ttf';
    position: relative;
    width: 100%;
    overflow: hidden;
}

.header-two-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.header-two-section .content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding-top: 100px;
    font-size: 2em;
    font-family: 'Far_TV.ttf';
}

.header-two-section {
    position: relative;
    width: 100%;
    height: 400px; /* قابل تنظیم */
    overflow: hidden;
}

.header-two-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.header-two-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.header-two-section .content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    padding-top: 280px;
    font-size: 2em;
}

.content-header
{
    text-align: right;
}

.section-1
{
    font-family: 'iranSans';
    padding: 10px;
    height: 300px;
    
}

.section-1 h1 {
  font-size: 25px;
}

.articles-container
{
    display: flex;
            justify-content: space-between;
            gap: 20px;
    background-image: url('/images/background-section.jpg');
    height: 400px;
    padding-top: 50px;
    padding-bottom: 50px;
    padding-right: 30px;
    padding-left: 30px;
}

.article
{
    
   background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            flex: 1;
            text-align: center;
    
    
}

.titr
{
    font-family: 'Far_TV.ttf';
    display: inline-block;
    box-shadow: 0 -10px 0 0 #f0f0f0 inset;
    padding-bottom: 2px;
    width: 350px;
}

.section-2
{
    font-family: 'iranSans';
    padding: 10px;
    height: 300px;
    
}

.section-2 h1 {
  font-size: 25px;
}

.articles-container2
{
    display: flex;
            justify-content: space-between;
            gap: 20px;
    background-image: url('/images/unnamed (1).png');
    height: 400px;
    padding-top: 50px;
    padding-bottom: 50px;
    padding-right: 30px;
    padding-left: 30px;
}

.article2
{
    
   background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            flex: 1;
            text-align: center;
    
    
}


.slider-container {
position: relative;
font-family: 'iranSans';
width: 80%;
max-width: 100%;
overflow: hidden;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-slider {
display: flex;
transition: transform 0.5s ease-in-out;
}

.video-slide {
min-width: 100%;
position: relative;
}

.video-slide video {
width: 100%;
display: block;
}

.slide-caption {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 15px;
text-align: center;
}

.slider-controls {
position: absolute;
top: 50%;
width: 100%;
display: flex;
justify-content: space-between;
transform: translateY(-50%);
}

.control-btn {
background: rgba(255, 255, 255, 0.7);
border: none;
color: #333;
font-size: 24px;
padding: 10px 15px;
cursor: pointer;
transition: all 0.3s;
border-radius: 50%;
margin: 0 10px;
}

.control-btn:hover {
background: rgba(255, 255, 255, 0.9);
}

.slider-dots {
position: absolute;
bottom: 20px;
left: 0;
right: 0;
display: flex;
justify-content: center;
gap: 10px;
}

.dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
cursor: pointer;
transition: background 0.3s;
}

.dot.active {
background: white;
}

.container_1
{
    background-color: gray; 
    color: white; 
    font-family: iransans; 
    font-size: 21px; 
    padding-top: 40px;
    
}

.container_1 {
  display: flex;
  gap: 20px; /* فاصله بین دو گرید */
  width: 100%;
  padding-bottom: 20px;
  padding-right: 10px;
  padding-left: 10px;
}

.grid-item {
  flex: 1; /* هر دو گرید عرض مساوی می‌گیرند */
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* استایل پایه برای حالت دسکتاپ */
.header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #f2f2f2;
  flex-wrap: wrap;
}

.logo {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #0077cc;
}

/* استایل واکنش‌گرا برای صفحه‌های کوچکتر از 768px (مثل موبایل و تبلت) */
@media screen and (max-width: 768px) {
  .header-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }

  .logo {
    height: 50px;
    margin-bottom: 10px;
  }
}
