<style>
  * {margin:0; padding:0; box-sizing:border-box;}
  body { font-family: 'Vazirmatn', sans-serif; background:#ffffff; color:#333; }

  /* نوار بالایی */
  .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 {
    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; 
    order:2; 
}
  .header .logo-section img { 
    height:50px; 
}
  .header .nav { 
    display:flex; 
    align-items:center; 
    gap:10px; order:1; 
}
  .header .nav a { 
    text-decoration:none; 
    color:#333; 
    font-weight:600; 
    line-height:60px; 
}
 
.layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 25px;
  padding: 25px;
  margin-top: 100px;
  
}

/* --- نوار کناری --- */
.side-news {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  height: 570px; /* هم‌ارتفاع اسلایدشو */
  overflow-y: auto;
}

.side-item {
  background: #fafafa;
  margin-bottom: 15px;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: 0.2s;
  border: 1px solid #ddd;
}

.side-item:hover {
  background: #eef6ff;
}

.side-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

.side-title {
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
}

.side-text {
  color: #555;
  margin-top: 5px;
  line-height: 1.6;
  height: 60px; /* سه خط */
  overflow: hidden;
}

.side-more {
  margin-top: 5px;
  color: #0077cc;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
}

/* --- اسلایدشو --- */
.news-slider {
  background: #fff;
  border-radius: 0px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  overflow: hidden;
  height: 600px;
  display: flex;
  flex-direction: column;
}

.slide-main {
  position: relative;
  width: 100%;
  height: 900px;
  overflow: hidden;
}

.slide-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* تامبنیل‌ها */
.thumb-container {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.thumb-frame {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.35s ease;
}

.thumb-frame.active {
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255,255,255,0.9);
  transform: scale(1.4);
}




/* فلش‌ها */
.arrow {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transform: translateY(-50%);
}

.arrow-left { left: 10px; }
.arrow-right { right: 10px; }

.arrow svg { fill: white; width: 30px; height: 30px; }

/* متن خبر داخل اسلاید */
.news-content {
  padding: 15px;
}

.news-title {
  font-size: 20px;
  font-weight: bold;
}

.news-text {
  color: #444;
  margin-top: 5px;
  line-height: 1.7;
  
  overflow: hidden;
}

.read-more {
  color: #0077cc;
  font-weight: bold;
  margin-top: 8px;
  text-decoration: none;
}
 
  .news-text {
  max-height: 80px;
  overflow: hidden;
  white-space: pre-wrap; /* شکستن خطوط و نگه داشتن فاصله‌ها */
  word-wrap: break-word; /* شکستن کلمات طولانی */
  line-height: 1.5; /* فاصله بین خطوط */
  position: relative;
  transition: max-height 0.5s ease;
}

.news-text.open {
  max-height: 600px; /* بسته به متن */
  overflow: auto;
}



  footer { background:#222; color:white; text-align:center; padding:20px; margin-top:20px; }

  @media(max-width:768px){
    .header { flex-direction:column; text-align:center; height:auto; padding:5px 10px; }
    .header .nav { flex-direction:column; order:2; }
    .header .logo-section { order:1; margin-bottom:5px; }
    .header .nav a { line-height:30px; }
    .slideshow .thumbnails img { width:70px; height:50px; }
    .slide-news { height:200px; }
  }
body {
    margin: 0;
    font-family: sans-serif;
    background: #f7f9fc;
    color: #222;
    line-height: 1.8;
}

a {
    text-decoration: none;
}


.nav a {
    color: #fff;
    margin-right: 20px;
}

/* Hero */
.hero {
    background: #0a2540;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.hero-buttons {
    margin-top: 20px;
}

.btn {
    background: #ffffff;
    color: #123c66;
    padding: 10px 25px;
    border-radius: 5px;
    margin: 5px;
    display: inline-block;
}

.btn.outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

/* About */
.about {
    display: flex;
    padding: 140px 40px;
    gap: 20px;
}

.about-text {
flex: 1;
}
.about-image { 
flex: 1;
text-align: center;
}
.about-image img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);

}

.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: #a2540;
    color: #fff;
}
.stats{
display: flex;
    background: #0b3c5d;
    color: #fff;
	margin-left: 40px;
	margin-right: 40px;
}
.stat h3 {
    font-size: 15px;
}

/* Team */
.team {
    padding: 0px 0px;
    text-align: center;
}

.team-members {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.member {
    background: #fff;
    padding: 60px;
    border-radius: 8px;
    width: 200px;
}

.photo {
    background: #ccc;
    height: 120px;
    margin-bottom: 10px;
}

/* Why Us */
.why-us {
    padding: 40px;
    background: #eef2f7;
}

.why-us ul {
    list-style: none;
    padding: 0;
}

.why-us li::before {
    content: "✔ ";
    color: green;
}

/* CTA */
.cta {
    background: #123c66;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.news-item {
      display: flex;
      gap: 20px;
      background: #fff;
      border-radius: 0px;
      padding: 10px;
      margin: 0 auto 20px auto;
      margin-right: 40px;
      max-width: 1320px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .slider {
      position: relative;
      width: 380px;
      height: 240px;
      overflow: hidden;
      border-radius: 6px;
      flex-shrink: 0;
      margin-right: 10px;
      padding: 0;
    }
    .slides {
      display: flex;
      transition: transform 0.4s ease;
      height: 100%;
    }
    .slides img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      border-radius: 0;
      margin: 0;
      padding: 0;
    }
    .slider button {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0,0,0,0.5);
      color: #fff;
      border: none;
      padding: 6px 10px;
      cursor: pointer;
      border-radius: 4px;
      z-index: 2;
    }
    .prev { right: 10px; }
    .next { left: 10px; }

    .slider-dots {
      position: absolute;
      bottom: 8px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 6px;
      z-index: 2;
    }
    .dot {
      width: 10px;
      height: 10px;
      background: rgba(255,255,255,0.6);
      border-radius: 50%;
      cursor: pointer;
    }
    .dot.active {
      background: #fff;
    }

    .content {
      flex: 1;
    }
    .content h2 {
      margin-top: 0;
      font-size: 18px;
    }
    .content p {
      line-height: 1.8;
      color: #333;
      max-height: 120px;
      overflow: hidden;
    }
    .read-more {
      margin-top: 8px;
      cursor: pointer;
      background: #007bff;
      color: #fff;
      border: none;
      padding: 6px 12px;
      border-radius: 4px;
    }

    @media (max-width: 768px) {
      .news-item {
        flex-direction: column;
      }
      .slider, .slides img {
        width: 100%;
        height: 220px;
      }
    }










