:root {
  --color-primary: #6e3f20;
  --color-secondary: #d7b24a;
  --color-accent: #263611;
  --color-light: #efe6d5;
  --color-dark: #1a1a1a;
  --color-text: #333333;
  --color-background: #f9f9f9;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
  --transition: all 0.4s ease;
  --border-radius: 16px;
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, #8b5a3c 100%);
  --gradient-secondary: linear-gradient(135deg, var(--color-secondary) 0%, #e5c870 100%);
  --gradient-design: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
}

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

body {
  font-family: 'Cairo', 'Tahoma', sans-serif;
  color: var(--color-text);
  line-height: 1.7;
  background-color: var(--color-background);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  color: var(--color-primary);
  font-size: 3rem;
  margin-bottom: 60px;
  font-weight: 800;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 4px;
  background: var(--gradient-secondary);
  bottom: -20px;
  right: 50%;
  transform: translateX(50%);
  border-radius: 2px;
}

.section-title.light {
  color: var(--color-light);
}

.section-title.light::after {
  background: var(--color-secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-secondary);
  color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(215, 178, 74, 0.4);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--color-light);
  border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-5px);
}

/* Page Hero */
.page-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1700&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 80vh;
  display: flex;
  align-items: center;
  color: var(--color-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--gradient-design);
  opacity: 0.4;
  z-index: 0;
}

.page-hero-content {
  width: 100%;
  position: relative;
  z-index: 2;
}

.page-hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  list-style: none;
}

.breadcrumb li {
  margin: 0 15px;
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 15px;
  color: var(--color-secondary);
  font-weight: bold;
}

.breadcrumb a {
  color: var(--color-light);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--color-secondary);
}

/* Service Detail */
.service-detail {
  background-color: white;
  position: relative;
  overflow: hidden;
}

.service-detail::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--gradient-secondary);
  opacity: 0.05;
  border-radius: 50%;
  top: -150px;
  left: -150px;
  z-index: 0;
}

.service-detail::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--gradient-design);
  opacity: 0.05;
  border-radius: 50%;
  bottom: -200px;
  right: -200px;
  z-index: 0;
}

.service-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.service-text h2 {
  color: var(--color-primary);
  font-size: 2.8rem;
  margin-bottom: 30px;
  font-weight: 800;
}

.service-text p {
  color: var(--color-text);
  font-size: 1.2rem;
  line-height: 1.9;
  margin-bottom: 25px;
}

.service-features {
  list-style: none;
  margin: 35px 0;
}

.service-features li {
  padding: 18px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.service-features li:hover {
  background-color: rgba(215, 178, 74, 0.05);
  padding-right: 15px;
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li i {
  color: var(--color-secondary);
  margin-left: 18px;
  font-size: 1.3rem;
  background: rgba(110, 63, 32, 0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.service-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  height: 450px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  transition: var(--transition);
}

.service-image:hover {
  transform: translateY(-10px);
}

.service-image i {
  font-size: 5rem;
  margin-bottom: 25px;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

/* Training Programs */
.programs-section {
  background-color: #f8f4ec;
  position: relative;
  overflow: hidden;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 35px;
  margin-top: 50px;
}

.program-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.program-header {
  background: var(--gradient-primary);
  color: white;
  padding: 25px;
  text-align: center;
}

.program-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.program-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.program-body {
  padding: 25px;
}

.program-features {
  list-style: none;
  margin: 20px 0;
}

.program-features li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.program-features li:last-child {
  border-bottom: none;
}

.program-features li i {
  color: var(--color-secondary);
  margin-left: 10px;
}

.program-duration {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.program-price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.2rem;
}

/* Process Section */
.process-section {
  background-color: white;
  position: relative;
  overflow: hidden;
}

.process-section::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 20px;
  top: 0;
  right: 0;
  background: var(--gradient-design);
  opacity: 0.1;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 70px 0;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 45px;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-secondary);
  z-index: 1;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-number {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 25px;
  position: relative;
  box-shadow: 0 5px 15px rgba(110, 63, 32, 0.3);
  transition: var(--transition);
}

.process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(110, 63, 32, 0.4);
}

.step-title {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  font-weight: 700;
}

.step-description {
  color: #666;
  padding: 0 15px;
  line-height: 1.7;
}

/* Benefits Section */
.benefits-section {
  background: #f8f4ec;
  position: relative;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
}

.benefit-card {
  text-align: center;
  padding: 40px 30px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--color-secondary);
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.benefit-card::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 5px;
  background: var(--gradient-secondary);
  bottom: 0;
  right: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition);
}

.benefit-card:hover::before {
  transform: scaleX(1);
}

.benefit-icon {
  font-size: 3rem;
  color: var(--color-secondary);
  margin-bottom: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(110, 63, 32, 0.1);
  transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
  transform: rotateY(180deg);
  background: var(--gradient-primary);
  color: white;
}

.benefit-title {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  font-weight: 700;
}

.benefit-description {
  color: #666;
  line-height: 1.7;
}

/* Testimonials Section */
.testimonials-section {
  background: white;
  position: relative;
  overflow: hidden;
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial {
  background: #f8f4ec;
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
  margin: 0 20px;
}

.testimonial-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 25px;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  color: var(--color-secondary);
  position: absolute;
  top: -20px;
  right: 10px;
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.author-info h4 {
  color: var(--color-primary);
  margin-bottom: 5px;
}

.author-info p {
  color: #666;
  font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-accent) 0%, #1e2b0c 100%);
  color: var(--color-light);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="transparent"/><path d="M0 50L100 50" stroke="%23d7b24a" stroke-width="0.5" opacity="0.2"/><path d="M50 0L50 100" stroke="%23d7b24a" stroke-width="0.5" opacity="0.2"/></svg>');
  background-size: 50px 50px;
  opacity: 0.3;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 3rem;
  margin-bottom: 25px;
  font-weight: 800;
}

.cta-description {
  margin-bottom: 40px;
  opacity: 0.9;
  font-size: 1.3rem;
  line-height: 1.8;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .section-title {
    font-size: 2.5rem;
  }

  .page-hero-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  .service-content {
    grid-template-columns: 1fr;
  }

  .process-steps {
    flex-direction: column;
    gap: 50px;
  }

  .process-steps::before {
    display: none;
  }

  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 80px 0;
  }

  .page-hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.3rem;
  }
}

@media (max-width: 768px) {
  .page-hero-title {
    font-size: 2.5rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: 2.5rem;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .page-hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
    padding: 0 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
  }

  .section-title {
    font-size: 2rem;
  }

  .service-text h2 {
    font-size: 2rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .btn {
    padding: 16px 32px;
  }

  .breadcrumb {
    flex-direction: column;
    gap: 10px;
  }

  .breadcrumb li:not(:last-child)::after {
    display: none;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Custom animations */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(215, 178, 74, 0.7);
  }

  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 15px rgba(215, 178, 74, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(215, 178, 74, 0);
  }
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}