/* ==============================================
   ABOUT PAGE RESPONSIVE FIXES
   ============================================== */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  /* Body and Layout */
  body {
    padding-top: 0 !important; /* Remove padding since using modern header */
  }
  
  /* Section */
  section {
    padding: 60px 20px !important;
    max-width: none !important;
    margin: 0 !important;
  }
  
  /* Video */
  video {
    width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    border-radius: 15px !important;
    margin-bottom: 30px !important;
  }
  
  /* Typography */
  h1 {
    font-size: clamp(28px, 8vw, 48px) !important;
    margin-bottom: 25px !important;
    line-height: 1.2 !important;
  }
  
  p {
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
  }
  
  /* Last paragraph */
  p:last-child {
    margin-bottom: 0 !important;
  }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Section */
  section {
    padding: 80px 30px !important;
  }
  
  /* Video */
  video {
    max-height: 400px !important;
    margin-bottom: 40px !important;
  }
  
  /* Typography */
  h1 {
    font-size: 42px !important;
    margin-bottom: 35px !important;
  }
  
  p {
    font-size: 17px !important;
    margin-bottom: 25px !important;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  /* Even smaller adjustments */
  section {
    padding: 50px 15px !important;
  }
  
  video {
    max-height: 250px !important;
    margin-bottom: 25px !important;
  }
  
  h1 {
    font-size: 32px !important;
    margin-bottom: 20px !important;
  }
  
  p {
    font-size: 15px !important;
    margin-bottom: 18px !important;
  }
}

/* Large Desktop (min-width: 1200px) */
@media (min-width: 1200px) {
  /* Ensure proper spacing on large screens */
  section {
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  video {
    max-height: 500px !important;
  }
}

/* Prevent horizontal overflow */
@media (max-width: 768px) {
  section,
  video {
    overflow-x: hidden !important;
  }
  
  video {
    max-width: 100% !important;
  }
}
