* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", sans-serif;
  background: #f5f7fa;
  color: #222;
  line-height: 1.8;
}

/* DARK MODE */
body.dark {
  background: #111827;
  color: #e5e7eb;
}

/* Links */
a {
  text-decoration: none;
}

ul {
  list-style: none;
}
/* HEADER */
header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  z-index: 1000;
}

body.dark header {
  background: #1b222c;
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 7%;
}

/* LOGO */
.logo {
  font-size: 20px;
  font-weight: 700;
  color: #00a166;
  text-shadow: 0 0 15px rgba(0,179,181,.35);
}

/* LINKS */
nav ul {
  display: flex;
  gap: 25px;
}

nav ul a {
  color: #333;
  font-weight: 600;
  transition: .3s;
}

body.dark nav ul a {
  color: #e5e7eb;
}

/* HOVER = ORANGE */
nav ul a:hover {
  color: #ff802e;
}

/* LIST */
nav ul li {
  width: 100%;
  text-align: center;
}

nav ul li a {
  display: block;
  width: 100%;
}

/* MENU */
.menu-btn {
  display: none;
  font-size: 30px;
  color: #00a166;
  cursor: pointer;
}

.close-btn {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  font-size: 28px;
  color: #ff802e;
  cursor: pointer;
}

/* THEME BUTTON */
#theme-btn {
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #00a166;
  color: white;
  cursor: pointer;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 160px 8% 100px;
  flex-wrap: wrap;
}

/* HERO IMAGE GLOW (GREEN TEAL LIGHT) */
.hero-image img {
  width: 380px;
  height: 380px;
  object-fit: cover;
  border-radius: 50%;
  border: 7px solid #00a166;
  box-shadow:
  0 0 20px #31794d,
  0 0 50px rgba(47,111,94,.25),
  0 0 80px rgba(233,106,24,0.25);
}

/* HERO TEXT */
.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  font-size: 50px;
  color: #ababab;
  /* dark gray title */
  margin: 15px 0;
}

.hero-content h3 {
  margin-bottom: 15px;
  color: #ff802e;
}

/* INFO */
.info {
  margin-top: 20px;
}

.info div {
  margin: 12px 0;
}

/* SECTIONS */
.section {
  padding: 90px 8%;
}

/* TITLE = DARK GRAY */


/* CARD */
.card {
  background: white;
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,.08);
  margin: 0 -10px;
}

body.dark .card {
  background: #1b222c;
}

/* TEXT */
.card p {
  margin-bottom: 15px;
}

/* TIMELINE */
.timeline-item {
  background: white;
  padding: 25px;
  margin-bottom: 25px;
  border-right: 6px solid #ff802e;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,.08);
}

body.dark .timeline-item {
  background: #1b222c;
}

.timeline-item h3 {
  color: #ff802e;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 20px;
}

.gallery-card img {
  width: 100%;
  border-radius: 20px;
  transition: .4s;
}

.gallery-card img:hover {
  transform: scale(1.05);
}

/* VIDEOS */
.video-container {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(350px,1fr));
  gap: 25px;
}

.video-card video {
  width: 100%;
  border-radius: 20px;
}

/* BUTTON */
.btn {
  display: inline-block;
  background: #ff802e;
  color: white;
  padding: 14px 30px;
  border-radius: 12px;
  margin-top: 20px;
}

/* CONTACT */
.contact-item i {
  color: #ff802e;
  margin-left: 10px;
}

footer {
  background: #2f6f5e;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

.footer-name {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #e5e7eb;
}

.footer-title {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1.7;
  text-shadow: 0 0 15px rgba(255,255,255,.15);
}

/* الموبايل */
@media(max-width:768px) {

  .footer-name {
    font-size: 15px;
    color:;white
  }

  .footer-title {
    font-size: 18px;
  }

}

/* TOP BUTTON */
#topBtn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: #00a166;
  color: white;
  display: none;
  cursor: pointer;
}

