:root {
  --primary-color: #0d47a1;
  --secondary-color: #1565c0;
  --text-color: #333;
  --light-bg: #f5f5f5;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}

#userIconAlt {
  font-size: 14px;
  color: #0055d2;
  cursor: pointer;
  margin-right: 10px;
  display: flex;
  align-items: center;
  gap: 17px;
}

#userIconAlt a {
  text-decoration: none;
  color: #0055d2;
  font-size: 14px;
}

body {
  direction: rtl;
  background-color: #fff;
  color: var(--text-color);
}

header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

@media (min-width: 1600px) {
  nav {
    max-width: 1650px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.code-icon {
  font-size: 1.8rem;
  font-weight: bold;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.login-btns {
  display: flex;
  gap: 1rem;
}

.login-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.login-btns button:last-child {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.login-btns .login-btn:first-of-type a {
  text-decoration: none;
  color: white;
}

.login-btns .login-btn:last-of-type a {
  text-decoration: none;
  color: var(--primary-color);
}

.login-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}
/* program Section */

.program__top {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* ده اللي يخليهم نفس الطول */
  gap: 20px;
  margin-bottom: 30px;
}

.program__box {
  flex: 1;
  background: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-radius: 10px;
}

.program__image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.program__image img {
  width: 100%;
  height: 100%; /* يتمدد مع المساحة */
  max-height: 500px;
  object-fit: cover; /* يخليها متناسقة */
  border-radius: 10px;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(13, 71, 161, 0.9), rgba(13, 71, 161, 0.9)),
    url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80")
      center/cover;
  color: white;
  padding: 4rem 2rem;
  margin-top: 0 !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease;
}

.hero p {
  animation: fadeInUp 1s ease;
}

/* Links */
.links.nav-links li a {
  color: #444;
}

.links.nav-links li a.active {
  color: #0055d2;
}

/* Hero */
.about-hero {
  position: relative;
  background-image: url("../images/hero-courses.png");
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero .overlay {
  background-color: rgba(0, 15, 40, 0.7);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 5%;
}

.about-content {
  color: #fff;
  text-align: right;
  width: 100%;
  padding: 0 10rem;
}

.about-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.about-content p {
  font-size: 0.8rem;
}

.about-content a {
  color: #fff;
  text-decoration: none;
}

.about-content a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .about-hero {
    height: 250px;
  }

  .about-content {
    padding: 0 10px;
  }

  .about-content h1 {
    font-size: 2rem;
  }

  .about-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .about-hero {
    height: 200px;
  }

  .about-content h1 {
    font-size: 1.5rem;
  }

  .about-content p {
    font-size: 0.8rem;
  }
}

.program {
  padding: 5rem 0;
}

.program__grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.program__right {
  flex: 1;
  min-width: 300px;
}

.program__image-container {
  flex: 1;
  min-width: 300px;
  position: sticky;
  top: 100px;
}

.program__image-container img {
  width: 100%;
  height: auto;
  
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.program__video {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.program__video img {
  width: 100%;
  display: block;
}

.program__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #0066ff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.program__title {
  font-size: 20px;
  font-weight: 800;
  margin: 30px 0 15px;
}

.program__subtitle {
  font-size: 22px;
  font-weight: 1000;
  margin: 25px 0 10px;
  color: #000ba2;
}

.program__text {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
}

.program__bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.program__bullets ul {
  list-style: disc;
  padding-right: 18px;
  color: #333;
  font-size: 14px;
  line-height: 1.8;
}

.program__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.program__tags span {
  background: #f1f5fb;
  color: #0066ff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.program__trainer {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  align-items: flex-start;
}

.program__trainer img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
}

.program__trainer p {
  font-size: 14px;
  color: #555;
  line-height: 2;
}

.program__box {
  background: #fff;
  padding: 25px 20px;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 100px;
}

.program__box h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
}

.program__box div p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.program__features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.program__features li {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.program__features i {
  color: #0066ff;
  margin-left: 8px;
}

.program__box .program__btn {
  display: block;
  background: #0066ff;
  color: #fff;
  padding: 12px;
  text-align: center;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 10px;
}

.program__box .program__btn--danger {
  background: #dc3545;
}

.program__box-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.program__box-desc {
  font-size: 14px;
  color: #444;
  line-height: 1.9;
  margin-bottom: 20px;
}

.program__details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.program__details-item {
  display: flex;
  align-items: center;
  font-size: 18px;
  color: #333;
}

.program__details-item i {
  color: #0066ff;
  font-size: 18px;
  margin-left: 10px;
}

.program__divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 20px 0;
}

.program__modules {
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.program__module-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  color: #333;
}

.program__module ul {
  padding-right: 20px;
  list-style: disc;
  color: #444;
  font-size: 14px;
  line-height: 1.7;
}

.program__text--end {
  margin-top: 30px;
  font-weight: 600;
  color: #222;
}

.program__accordion {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

.program__accordion details {
  border-bottom: 1px solid #eee;
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  background-color: transparent;
}

.program__accordion summary {
  padding: 15px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.program__accordion summary::marker,
.program__accordion summary::-webkit-details-marker {
  display: none;
}

.program__accordion summary::after {
  content: "▾";
  position: absolute;
  left: 20px;
  font-size: 20px;
  color: #0066ff;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

.program__accordion details[open] summary::after {
  transform: rotate(-180deg);
}

.program__content {
  padding: 10px 20px 20px;
  font-size: 13px;
  color: #555;
}

/* Responsive design */
@media (max-width: 992px) {
  .program__grid {
    flex-direction: column;
  }

  .program__right,
  .program__image-container {
    width: 100%;
    position: static;
  }

  .program__image-container img {
    max-width: 500px;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 768px) {
  .program__grid {
    gap: 20px;
  }

  .program__image-container img {
    max-width: 100%;
  }
}
