:root {
  --color-primary: #193277;
  --color-primary-dark: #0b2545;
  --color-secondary: #bd9d6c;
  --color-text-dark: #333;
  --color-background-light: #f9f9f9;
  --color-white: #ffffff;
  --font-family-cairo: "Cairo", sans-serif;
  --transition-speed: 0.3s;
  --padding-base: 15px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-cairo);
  background-color: var(--color-background-light);
  color: var(--color-text-dark);
  line-height: 1.8;
  direction: rtl;
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

.content-wrapper-main {
  background-color: var(--color-white);
  padding: 40px;
  margin-top: 30px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  border-top: 8px solid var(--color-secondary);
}

.section-TXT {
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-secondary);
  display: inline-block;
  max-width: 100%;
}

.competencies-list {
  list-style: none;
  padding: 0;
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 10px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.competencies-list li {
  font-size: 1.15rem;
  color: var(--color-text-dark);
  padding: 18px 25px;
  position: relative;
  padding-right: 50px;
  border-bottom: 1px solid #f0f0f0;
  transition:
    background-color var(--transition-speed),
    transform var(--transition-speed);
}

.competencies-list li:last-child {
  border-bottom: none;
}

.competencies-list li:hover {
  background-color: rgba(189, 157, 108, 0.05);
  color: var(--color-primary-dark);
  transform: translateX(5px);
}

.icon-point {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(189, 157, 108, 0.3),
    0 0 5px rgba(0, 0, 0, 0.2);
  transition: background-color var(--transition-speed);
}

.competencies-list li:hover .icon-point {
  background-color: var(--color-primary);
  box-shadow: 0 0 0 5px rgba(25, 50, 119, 0.2);
}

@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .content-wrapper-main {
    padding: 20px;
  }

  .section-TXT {
    font-size: 1.2rem;
  }

  .competencies-list li {
    font-size: 0.8rem;
    padding: 15px 15px;
    padding-right: 40px;
  }

  .icon-point {
    right: 15px;
    width: 10px;
    height: 10px;
  }

  .scroll-to-top {
    right: 15px;
    bottom: 15px;
  }
}

/*************************************************** ورش عمل ****************************************************************************/
.page-title {
  font-size: 2.2rem;
  color: var(--color-primary);
  text-align: center;
  margin: 40px 0;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.page-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 150px;
  height: 4px;
  background-color: var(--color-secondary);
  border-radius: 2px;
}

.workshops-season {
  padding: 30px 0;
}

.season-title {
  color: var(--color-primary);
  font-size: 1.8rem;
  padding-bottom: 10px;
  margin-bottom: 30px;
  border-right: 5px solid var(--color-secondary);
  padding-right: 15px;
  font-weight: 700;
}

.timeline {
  position: relative;
  padding: 20px 0 20px 20px; /* Space for the line on the right */
}

/* Vertical line for the timeline */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  background-color: #ddd;
  height: 100%;
}

.timeline-item {
  position: relative;
  margin-bottom: 25px;
  background-color: var(--color-white);
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition:
    box-shadow var(--transition-speed),
    transform var(--transition-speed);
}

.timeline-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

/* Timeline dot */
.timeline-dot {
  position: absolute;
  top: 50%;
  right: -10px; /* Positioned on the vertical line */
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: var(--color-secondary);
  border: 4px solid var(--color-primary);
  border-radius: 50%;
  z-index: 10;
}

.workshop-date {
  font-size: 0.95rem;
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 5px;
}

.workshop-details {
  font-size: 1.05rem;
  color: var(--color-text-dark);
}

.workshop-name {
  font-weight: 700;
  color: var(--color-primary-dark);
  transition: all 0.3s;
  color: var(--color-secondary);
}

.section-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 40px 0;
}

@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .nav-wrapper {
    min-height: 70px;
  }

  .logo img {
    height: 45px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .timeline {
    padding-right: 15px;
  }

  .timeline::before {
    right: 0;
  }

  .timeline-dot {
    right: -7.5px;
    width: 15px;
    height: 15px;
  }
}

/* PDF Download Button */
.pdf-download-wrapper {
  text-align: center;
  margin-top: 40px;
}

.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(
    135deg,
    var(--color-secondary),
    var(--color-text-dark)
  );
  color: #fff;
  text-decoration: none;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(37, 29, 1, 0.35);
  transition: all 0.4s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.pdf-download-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: left 0.4s ease;
}

.pdf-download-btn:hover::before {
  left: 100%;
}

.pdf-download-btn:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 12px 30px rgba(31, 26, 5, 0.45);
  border-color: rgba(255, 255, 255, 0.3);
}

.pdf-download-btn i.fa-file-pdf {
  font-size: 1.4em;
}

.pdf-download-btn i.fa-download {
  font-size: 1em;
  animation: bounce-down 1.5s infinite;
}

@keyframes bounce-down {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}
@media (max-width: 768px) {
  .pdf-download-btn {
    padding: 10px 20px;
    font-size: 0.6rem;
    gap: 5px;
  }
  .pdf-download-wrapper {
    margin-top: 20px;
  }
}
