body { 
    font-family: 'Vazirmatn', sans-serif;  
    background:#ffffff; 
    color:#333;
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: #eef2f6;
}

  .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;     
  }
}

 .container {
      max-width: 1200px;
      margin: 150px auto;
      background: #fff;
      padding: 100px;
      border-radius: 12px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }
    h1 {
      text-align: center;
      margin-bottom: 10px;
      color: #333;
    }
    p.subtitle {
      text-align: center;
      color: #666;
      margin-bottom: 30px;
    }
    .content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 30px;
    }
    .info {
      line-height: 2;
      color: #444;
    }
    .info h3 {
      margin-bottom: 10px;
      color: #222;
    }
    form input, form textarea {
      width: 100%;
      padding: 12px;
      margin-bottom: 15px;
      border-radius: 8px;
      border: 1px solid #ccc;
      font-size: 14px;
    }
    form textarea {
      resize: none;
      height: 120px;
    }
    form button {
      background: #4f46e5;
      color: #fff;
      border: none;
      padding: 12px 25px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 15px;
    }
    form button:hover {
      background: #4338ca;
    }
    @media (max-width: 768px) {
      .content {
        grid-template-columns: 1fr;
      }
    }








































/* =====================
   FOOTER
===================== */
.footer {
    background: #0a2540;
    color: #fff;
    text-align: center;
    padding: 15px;
}
:root {
  --primary: #0b3c5d;
  --accent: #e6b31e;
  --light: #f1f6f9;
  --muted: #b8c7d6;
}

.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;
}


/* 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;
}
/* ============================= */
/* FIX GLOBAL RESPONSIVE ISSUES */
/* ============================= */

html, body {
  overflow-x: hidden;
}

/* فاصله صحیح برای محتوای اصلی */
main {
  margin-top: 40px;
}


/* ریسپانسیو*/
@media (max-width: 768px) {
  .president-container {
    flex-direction: column;
    text-align: center;
  }

  .president-text p {
    text-align: justify;
  }

  .president-image img {
    width: 220px;
    height: 280px;
    margin-right: 45px;
  }
}
    @media (max-width: 768px) {
      .content {
        grid-template-columns: 1fr;
      }
    }





/* ============================= */
/* SLIDESHOW MOBILE */
/* ============================= */

@media (max-width:768px){

  .slideshow{
    height: 55vh;
  }

  .slideshow .btn{
    width:40px;
    height:40px;
    font-size:20px;
  }

}

/* ============================= */
/* PRESIDENT SECTION */
/* ============================= */

@media (max-width:768px){

  .president-container{
    flex-direction: column;
    text-align:center;
  }

  .president-image img{
    width:200px;
    height:auto;
  }

}

/* ============================= */
/* FACULTIES MOBILE */
/* ============================= */

@media (max-width:768px){

  .faculties{
    flex-direction: column;
    align-items:center;
  }

  .faculty-card{
    width:90%;
  }

}

/* ============================= */
/* STATS FIX */
/* ============================= */

.stats{
  flex-wrap: wrap;
  gap:20px;
  text-align:center;
}

.stat{
  flex:1 1 200px;
  padding:15px;
}

/* ============================= */
/* FOOTER MOBILE FIX */
/* ============================= */

@media (max-width:768px){

  .footer-container{
    grid-template-columns: 1fr !important;
    text-align:center;
  }

  .brand p{
    margin:0 auto;
  }
  
  .footer-bottom{
    flex-direction:column;
    gap:10px;
    text-align:center;
    
  }
@media (max-width:768px){

  .footer h3{
    text-align:center;
  }
  .footer h3::after{
    right:50%;
    transform:translateX(50%);
  }
.social{
  margin-right: 80px;
}
}
}
