:root {
  --color-primary: #6e3f20;
  --color-secondary: #d7b24a;
  --color-accent: #263611;
  --color-light: #efe6d5;
  --color-dark: #1a1a1a;
  --color-text: #333333;
  --color-background: #f9f9f9;
  --gradient-primary: linear-gradient(135deg, #6e3f20 0%, #8c5e3b 100%);
  --gradient-secondary: linear-gradient(135deg, #d7b24a 0%, #e5c87a 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --border-radius: 16px;
}

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

body {
  font-family: "Cairo", 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: 2.8rem;
  margin-bottom: 20px;
  font-weight: 800;
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--color-dark);
  font-size: 1.2rem;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.8;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 4px;
  background: var(--color-secondary);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Page Hero */
.page-hero {
  background: linear-gradient(rgba(110, 63, 32, 0.8),
      rgba(110, 63, 32, 0.8)),
    url("https://images.unsplash.com/photo-1581092580497-e0d23cbdf1dc?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center;
  height: 70vh;
  display: flex;
  align-items: center;
  color: var(--color-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23efe6d5' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.3;
}

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

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

.page-hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  list-style: none;
  margin-top: 20px;
}

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

.breadcrumb li:not(:last-child)::after {
  content: "•";
  margin-right: 12px;
  color: rgba(239, 230, 213, 0.7);
}

.breadcrumb a {
  color: rgba(239, 230, 213, 0.9);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

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

/* Quality Intro */
.quality-intro {
  background: white;
  position: relative;
  overflow: hidden;
}

.quality-intro::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(110, 63, 32, 0.1);
  z-index: 0;
}

.quality-intro::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(215, 178, 74, 0.1);
  z-index: 0;
}

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

.intro-text h2 {
  color: var(--color-primary);
  font-size: 2.5rem;
  margin-bottom: 25px;
  font-weight: 800;
}

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

.quality-badge {
  display: inline-flex;
  align-items: center;
  background: var(--color-light);
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.quality-badge i {
  margin-right: 10px;
  font-size: 1.3rem;
}

.intro-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  height: 450px;
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transform: perspective(1000px) rotateY(5deg);
  transition: var(--transition);
}

.intro-image:hover {
  transform: perspective(1000px) rotateY(0);
}

.intro-image-content {
  text-align: center;
  padding: 30px;
}

.intro-image-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.intro-image-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

/* Standards Section */
.standards-section {
  background: var(--color-light);
  position: relative;
}

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

.standard-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 40px 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.standard-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--color-secondary);
  transition: var(--transition);
  z-index: -1;
}

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

.standard-card:hover::before {
  height: 100%;
  opacity: 0.05;
  width: 100%;
}

.standard-icon {
  font-size: 3.5rem;
  color: var(--color-primary);
  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);
}

.standard-card:hover .standard-icon {
  background: var(--color-primary);
  color: var(--color-light);
}

.standard-title {
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

.standard-description {
  color: #666;
  line-height: 1.8;
  text-align: center;
}

/* Process Section */
.process-section {
  background: white;
}

.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--color-secondary);
  transform: translateX(-50%);
}

.process-item {
  display: flex;
  justify-content: flex-start;
  padding-left: 30px;
  position: relative;
  margin-bottom: 80px;
  width: 50%;
}

.process-item:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  padding-left: 30px;
  padding-right: 0;
  left: 50%;
}

.process-content {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
  width: 100%;
  position: relative;
  transition: var(--transition);
}

.process-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.process-content::before {
  content: "";
  position: absolute;
  top: 30px;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid white;
}

.process-item:nth-child(even) .process-content::before {
  left: auto;
  right: -10px;
  border-right: none;
  border-left: 10px solid white;
}

.process-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 15px;
  opacity: 0.2;
  line-height: 1;
}

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

.process-desc {
  color: #666;
  line-height: 1.8;
}

.process-dot {
  position: absolute;
  top: 30px;
  left: -13px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-secondary);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: 0 0 0 10px rgba(215, 178, 74, 0.2);
}

.process-item:nth-child(even) .process-dot {
  left: auto;
  right: -13px;
}

/* Certification Section */
.certification-section {
  background: linear-gradient(135deg,
      rgba(110, 63, 32, 0.05) 0%,
      rgba(215, 178, 74, 0.05) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.certification-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236e3f20' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cert-container {
  position: relative;
  z-index: 2;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.cert-item {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.cert-icon {
  font-size: 3rem;
  color: var(--color-secondary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(215, 178, 74, 0.1);
}

.cert-title {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 15px;
  font-weight: 700;
}

.cert-desc {
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.cert-link {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.cert-link i {
  margin-left: 8px;
  transition: var(--transition);
}

.cert-link:hover {
  color: var(--color-primary);
}

.cert-link:hover i {
  transform: translateX(5px);
}

/* CTA Section */
.cta-section {
  background: var(--color-primary);
  color: var(--color-light);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23efe6d5' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

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

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

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

.btn {
  display: inline-block;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: var(--color-light);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

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

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

/* Responsive Styles */
@media (max-width: 992px) {
  .intro-content {
    grid-template-columns: 1fr;
  }

  .process-timeline::before {
    left: 30px;
    display: none;
  }

  .process-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 30px;
  }

  .process-item:nth-child(even) {
    left: 0;
  }

  .process-item:nth-child(odd) {
    left: 0;
  }

  .process-item:nth-child(odd) .process-content::before {
    left: 100%;
    right: unset;
    transform: rotate(180deg);
  }

  .process-content::before {
    left: auto;
    right: -10px;
    border-left: none;
    border-right: 10px solid white;

  }

  .process-dot {
    left: 0px;
    right: auto;
  }
}

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

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

  .standards-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 80px 0;
  }
}

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

  .page-hero-subtitle {
    font-size: 1.2rem;
  }

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

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

  .btn {
    padding: 15px 30px;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 15px;
  }

  .btn-secondary {
    margin-left: 0;
  }
}

/* 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);
}