*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,body{
    overflow-x:hidden;
    width:100%;
}

body { 
    font-family: 'Vazirmatn', sans-serif;  
    background:#ffffff; 
    color:#333;
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: #eef2f6;
}
:root {
  --primary: #0b3c5d;
  --accent: #e6b31e;
  --light: #f1f6f9;
  --muted: #b8c7d6;
}

  .top-bar {
    background: #005baa;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 13px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 35px;
    z-index: 1002;
  }
.top-bar a { 
  color:white; 
  text-decoration:none; 
  margin-right:15px; 
  line-height:20px; }
.social-icons{
    margin-left: 10px;
    
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 0px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 14px;
  transition: 0.3s;
}

.social-icons a:hover {
  background: #fff;
  color: #005baa;
  transform: scale(1.1);
}

.header{
  position:fixed;
  top:35px;
  left:0;
  right:0;
  height:70px;
  background:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 25px;
  box-shadow:0 2px 6px rgba(0,0,0,0.1);
  z-index:1002;
  direction: ltr;
}
.logo-section{
  display:flex;
  align-items:center;
  gap:10px;
  direction: rtl;
}

.logo-section img{
  height:55px;

}

.university-name{
  font-size:18px;
  font-weight:bold;
  color:#222;
}


.nav{
  display:flex;
  align-items:center;
  gap:1px;
  direction: rtl;
}

.nav a{
  text-decoration:none;
  color:#333;
  font-weight:600;
  padding:0 8px;
  line-height:70px;
  transition:0.3s;
}

.nav a:hover{
  color:#007bff;
}


.dropdown{
  position:relative;
}

.dropdown-content{
  position:absolute;
  right:0;
  top:100%;
  background:#fff;
  min-width:240px;
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
  border-radius:6px;
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  transition:0.25s;
  max-height:80vh;
  overflow-y:auto;
  text-align:right;
}

.dropdown-content a{
  display:block;
  padding:10px 15px;
  font-size:14px;
  line-height:normal;
}

.dropdown-content a:hover{
  background:#f2f2f2;
}