/* MOBILE */
@media(max-width:992px) {

  .menu-btn {
    display: block;
  }

  nav ul {
    position: fixed;
    top: 20px;
    left: -100%;
    width: 200px;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    border-radius: 0 20px 20px 0;
    transition: .4s;
  }

  body.dark nav ul {
    background: #1b222c;
  }

  nav ul.active {
    left: 0;
  }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 160px 8% 100px;
    flex-wrap: wrap;
  }

  /* محتوى النص */
  .hero-content {
    max-width: 700px;
  }

  /* الاسم */
  .hero-content h1 {
    font-size: 55px;
    line-height: 1.3;
    color: #3a3a3a;
    font-weight: 800;
    margin-bottom: 20px;
  }

  /* المسمى الوظيفي */
  .hero-content h2 {
    color: #ff802e;
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(201,109,31,.15);
  }

  /* الوصف */
  .hero-content p {
    color: #666;
    font-size: 18px;
    line-height: 2;
    margin-bottom: 35px;
  }

  /* صندوق المعلومات */
  .info {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .info div {
    background: #fff;
    padding: 15px 22px;
    border-radius: 15px;
    border-right: 5px solid #ff802e;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    color: #444;
    font-weight: 600;
    transition: .3s;
  }

  .info div:hover {
    transform: translateX(-5px);
    background: #f8f9fa;
  }

  /* الأيقونات */
  .info i {
    color: #ff802e;
    margin-left: 10px;
    font-size: 18px;
  }

  /* الوضع الليلي */
  body.dark .hero-content h1 {
    color: #e5e7eb;
  }

  body.dark .hero-content h2 {
    color: #ff9a3d;
    text-shadow: 0 0 15px rgba(255,154,61,.3);
  }

  body.dark .hero-content p {
    color: #b7bcc6;
  }

  body.dark .info div {
    background: #1b1d22;
    color: #e5e7eb;
    border-right: 5px solid #ff9a3d;
    box-shadow: 0 0 20px rgba(0,0,0,.25);
  }

  body.dark .info div:hover {
    background: #272c34;
  }

  body.dark .info i {
    color: #ff9a3d;
  }

  /* الموبايل */
  @media(max-width:768px) {

    .hero-content {
      text-align: center;
    }

    .hero-content h1 {
      font-size: 38px;
    }

    .hero-content h2 {
      font-size: 22px;
    }

    .hero-content p {
      font-size: 16px;
    }

  }

  .hero-image img {
    width: 280px;
    height: 280px;
  }
}

.teaching-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  direction: rtl;
}

.teaching-table th {
  background: #00a166;
  color: #fff;
  padding: 15px;
  font-size: 18px;
}

.teaching-table td {
  padding: 15px;
  border-bottom: 1px solid #ddd;
  line-height: 1.8;
  vertical-align: top;
}

.teaching-table tr:nth-child(even) td {
  background: #f8f9fa;
}

.teaching-table tr:hover td {
  background: #eef8f8;
}

body.dark .teaching-table tr:nth-child(even) td {
  background: #1b1d22;
}

body.dark .teaching-table tr:hover td {
  background: #272c34;
}

/* الأنشطة البحثية */
.intro {
  margin-bottom: 25px;
  font-weight: 600;
}

.research-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.research-item {
  background: #f8f9fa;
  border-right: 5px solid #00a166;
  padding: 20px;
  border-radius: 15px;
  line-height: 2;
  transition: .3s;
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.research-item:hover {
  background: #eef8f8;
  transform: translateY(-3px);
}

/* الوضع الليلي */
body.dark .research-item {
  background: #1b1d22;
  color: #e5e7eb;
  border-right-color: #00a166;
}

body.dark .research-item:hover {
  background: #272c34;
}

.sub-title {
  color: #ff802e;
  margin-bottom: 20px;
  margin-top: 15px;
}

.training-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.training-item {
  background: #f8f9fa;
  border-right: 5px solid #00a166;
  padding: 20px;
  border-radius: 15px;
  line-height: 2;
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
  transition: .3s;
}

.training-item:hover {
  background: #eef8f8;
  transform: translateY(-3px);
}

/* الوضع الليلي */
body.dark .training-item {
  background: #1b1d22;
  color: #e5e7eb;
  border-right: 5px solid #00a166;
}

body.dark .training-item:hover {
  background: #272c34;
}

body.dark .sub-title {
  color: #ff9a3d;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-item {
  background: #f8f9fa;
  border-right: 5px solid #ff802e;
  padding: 20px;
  border-radius: 15px;
  line-height: 2;
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
  transition: .3s;
}

.admin-item:hover {
  background: #eef8f8;
  transform: translateY(-3px);
}

/* الوضع الليلي */
body.dark .admin-item {
  background: #1b1d22;
  color: #e5e7eb;
  border-right: 5px solid #ff9a3d;
}

body.dark .admin-item:hover {
  background: #272c34;
}
.title {
  text-align: center;
  color: #3a3a3a;
  margin-bottom: 20px;
  font-size: 30px;
}

.title-en {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #ff802e;
  letter-spacing: .5px;
}

body.dark .title {
  color: #e5e7eb;
}

body.dark .title-en {
  color: #ff9a3d;
}

/* النتاج العلمي والمؤلفات */
.publication-list {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: 20px;
}

.publication-item {
  position: relative;
  background: #f8f9fa;
  border-right: 5px solid #00a166;
  padding: 25px 80px 25px 25px;
  border-radius: 18px;
  line-height: 2;
  box-shadow: 0 5px 15px rgba(0,0,0,.08);
  transition: .3s;
  font-size: 18px;
}

.publication-item:hover {
  background: #eef8f8;
  transform: translateY(-4px);
}

.book-number {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  font-weight: 800;
  color: #00a166;
  text-shadow: 0 0 10px rgba(0,159,161,.25);
}

/* عنوان الإنجليزي */
.title-en {
  display: block;
  margin-top: 8px;
  color: #ff802e;
  font-size: 16px;
  font-weight: 500;
}

/* الوضع الليلي */
body.dark .publication-item {
  background: #1b1d22;
  color: #e5e7eb;
  border-right: 5px solid #00a166;
}

body.dark .publication-item:hover {
  background: #272c34;
}

body.dark .book-number {
  color: #00a166;
  text-shadow: 0 0 15px rgba(0,179,181,.35);
}

/* للموبايل */
@media(max-width:768px) {

  .publication-item {
    padding: 20px 65px 20px 20px;
    font-size: 16px;
  }

  .book-number {
    font-size: 32px;
    right: 15px;
  }

}
/* توسيع القسم */
#career {
  padding: 90px 4%;
}