/* 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;
}

/* Section Background */
.about-section {
    padding: 120px 40px;
    background: linear-gradient(135deg, #005baa, #ffffff);
    direction: rtl;
    display: flex;
    justify-content: center;
}

/* Card */
.about-card {
    max-width: 1500px;
    width: 100%;
    background: #ffffff;
    border-radius: 0px;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.12);
    display: flex;
    overflow: hidden;
    animation: fadeUp 1s ease;
}

/* Image */
.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text */
.about-text {
    flex: 1;
    padding: 50px;
}

.about-text h2 {
    font-size: 34px;
    color: #1f2a44;
    margin-bottom: 20px;
    position: relative;
}

.about-text h2::after {
    content: "";
    width: 70px;
    height: 4px;
    background: #4a6cf7;
    display: block;
    margin-top: 10px;
    border-radius: 2px;
}

.about-text p {
    font-size: 16.5px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 15px;
}

/* Button */
.about-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    background: #4a6cf7;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 15px;
    transition: 0.3s ease;
}

.about-btn:hover {
    background: #3248c5;
    transform: translateY(-3px);
}

/* Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .about-card {
        flex-direction: column;
    }

    .about-text {
        padding: 35px 25px;
        text-align: center;
    }

    .about-text h2::after {
        margin: 10px auto 0;
    }

    .about-image img {
        height: 280px;
    }
}


/* 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;
}
 


        .banner { 
            background: linear-gradient(rgba(0, 91, 170, 0.85), rgba(0, 91, 170, 0.85)),
                         url('https://www.transparenttextures.com/patterns/flowers.png');
            background-color: #005baa;
            background-image: url("https://www.transparenttextures.com/patterns/xv.png");
/* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
           
           
            background-size: cover;
            background-position: center;
            color: #fff;
            padding: 80px 20px;
            text-align: center;
        }

        .banner h2 {
            font-size: 34px;
            margin-bottom: 12px;
            font-weight: 700;
        }

        .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;
        }
    
.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: 9999;
  border-radius: 6px;
  margin: 0;              /* حذف فاصله اضافی */
  padding: 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.dropdown-content a {
  display: block;
  padding: 0px 10px;
  color: #333;
  font-size: 15px;
  text-decoration: none;
  line-height: 5; /* فاصله بین خطوط کمتر */
  transition: background 0.3s;
  cursor: pointer;
}

.dropdown-content a:hover {
  background: #f0f0f0;
  cursor: pointer;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

}
.header .nav a,
.dropdown > a
 cursor: pointer;
}
.news-item {
      display: flex;
      gap: 20px;
      background: #fff;
      border-radius: 8px;
      padding: 16px;
      margin: 0 auto 20px auto;
      max-width: 1200px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .slider {
      position: relative;
      width: 380px;
      height: 240px;
      overflow: hidden;
      border-radius: 6px;
      flex-shrink: 0;
      margin-right: 10px;
      padding: 0;
    }
    .slides {
      display: flex;
      width: 100%;
      transition: transform 0.4s ease;
      height: 100%;
    }
    .slides img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      border-radius: 0;
      margin: 0;
      padding: 0;
      min-width: 100%;
    }
    .slider button {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0,0,0,0.5);
      color: #fff;
      border: none;
      padding: 6px 10px;
      cursor: pointer;
      border-radius: 4px;
      z-index: 2;
    }
    .prev { right: 10px; }
    .next { left: 10px; }

    .slider-dots {
      position: absolute;
      bottom: 8px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 6px;
      z-index: 2;
    }
    .dot {
      width: 10px;
      height: 10px;
      background: rgba(255,255,255,0.6);
      border-radius: 50%;
      cursor: pointer;
    }
    .dot.active {
      background: #fff;
    }

    .content {
      flex: 1;
    }
    .content h2 {
      margin-top: 0;
      font-size: 18px;
    }
    .content p {
      line-height: 1.8;
      color: #333;
      max-height: 120px;
      overflow: hidden;
    }
    .read-more {
      margin-top: 8px;
      cursor: pointer;
      background: #007bff;
      color: #fff;
      border: none;
      padding: 6px 12px;
      border-radius: 4px;
       display: inline-block;
       margin-top: 12px;   /* فاصله از متن */
       position: relative;
        z-index: 2;
    
      

    }

    @media (max-width: 768px) {
      .news-item {
        flex-direction: column;
      }
      .slider, .slides img {
        width: 100%;
        height: 220px;
      }
    }
</style>