/* =========================================
   1. GLOBAL & HERO ENGINE (LOCKED)
   ========================================= */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a1a;
  overflow-x: hidden;
}

.distribution-hero {
  position: relative;
  width: 100% !important;
  height: 85vh !important;
  min-height: 600px !important;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.distribution-hero .hero-slider,
.distribution-hero .hero-slider div {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.distribution-hero .hero-slider div {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  opacity: 0;
  animation: distHeroFade 42s ease-in-out infinite;
}

/* 7 Slider Images */
.distribution-hero .hero-slider div:nth-child(1) { background-image: url('/roneemedia/assets/images/distribution-roneemedia-1.jpg'); animation-delay: 0s; }
.distribution-hero .hero-slider div:nth-child(2) { background-image: url('/roneemedia/assets/images/distribution-roneemedia-2.jpg'); animation-delay: 6s; }
.distribution-hero .hero-slider div:nth-child(3) { background-image: url('/roneemedia/assets/images/distribution-roneemedia-3.jpg'); animation-delay: 12s; }
.distribution-hero .hero-slider div:nth-child(4) { background-image: url('/roneemedia/assets/images/distribution-roneemedia-4.jpg'); animation-delay: 18s; }
.distribution-hero .hero-slider div:nth-child(5) { background-image: url('/roneemedia/assets/images/distribution-roneemedia-5.jpg'); animation-delay: 24s; }
.distribution-hero .hero-slider div:nth-child(6) { background-image: url('/roneemedia/assets/images/distribution-roneemedia-6.jpg'); animation-delay: 30s; }
.distribution-hero .hero-slider div:nth-child(7) { background-image: url('/roneemedia/assets/images/distribution-roneemedia-7.jpg'); animation-delay: 36s; }

@keyframes distHeroFade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  14% { opacity: 1; }
  19% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(25, 22, 96, 0.85) 100%);
  z-index: 2;
}

.hero-center {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
}

/* =========================================
   2. SERVICES & SECTION STYLING
   ========================================= */
.distribution-section { padding: 100px 0; }
.distribution-section.light { background: #f8fbff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #191660;
  margin-bottom: 30px;
}

.section-intro {
  font-size: 1.15rem;
  color: #4a5568;
  max-width: 900px;
  margin: 0 auto 60px;
  line-height: 1.8;
}

/* Service Row Layout */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: #ffffff;
  padding: 60px;
  border-radius: 32px;
  margin-bottom: 40px;
  box-shadow: 0 20px 50px rgba(25, 22, 96, 0.05);
}

.service-row.reverse { direction: rtl; }
.service-row.reverse .service-text { direction: ltr; }

.service-text h3 {
  font-size: 1.8rem;
  color: #191660;
  margin-bottom: 15px;
  font-weight: 700;
}

/* The Blue Divider Line */
.service-text::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #7ed0fb;
  margin-bottom: 25px;
  border-radius: 2px;
}

.service-row.reverse .service-text::after { margin-left: auto; }

.service-text p {
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.7;
}

.service-image {
  width: 100%;
  height: 380px;
  background: #f1f5f9;
  border-radius: 20px;
}

/* =========================================
   3. CTA & MOBILE FIXES
   ========================================= */
.distribution-cta {
  padding: 120px 24px;
  background: #191660;
  color: #fff;
  text-align: center;
}

.distribution-cta h2 { font-size: 2.5rem; margin-bottom: 20px; }

.email-resume-btn {
  display: inline-block;
  background: #7ed0fb;
  color: #191660;
  padding: 18px 50px;
    border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: 0.3s ease;
  box-shadow: 0 10px 25px rgba(126, 208, 251, 0.3);
}

@media (max-width: 768px) {
  .distribution-section { padding: 60px 0; }
  
  .service-row {
    grid-template-columns: 1fr;
    padding: 40px 30px;
    gap: 30px;
    text-align: center;
    direction: ltr !important;
    border-radius: 24px;
  }

  .service-text::after { margin: 0 auto 25px !important; }

  .service-image { height: 240px; }

  .distribution-cta {
    padding: 80px 24px;
  }

  .distribution-cta h2 { font-size: 1.8rem; }

  .email-resume-btn {
    width: 100%;
    max-width: 320px;
  }
}

/* =========================================
   6. RESPONSIVE CTA & BUTTON FIXES
   ========================================= */

@media (max-width: 768px) {
  .distribution-cta {
    padding: 80px 20px; /* Tighter padding for mobile screens */
    
  }

  .distribution-cta h2 {
    font-size: 2rem; /* Scaled down heading */
    line-height: 1.2;
  }

  .distribution-cta p {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  /* BUTTON RESPONSIVENESS */
  .distribution-cta .email-resume-btn {
    display: flex; /* Ensures content centers inside the flex container */
    width: 100%; /* Full width for easy thumb-tapping */
    max-width: 320px; /* Keeps it from stretching too far on tablets */
    margin: 30px auto 0 auto; /* Centers the button horizontally */
    padding: 18px 20px;
    font-size: 16px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .distribution-cta {
    padding: 60px 15px;
  }

  .distribution-cta h2 {
    font-size: 1.7rem;
  }

  .distribution-cta .email-resume-btn {
    font-size: 15px;
    padding: 16px 15px;
  }
}

/* ===============================
   HERO HEIGHT RESPONSIVE FIXES
================================ */

/* 1. TABLETS (1024px and below) */
@media (max-width: 1024px) {
  .distribution-hero {
    height: 75vh !important; /* Slightly reduced from 85vh */
    min-height: 550px !important;
  }
}

/* 2. MOBILE LANDSCAPE / LARGE PHONES (768px and below) */
@media (max-width: 768px) {
  .distribution-hero {
    height: 65vh !important; /* Balanced height for mobile view */
    min-height: 500px !important;
  }
  
  .hero-content h1 {
    font-size: 2.8rem; /* Scaled down for better fit */
    line-height: 1.2;
  }
}

/* 3. SMALL SMARTPHONES (480px and below) */
@media (max-width: 480px) {
  .distribution-hero {
    height: 60vh !important; /* Minimalist height for small screens */
    min-height: 450px !important;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    padding: 0 10px;
  }
}