.career-card {
  padding: 10px;
}

/* الجدول */
.career-table {
  width: 100%;
  border-collapse: collapse;
  direction: rtl;
}

.career-table th {
  background: #00a166;
  color: #fff;
  padding: 18px;
  font-size: 18px;
  text-align: center;
}

.career-table td {
  padding: 18px;
  line-height: 1.9;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.career-table tr:nth-child(even) td {
  background: #f8f9fa;
}

.career-table tr:hover td {
  background: #eef8f8;
}

/* الوضع الليلي */
body.dark .career-table td {
  border-bottom: 1px solid #333;
}

body.dark .career-table tr:nth-child(even) td {
  background: #1b1d22;
}

body.dark .career-table tr:hover td {
  background: #272c34;
}

/* الموبايل */
@media(max-width:768px) {

  .career-card {
    overflow-x: auto;
  }

  .career-table {
    min-width: 700px;
  }

}
/* المؤهلات العلمية */
#education {
  padding: 90px 4%;
}

.career-card {
  padding: 20px;
}

/* الجدول */
.career-table {
  width: 100%;
  border-collapse: collapse;
  direction: rtl;
}

.career-table th {
  background: #00a166;
  color: #fff;
  padding: 18px;
  font-size: 18px;
  text-align: center;
}

.career-table td {
  padding: 18px;
  line-height: 1.9;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.career-table tr:nth-child(even) td {
  background: #f8f9fa;
}

.career-table tr:hover td {
  background: #eef8f8;
}

/* منع نزول الدرجة العلمية وسنة التخرج لسطر جديد */
.nowrap {
  white-space: nowrap;
}

/* الوضع الليلي */
body.dark .career-table td {
  border-bottom: 1px solid #333;
}

body.dark .career-table tr:nth-child(even) td {
  background: #1b1d22;
}

body.dark .career-table tr:hover td {
  background: #272c34;
}

/* الموبايل */
@media(max-width:768px) {

  .career-card {
    overflow-x: auto;
  }

  .career-table {
    min-width: 850px;
  }

}
#research {
  padding: 90px 4%;
}

@media(max-width:768px) {

  #research .career-card {
    overflow-x: auto;
  }

  #research .career-table {
    min-width: 1000px;
  }

}
#teaching {
  padding: 90px 4%;
}

@media(max-width:768px) {

  #teaching .career-card {
    overflow-x: auto;
  }

  #teaching .career-table {
    min-width: 850px;
  }

}
.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  margin-bottom: 20px;
  background: #f8f9fa;
  border-right: 5px solid #ff8c42;
  border-radius: 15px;
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
  transition: .3s;
}

.contact-item:hover {
  background: #eef8f8;
}

.contact-item i {
  color: #ff8c42;
  font-size: 24px;
}

.contact-item a {
  color: #444;
  text-decoration: none;
  word-break: break-word;
}

.contact-item a:hover {
  color: #c96d1f;
}

/* الوضع الليلي */
body.dark .contact-item {
  background: #1b1d22;
}

body.dark .contact-item:hover {
  background: #272c34;
}

body.dark .contact-item a {
  color: #e5e7eb;
}

#message-form {
  display: none;
  margin-top: 20px;
}

#message-form input,
#message-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: none;
  border-radius: 15px;
  background: #f8f9fa;
  font-family: "Cairo",sans-serif;
}

#message-form button {
  background: #ff8c42;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 15px;
  cursor: pointer;
}

body.dark #message-form input,
body.dark #message-form textarea {
  background: #272c34;
  color: #fff;
}

#success-message {
  margin-top: 15px;
  color: #009fa1;
  font-weight: bold;
}