<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; 
}
 

  /* نوار خبر */
  .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: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: 0.3s;
}

.slideshow .dot.active {
  background: #fff;
  transform: scale(1.4);
}


  main { padding:40px 20px; max-width:1100px; margin:auto; }

  /* معرفی */
  .intro { padding:40px 20px; text-align:center; max-width:800px; margin:20px auto; font-size:18px; }

  /* دانشکده‌ها */
  .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); }

  /* اخبار */
  .news-slider { max-width:900px; margin:20px auto; position:relative; overflow:hidden; border-radius:12px; }
  .slides-news { display:flex; transition:transform 0.6s ease-in-out; }
  .slide-news { min-width:100%; position:relative; height:300px; background:#ddd; display:flex; justify-content:center; align-items:center; border-radius:12px; }
  .slide-news .caption { position:absolute; bottom:20px; left:20px; background: rgba(11,61,145,0.8); color:white; padding:10px 15px; border-radius:6px; font-size:18px; }
  .slider-buttons { position:absolute; top:50%; left:0; right:0; display:flex; justify-content:space-between; transform:translateY(-50%); padding:0 20px; }
  .slider-buttons button { background:rgba(0,0,0,0.5); color:white; border:none; padding:10px 15px; font-size:20px; cursor:pointer; border-radius:6px; }

  /* آمار */
  .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; }

  @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: 100px;
  border-radius: 0px;
  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;
}

/* 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;
  max-height: 80vh;      /* حداکثر 70٪ ارتفاع صفحه */
  overflow-y: auto; 
  
   direction: ltr;
  text-align: right;
}

.dropdown-content a {
  display: block;
  padding: 0px 0px;
  color: #333;
  font-size: 15px;
  text-decoration: none;
  line-height: 0px; /* فاصله بین خطوط کمتر */
  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;
}

/* ============================= */
/* Ershad Committee Scoped CSS   */
/* ============================= */
.ershad-scope {
  direction: rtl;
  font-family: 'Vazirmatn', sans-serif;
  background: #f7f9fc;
  color: #222;
  line-height: 1.8;
  padding-top: 20px;
}

/* Banner / Hero */
.ershad-scope .ershad-hero {
  background: linear-gradient(135deg, #005baa, #0b3c5d);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  border-radius: 8px;
}

.ershad-scope .ershad-hero h1 {
  font-size: 36px;
  margin-bottom: 12px;
  font-weight: 700;
}

.ershad-scope .ershad-hero p {
  font-size: 18px;
}

/* Container */
.ershad-scope .ershad-container {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

/* Section */
.ershad-scope .ershad-section {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  animation: fadeUp 1s ease;
}

.ershad-scope .ershad-section h2.ershad-title {
  font-size: 28px;
  color: #0b3c5d;
  margin-bottom: 20px;
  position: relative;
}

.ershad-scope .ershad-section h2.ershad-title::after {
  content: "";
  width: 60px;
  height: 4px;
  background: #4a6cf7;
  display: block;
  margin-top: 10px;
  border-radius: 2px;
}

/* Lists */
.ershad-scope .ershad-list {
  list-style: none;
  padding-right: 20px;
}

.ershad-scope .ershad-list li {
  padding-right: 25px;
  margin-bottom: 12px;
  position: relative;
}

.ershad-scope .ershad-list li::before {
  content: "✔";
  position: absolute;
  right: 0;
  color: #005baa;
  font-weight: bold;
}

/* Cards */
.ershad-scope .ershad-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.ershad-scope .ershad-card {
  background: #fefefe;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.ershad-scope .ershad-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.ershad-scope .ershad-card h3 {
  font-size: 20px;
  color: #0b3c5d;
  margin-top: 0;
}

.ershad-scope .ershad-card p {
  font-size: 15px;
  line-height: 1.8;
}

/* Button */
.ershad-scope .ershad-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: #005baa;
  color: #fff;
  border-radius: 25px;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s;
}

.ershad-scope .ershad-btn:hover {
  background: #0b3c5d;
  transform: translateY(-2px);
}

/* Contact Section */
.ershad-scope #contact p {
  font-size: 15px;
  margin-bottom: 8px;
  color: #333;
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media(max-width:768px){
  .ershad-scope .ershad-section {
    padding: 30px 20px;
  }

  .ershad-scope .ershad-section h2.ershad-title {
    font-size: 24px;
    text-align: center;
  }

  .ershad-scope .ershad-cards {
    grid-template-columns: 1fr;
  }
}


</style>