

  * {margin:0; padding:0; box-sizing:border-box;}
  body { font-family: 'Vazirmatn', sans-serif; background:#ffffff; color:#333; }
  body {
  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-left:10px; line-height:35px; }

  /* هدر */
  .header {
    top:35px; 
    z-index:1002;
    direction: ltr;
    background:white;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 20px;
    height:60px;
    position: fixed;
    top:35px;
    left:0; right:0;
    z-index:1002;
    box-shadow:0 2px 6px rgba(0,0,0,0.1);
  }
  .header .logo-section {
    display:flex; 
    align-items:center; 
    gap:10px; 
    direction: rtl;
     
}
  .header .logo-section img { 
    height:50px; 
  }
  
  .header .logo-section img { 
    height:50px; 
  }
  .header .nav { 
    display:flex; 
    align-items:center; 
    gap:5px; 
    order:1; 
    direction: rtl;
}
  .header .nav a { 
    text-decoration:none; 
    color:#333; 
    font-weight:600; 
    line-height:60px; 
    line-height: 45px;
    padding: 0 6px;
}
 /* ===== Dropdown ===== */
 .dropdown {
  position: relative;
  display: inline-block;
}
 .dropdown-content {
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  min-width: 200px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  z-index: 2100;
  border-radius: 6px;
  margin: 0;              /* حذف فاصله اضافی */
  padding: 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.25s ease;
  max-height: 80vh;      /* حداکثر 70٪ ارتفاع صفحه */
  overflow-y: auto; 
  direction: rtl;
  text-align: right;
}
.dropdown-content a {
  display:block;
  color:#333;
  text-decoration:none;
  padding:0 15px;
  line-height:40px;
  font-size: 15px;
  transition: background 0.3s;
  cursor: pointer;
  padding: 0 15px;
  }
.dropdown-content a:hover { 
  background:#f0f0f0; 
  cursor: pointer;
  }
.dropdown:hover .dropdown-content { 
  opacity:1; 
  transform:translateY(0); 
  pointer-events:auto; }

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}


  /* نوار خبر */
  .news-ticker {
    position: fixed;
    top:95px;
    left:0;
    right:0;
    background:#ffeb3b;
    color:#333;
    height:30px;
    display:flex;
    align-items:center;
    overflow:hidden;
    white-space:nowrap;
    font-weight:600;
    z-index:10;
  }
  .news-ticker span { 
    display:inline-block; 
    padding-left:100%; 
    animation:ticker 30s linear infinite;
  }
  @keyframes ticker { 
    0%{
    transform:translateX(-100%);} 100%{
    transform:translateX(100%);} 
  }

  /* اسلایدشو */
  .slideshow {
    position: relative;
    width:100%;
    height: calc(100vh - 125px);
    overflow:hidden;
    margin-top:125px;
  }
  .slideshow .slides { position:relative; width:100%; height:100%; }
  .slideshow .slide {
    position:absolute;
    inset:0;
    opacity:0;
    pointer-events:none;
    transition: opacity 1s ease-in-out;
  }
  .slideshow .slide.is-active { opacity:1; pointer-events:auto; }
  .slideshow .slide .bg { position:absolute; inset:0; background-size:cover; background-position:center; filter:brightness(.55); transform:translateY(0); transition:transform .3s ease-out; }

  .slideshow .controls { position:absolute; inset:0; display:flex; justify-content:space-between; align-items:center; padding:0 20px; z-index:10; }
  .slideshow .btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-size: 26px;
  line-height: 1; /* خیلی مهم */
}

  .slideshow .thumbnails {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 15;
}

.slideshow .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: 0.3s;
}

.slideshow .dot.active {
  background: #fff;
  transform: scale(1.4);
}
  /* معرفی */
.intro { 
  padding:40px 20px; 
  text-align:center; 
  max-width:800px; 
  margin:20px auto; 
  font-size:18px; }

  main { 
    padding:40px 20px; 
    max-width:1100px; 
    margin:auto; }

 

  /* دانشکده‌ها */
  .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 */
.stats {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: #aa2540;
    color:#fff;
}
.stats{
display: flex;
    background: #0b3c5d;
    color: #fff;
	margin-left: 40px;
	margin-right: 40px;
}
.stat h3 {
    font-size: 15px;
}















    



@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;
  }
}


@media (max-width: 1024px) {
  .president-image img {
    width: 220px !important;
    height: 280px !important;
  }
}

 
    @media (max-width: 768px) {
      .content {
        grid-template-columns: 1fr;
      }
    }

 

  /* ===== Mobile ===== */
  @media (max-width:900px){
    .menu-toggle { display:block; color:#005baa; }
    .nav {
      position: fixed;
      top:95px; /* top-bar + header */
      right:0;
      width:260px;
      height: calc(100vh - 95px);
      background:#fff;
      flex-direction:column;
      padding:20px;
      gap:10px;
      transform:translateX(100%);
      transition:0.3s ease;
      box-shadow:-5px 0 15px rgba(0,0,0,0.15);
      z-index:2000;
    }
    .nav.active { transform:translateX(0); }

    .nav a { width:100%; line-height:40px; border-bottom:1px solid #eee; }

    /* Mobile dropdown */
    .dropdown-content {
      display:none;
      position:static;
      transform:none;
      opacity:1;
      pointer-events:auto;
      box-shadow:none;
      width:100%;
      background:#f7f9fc;
    }
    .dropdown.active .dropdown-content { display:block !important; }
    .dropdown:hover .dropdown-content { display:none; } /* disable hover */
  }

 
.president-message {
  background-color: #f7f9fc;
  padding: 60px 20px;
}

.president-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;   /* کلید اصلی: هم‌سطح شدن */
}

.president-image {
  flex: 1;
  text-align: center;
}

.president-image img {
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.president-text {
  flex: 2;
}

.president-text h2 {
  margin-top: 0;            /* مهم: شروع متن از بالا */
  color: #003366;
  margin-bottom: 15px;
}

.president-text p {
  line-height: 2;
  color: #333;
  text-align: justify;
}

.president-sign {
  margin-top: 20px;
  color: #003366;
  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;
    }
}
:root {
  --primary: #0b3c5d;
  --accent: #e6b31e;
  --light: #f1f6f9;
  --muted: #b8c7d6;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #eef2f6;
}

.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;
}