.dropdown:hover .dropdown-content{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

.menu-toggle{
  display:none;
  font-size:28px;
  cursor:pointer;
}

/* ===== Responsive ===== */
@media (max-width:992px){

  .menu-toggle{
    display:block;
    order:2;           
    margin-left:auto;  
  }

  .logo-section{
    order:1;          
  }

  .nav{
    position:fixed;
    top:105px;
    right:-100%;
    width:180px;
    height:calc(100vh - 105px);
    background:#fff;
    flex-direction:column;
    align-items:flex-start;
    padding:20px;
    transition:0.3s;
    box-shadow:-5px 0 15px rgba(0,0,0,0.1);
    overflow-y:auto;
    z-index:1001;
    direction: rtl;
  }

  .nav.active{
    right:0;
  }

  .nav a{
    line-height:40px;
    width:100%;
  }

  .dropdown-content{
    position:static;
    box-shadow:none;
    opacity:1;
    transform:none;
    pointer-events:auto;
    display:none;
  }

  .dropdown.active .dropdown-content{
    display:block;
  }
   .top-bar{
    padding: 0px;
    font-size: 14px;
    gap: 0px;
}

 
  .social-icons a {
    margin-left: 0px;  
    width: 24px;        
    height: 24px;
    font-size: 12px;    
  }

  .top-bar .social-icons {
    gap: 0px;           
    padding: 0 5px;     
  }
}
  /* دانشکده‌ها */
  .faculties { 
    padding:40px 20px; 
    display:flex; 
    justify-content:center; 
    gap:20px; 
    flex-wrap:wrap; 
  }
  .faculty-card { 
    background:white; 
    padding:20px; 
    text-align:center; 
    border-radius:12px; 
    box-shadow:0 2px 6px rgba(0,0,0,0.1); 
    font-size:16px; 
    transition:.3s; 
    min-width:180px;
   }
  .faculty-card:hover { 
    transform:translateY(-5px); 
    box-shadow:0 6px 15px rgba(0,0,0,0.2); 
  }
  /* آمار */
  .stats { 
    display:flex; 
    justify-content:space-around; 
    padding:30px 0; 
    background:#0b3d91; 
    color:white; 
    flex-wrap:wrap;
   }
  .stat { 
    font-size:20px; 
    font-weight:700; 
    min-width:120px; 
    text-align:center; 
  }

  footer { 
    background:#222; 
    color:white; 
    text-align:center; 
    padding:20px; 
    margin-top:20px;
   }


    .header .nav a { 
      line-height:30px; 
    }
    
.image-placeholder {
    background: #ddd;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MVV */
.mvv {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    background: #eef2f7;
    
}

.card {
    background: #fff;
    justify-content: center;
    padding: 25px;
    border-radius: 8px;
    flex: 1;
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: #aa2540;
    color:#fff;
}
.stats{
display: flex;
    background: #0b3c5d;
    color: #fff;
    margin: 0;

}
.stat h3 {
    font-size: 15px;
}
/* Footer */
.footer {
    background: #0a2540;
    color: #fff;
    text-align: center;
    padding: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .about,
    .mvv,
    .stats,
    .team-members {
        flex-direction: column;
    }
}

.footer {
  position: relative;
  background: linear-gradient(180deg, var(--primary), #114ce5);
  color: var(--light);
  padding: 90px 20px 25px;
  overflow: hidden;
}

/* Decorative shapes */
.footer::before,
.footer::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.footer::before {
  width: 380px;
  height: 380px;
  background: var(--accent);
  top: -120px;
  right: -120px;
}

.footer::after {
  width: 260px;
  height: 260px;
  background: #ffffff;
  bottom: -100px;
  left: -100px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 45px;
  position: relative;
  z-index: 2;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* Brand */
.brand h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.brand span {
  color: var(--accent);
  font-size: 14px;
  display: block;
  margin-bottom: 16px;
  
}

.brand p {
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
  max-width: 360px;
  margin-left: 50px
}

/* Titles */
.footer h3 {
  font-size: 15px;
  margin-bottom: 22px;
  position: relative;
}

.footer h3::after {
  content: "";
  width: 42px;
  height: 3px;
  background: var(--accent);
  position: absolute;
  right: 0;
  bottom: -9px;
  border-radius: 3px;
}

/* Lists */
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: var(--muted);
  text-decoration: none;
  transition: 0.3s;
}

.footer ul li a:hover {
  color: var(--accent);
  padding-right: 10px;
}

/* Contact */
.contact p {
  font-size: 14px;
  margin: 8px 0;
  color: var(--muted);
}

.contact strong {
  color: var(--accent);
}

/* Newsletter */
.newsletter {
  margin-top: 18px;
}

.newsletter input {
  width: 90%;
  padding: 13px;
  border-radius: 8px;
  border: none;
  margin-bottom: 10px;
}

.newsletter button {
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #f2c94c);
  font-weight: bold;
  cursor: pointer;
}

/* Social */
.social {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.3s;
}

.social a:hover {
  background: var(--accent);
  color: #000;
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 70px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 16px;
}

.footer-bottom a:hover {
  color: var(--accent);
}
.footer {
  direction: rtl;
  text-align: right;
}


/* MVV */
.mvv {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    background: #eef2f7;
    
}

.card {
    background: #fff;
    justify-content: center;
    padding: 25px;
    border-radius: 8px;
    flex: 1;
}
        .container {
            max-width: 1000px;
            margin: 60px auto;
            padding: 0 20px;
        }

        .section-title {
            text-align: center;
            font-size: 26px;
            margin-bottom: 40px;
            color: #0b3c5d;
            font-weight: 700;
        }

        .faculties {
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 30px;
        }

        .faculty-card {
            background-color: #fff;
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);
            transition: transform 0.3s;
            display: flex;
            flex-direction: column;
            text-align: right;
        }

        .faculty-card:hover {
            transform: translateY(-6px);
        }

        .faculty-card h3 {
            color: #0b3c5d;
            margin-top: 0;
            font-size: 20px;
            font-weight: 700;
        }

        .faculty-card p {
            font-size: 14.5px;
            line-height: 2;
            flex-grow: 1;
        }

        .faculty-card a {
            align-self: flex-start;
            color: #fff;
            background-color: #005baa;
            padding: 9px 20px;
            border-radius: 5px;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
        }

        .faculty-card a:hover {
            background-color: #145a86;
        }
  
    /* ===== اساتید ===== */
    .staff {
        background: #f7f9fc;
    }

    .slider {
        position: relative;
        height: 520px;
    }

    .slide {
        position: absolute;
        border-radius: 16px;
        overflow: hidden;
        display: none;
        transition: all 1s ease;
        box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* موقعیت‌ها */
    .left2 {
        width: 180px;
        height: 270px;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        opacity: .4;
        display: block
    }

    .left1 {
        width: 200px;
        height: 300px;
        left: 20%;
        top: 50%;
        transform: translateY(-50%);
        opacity: .6;
        display: block
    }

    .center {
        width: 330px;
        height: 480px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: block;
        z-index: 3
    }

    .right1 {
        width: 200px;
        height: 300px;
        left: 65%;
        top: 50%;
        transform: translateY(-50%);
        opacity: .6;
        display: block
    }

    .right2 {
        width: 180px;
        height: 270px;
        left: 85%;
        top: 50%;
        transform: translateY(-50%);
        opacity: .4;
        display: block
    }

    .caption {
        position: absolute;
        bottom: 15px;
        width: 100%;
        text-align: center;
        color: #fff;
        font-weight: bold;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, .8);
    }

    /* ===== امکانات ===== */
    .facilities {
        background: #fff;
    }

    .facility-slider {
        position: relative;
        height: 480px;
    }

    .fac-slide {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        border-radius: 22px;
        overflow: hidden;
        display: none;
        transition: all 1s ease;
        box-shadow: 0 25px 50px rgba(0, 0, 0, .3);
    }

    .fac-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .fac-left {
        width: 280px;
        height: 360px;
        left: 5%;
        opacity: .45;
        display: block;
        filter: blur(1px);
    }

    .fac-center {
        width: 580px;
        height: 430px;
        left: 50%;
        transform: translate(-50%, -50%);
        display: block;
        z-index: 3;
    }

    .fac-right {
        width: 280px;
        height: 360px;
        left: 72%;
        opacity: .45;
        display: block;
        filter: blur(1px);
    }

    .fac-caption {
        position: absolute;
        bottom: 0;
        width: 100%;
        padding: 22px;
        background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent);
        color: #fff;
    }

    .container {
        width: 90%;
        max-width: 1200px;
        margin: auto;
        margin-top: 50px;
    }

    .hero {
        background: linear-gradient(135deg, #0f172a, #005baa);
        color: white;
        padding: 80px 20px;
        text-align: center;
        border-radius: 0 0 30px 30px;
    }

    .btn {
        display: inline-block;
        margin-top: 30px;
        padding: 12px 28px;
        background: #005baa;
        color: white;
        text-decoration: none;
        border-radius: 8px;
        transition: 0.3s;
    }

    .btn:hover {
        background: #005baa;
    }
    @media (max-width:768px){

    .slider,
    .facility-slider{
        height:320px;
    }

    .center,
    .fac-center{
        width:90%;
        height:280px;
        left:50%;
    }

    .left1,
    .left2,
    .right1,
    .right2,
    .fac-left,
    .fac-right{
        display:none;
    }

    .mvv{
        padding:20px;
    }

    .card{
        width:100%;
    }

    .container,
    .containerf{
        width:100%;
        padding:0 15px;
    }
}