.policy,
.success {
  padding-block: 100px 60px !important;
  min-height: 92vh;
}

.success__text {
  margin-bottom: 27px;
}

.success__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.policy__title,
.success__title {
  font-weight: 700;
  font-size: 35px;
  line-height: 110%;
  letter-spacing: 0%;
  vertical-align: middle;
  margin-bottom: 28px;
  color: #353535;
}

.policy__text {
  font-weight: 400;
  font-size: 18px;
  line-height: 130%;
  letter-spacing: 0%;
  color: #252525;
}

.policy__title {
  color: #272727;
}

.policy__text h2 {
  text-align: left;
  font-size: 21px;
}

.policy__text ul {
  padding-left: 20px;
}

.policy__text h2,
.policy__text p,
.policy__text ul {
  margin-bottom: 22px;
}

.policy__link {
  color: #fff;
}

h1,
h2,
h3,
h4 {
  word-break: break-word;
}

html {
  scroll-behavior: smooth;
}

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

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Cairo", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #000000;
  direction: rtl;
  text-align: right;
}

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

/* Header Styles */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav {
  padding: 1rem 0;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

@media (max-width: 768px) {
  .nav .container {
    flex-direction: column;
  }
}

.logo {
  height: 55px;
  width: auto;
}

@media (max-width: 768px) {
  .logo {
    height: 40px;
    width: auto;
  }
}

.nav-menu {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-list a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: #4caf50;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 124px 0 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.hero-left {
  width: 100%;
  max-width: 800px;
}

.hero-right {
  width: 100%;
  max-width: 386px;
}

.hero-video {
  width: 100%;
  border-radius: 30px;
}

.hero-badge {
  background: #4caf50;
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.3;
}

.hero-description {
  text-align: center;

  font-size: 1.1rem;
  color: #000000;
  margin-bottom: 2rem;
}

.video-container {
  margin-top: 2rem;
}

.video-placeholder {
  background: #ddd;
  border-radius: 10px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-placeholder:hover {
  transform: scale(1.02);
}

.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Form Styles */
.form-container {
  background: linear-gradient(136deg, #ffffff 0%, #eefaff 100%);

  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-title {
  position: relative;
  color: #4caf50;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  width: fit-content;
  text-align: center;
}

.form-title::before {
  position: absolute;
  content: "";
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 34px;
  background: url("../img/stat-logo.svg") center / cover no-repeat;
}

.form-subtitle {
  color: #000000;
  font-size: 20px;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  text-align: right;
}

.hero-form,
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-form {
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0px 0px 15px 0px #0000001c;
  background: #f8f8f8;
}

.hero-form input,
.cta-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  font-family: "Cairo", sans-serif;
  direction: rtl;
  text-align: right;
}

.hero-form input:focus,
.cta-form input:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.btn-primary {
  background: #e91e63;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: "Cairo", sans-serif;
}

.btn-primary:hover {
  background: #c2185b;
}

.btn-green {
  background: #31b133;
  color: white;
  padding: 14px 24px;
  border-radius: 80px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  display: inline-block;
  transition: background 0.3s ease;
}

.btn-green:hover {
  background: #1d801f;
}

/* Features Section */
.features {
  padding: 80px 0;
  background: white;
}

.features-text {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-bottom: 30px;
}

.features-text h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #000000;
}

.features-text p {
  color: #000000;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.features-gallery {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 1rem;
}

.gallery-item {
  height: 100%;
  min-height: 478px;
  max-width: 268px;
  border-radius: 20px;
}

.gallery-video {
  border-radius: 20px;

  width: 100%;
}

.gallery-item:nth-of-type(1) {
  grid-column: 2/3;
  grid-row: 1/3;
}

.gallery-item:nth-of-type(2) {
  grid-column: 2/3;
  grid-row: 3/5;
}

.gallery-item:nth-of-type(3) {
  grid-column: 2/3;
  grid-row: 5/7;
}

.gallery-item:nth-of-type(4) {
  grid-column: 1/2;
  grid-row: 2/4;
}

.gallery-item:nth-of-type(5) {
  grid-column: 1/2;
  grid-row: 4/6;
}

@media (max-width: 768px) {
  .features-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
  }

  .gallery-item {
    height: 100%;
    min-height: 280px;
    max-width: 157px;
  }
}

/* Services Section */
.services {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-family: Cairo;
  font-weight: 700;
  font-style: Bold;
  font-size: 38px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;

  margin-bottom: 1rem;
  color: #000000;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 30px;
  }
}

.section-subtitle {
  text-align: center;
  color: #000000;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.services-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 3rem;
}

.service-item {
  padding: 2rem;
  width: 356px !important;
  text-align: center;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-item h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #000000;
}

.service-item p {
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  line-height: 1.6;
}

.cta-section {
  text-align: center;
}

/* Second CTA Section */
.second-cta {
  padding: 80px 0;
  background: white;
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.cta-subtitle {
  color: #666;
  margin-bottom: 2rem;
}

.second-form-container {
  max-width: 400px;
  margin: 0 auto;
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
}

.testimonials-slider {
  margin-top: 3rem;
}

.testimonial-card {
  padding: 2rem;
  height: 100%;
  display: flex;
  gap: 10px;
}

.testimonial-avatar {
  display: flex;

  margin-bottom: 1rem;
}

.testimonial-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 15px;
  border: 2px solid #31b133;
}

.testimonial-content {
  background: #0000000d;
  border-radius: 24px;
  padding: 10px;
}

.testimonial-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stars {
  margin-bottom: 1rem;
  color: #ffc107;
}

.testimonial-content p {
  color: #666;
  line-height: 1.6;
}

.swiper-button-next,
.swiper-button-prev {
  color: #4caf50;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #4caf50;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #444;
  font-size: 0.9rem;
  color: #ccc;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    transition: right 0.3s ease;
    padding: 2rem;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }

  .hero {
    padding: 190px 0 60px;
    min-height: auto;
  }

  .hero-content {
    flex-direction: column-reverse;
  }

  .hero-right {
    order: -1;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .features .container {
    text-align: center;
  }

  .features-gallery {
    margin: 0 auto;
  }

  .services-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

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

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

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  /* Mobile testimonials - show all slides in column */
  .testimonials .swiper {
    overflow: visible;
  }

  .testimonials .swiper-wrapper {
    display: flex !important;
    flex-direction: column !important;
    transform: none !important;
    gap: 1rem;
  }

  .testimonials .swiper-slide {
    width: auto !important;
    margin: 0 !important;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

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

  .form-container,
  .second-form-container {
    padding: 1.5rem;
  }

  .service-item {
    padding: 1.5rem;
  }
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation for Images */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* Form Validation Styles */
input:invalid {
  border-color: #e91e63;
}

input:valid {
  border-color: #4caf50;
}
