/* About Page Custom Styles */
/* Using Tailwind for most styles, this file contains only custom overrides */
/* Footer styles are now in src/css/style.css and src/css/responsive.css */

/* Hero Section - 60% Height */
.about-hero {
  min-height: 85vh !important;
  max-height: 85vh !important;
  padding-top: 0 !important;
  padding-bottom: 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  position: relative !important;
}

/* Header styling to match image - white bar with rounded corners, positioned at top */
#main-content .header {
  background: white !important;
  border-radius: 35px !important;
  margin: 1rem auto 0 auto !important;
  max-width: 95% !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
  z-index: 1000 !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  order: 1 !important;
}

/* Hero content wrapper - takes remaining space and centers content */
.about-hero .hero-content-wrapper {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  order: 2 !important;
  width: 100% !important;
}

.about-hero .hero-title {
  text-align: center !important;
  margin: 0 auto 0.5rem auto !important;
}

.about-hero .hero-subtitle {
  text-align: center !important;
  margin: 0 auto !important;
}

/* Fix tablet responsive menu visibility - integrated into tablet media query below */

/* Hero Section Curved Shape */
.about-hero-curve {
  clip-path: ellipse(120% 60% at 0% 100%);
}

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

/* Custom animations for fade-in effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Image hover effects */
.mission-image {
  transition: filter 0.3s ease;
}

.mission-image:hover {
  filter: blur(0);
}

/* ============================================
   RESPONSIVE STYLES - Matching responsive.css breakpoints
   ============================================ */

/* Extra Small Mobile (≤ 320px) */
@media (max-width: 320px) {
  .about-hero {
    min-height: 55vh !important;
    max-height: 55vh !important;
    padding-top: 0.5rem !important;
  }

  #main-content .header {
    margin: 0.5rem auto 0 auto !important;
    padding: 4px 8px !important;
  }

  /* Sidebar styles are shared from responsive.css */

  .about-hero .hero-title {
    font-size: 1.5rem !important;
    padding: 0 0.75rem !important;
    line-height: 1.3 !important;
  }

  .about-hero .hero-subtitle {
    font-size: 0.8rem !important;
    padding: 0 0.75rem !important;
    line-height: 1.5 !important;
  }

  .mission-section {
    overflow: hidden !important;
  }

  .mission-section .relative {
    min-height: 300px !important;
  }

  .mission-section img {
    height: 300px !important;
  }

  .mission-section .absolute {
    left: 0.75rem !important;
    width: calc(100% - 1.5rem) !important;
    max-width: 90% !important;
    padding: 1rem !important;
  }

  .mission-title {
    font-size: 1.25rem !important;
    margin-bottom: 0.5rem !important;
  }

  .mission-text {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
  }

  .deliver-section,
  .why-choose-section {
    padding: 1.5rem 0.75rem !important;
  }

  .section-title {
    font-size: 1.25rem !important;
    margin-bottom: 0.5rem !important;
  }

  .section-subtitle {
    font-size: 0.75rem !important;
    padding: 0 0.25rem !important;
  }

  .service-box {
    padding: 1rem !important;
    gap: 0.75rem !important;
  }

  .service-box svg {
    width: 2rem !important;
    height: 2rem !important;
  }

  .service-box p {
    font-size: 0.8rem !important;
  }

  .value-box {
    padding: 1rem !important;
  }

  .value-box .w-14 {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  .value-box svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }

  .value-box h3 {
    font-size: 1rem !important;
  }

  .value-box p {
    font-size: 0.8rem !important;
  }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
  .about-hero {
    min-height: 60vh !important;
    max-height: 60vh !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  #main-content .header {
    margin: 0.5rem auto 0 auto !important;
    padding: 2px 10px !important;
    width: 95% !important;
  }

  /* Sidebar styles are shared from responsive.css */

  .about-hero .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
    padding: 0 1rem !important;
    margin-bottom: 0.75rem !important;
  }

  .about-hero .hero-subtitle {
    font-size: 0.875rem !important;
    padding: 0 1rem !important;
    line-height: 1.6 !important;
  }

  /* Mission section - overlapping layout on mobile like image */
  .mission-section {
    overflow: visible !important;
  }

  .mission-section .max-w-7xl {
    padding: 0 !important;
  }

  .mission-section .relative {
    min-height: 350px !important;
    position: relative !important;
  }

  /* Image container - 80% width, right-aligned */
  .mission-section .relative > div:first-child {
    width: 70% !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    z-index: 1 !important;
  }

  .mission-section img {
    height: 350px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center right !important;
  }

  /* Text box - positioned center-left, overlaps image from left (45% width) */
  .mission-section .relative .absolute {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    transform: translateY(-50%) !important;
    width: 55% !important;
    max-width: 55% !important;
    margin-top: 0 !important;
    margin-left: 10px !important;
    padding: 4px 1 !important;
    z-index: 10 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    background: white !important;
  }

  .mission-title {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
  }

  .mission-text {
    font-size: 8px !important;
    line-height: 1.6 !important;
  }

  .deliver-section,
  .why-choose-section {
    padding: 2rem 1rem !important;
  }

  /* Section headers on mobile */
  .deliver-section .text-center,
  .why-choose-section .text-center {
    margin-bottom: 1.5rem !important;
  }

  .section-title {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }

  .section-subtitle {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    padding: 0 0.5rem !important;
  }

  /* Service boxes - single column on mobile */
  .deliver-section .grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .service-box {
    padding: 0.75rem !important;
    flex-direction: row !important;
    gap: 1rem !important;
    min-height: auto !important;
  }

  .service-box svg {
    width: 2.5rem !important;
    height: 2.5rem !important;
    flex-shrink: 0 !important;
  }

  .service-box p {
    line-height: 1.5 !important;
    margin: 0 !important;
  }

  /* Value boxes - single column on mobile */
  .why-choose-section .grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* .value-box {
    padding: 1.25rem !important;
  } */

  .value-box .w-14 {
    width: 3rem !important;
    height: 3rem !important;
  }

  .value-box svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
  }

  .value-box h3 {
    font-size: 1.125rem !important;
  }

  .value-box p {
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
  }

  /* Ensure proper spacing between sections on mobile */
  .mission-section,
  .deliver-section,
  .why-choose-section {
    margin-bottom: 0 !important;
  }

  /* Icon in section header */
  .deliver-section .text-4xl {
    font-size: 1.6rem !important;
  }

}

/* Tablet (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  /* Sidebar styles are shared from responsive.css */

  .about-hero {
    min-height: 70vh !important;
    max-height: 70vh !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  #main-content .header {
    margin: 1rem auto 0 auto !important;
    padding: 6px 10px !important;
    width: 100% !important;
  }

  .about-hero .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    padding: 0 1.5rem !important;
  }

  .about-hero .hero-subtitle {
    font-size: 1rem !important;
    padding: 0 1.5rem !important;
    line-height: 1.6 !important;
  }

  /* Mission section - tablet layout: image 60% right, text centered on left */
  .mission-section {
    padding: 0rem !important;
    overflow: visible !important;
  }

  .mission-section .max-w-7xl {
    padding: 0 !important;
  }

  .mission-section .relative {
    min-height: 400px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Image container - 60% width, right-aligned */
  .mission-section .relative > div:first-child {
    width: 60% !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    z-index: 1 !important;
  }

  .mission-section img {
    height: 400px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center right !important;
  }

  /* Text container - centered on left side of image */
  .mission-section .relative .absolute {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    transform: translateY(-50%) !important;
    width: 45% !important;
    max-width: 45% !important;
    margin-left: 1rem !important;
    padding: 1.5rem !important;
    z-index: 10 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    background: white !important;
    border-radius: 12px !important;
  }

  .mission-title {
    font-size: 1.75rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
  }

  .mission-text {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }

  .deliver-section,
  .why-choose-section {
    padding: 2.5rem 1.5rem !important;
  }

  .section-title {
    font-size: 1.875rem !important;
    margin-bottom: 0.875rem !important;
    line-height: 1.2 !important;
  }

  .section-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  .service-box,
  .value-box {
    padding: 1.5rem !important;
  }

  .service-box h3,
  .value-box h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.5rem !important;
  }

  .service-box p,
  .value-box p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }
}

/* Larger Tablet / Small Desktop (769px - 1240px) */
@media (min-width: 769px) and (max-width: 1240px) {
  .about-hero {
    min-height: 75vh !important;
    max-height: 75vh !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  #main-content .header {
    margin: 1rem auto 0 auto !important;
    width: 95% !important;
  }

  .about-hero .hero-title {
    font-size: 3.5rem !important;
    line-height: 1.1 !important;
  }

  .about-hero .hero-subtitle {
    font-size: 1.125rem !important;
    padding: 0 2rem !important;
  }

  .mission-section {
    padding: 4rem 2rem !important;
  }

  .mission-title {
    font-size: 2.5rem !important;
  }

  .mission-text {
    font-size: 1.125rem !important;
  }

  .deliver-section,
  .why-choose-section {
    padding: 4rem 2rem !important;
  }

  .section-title {
    font-size: 2.5rem !important;
  }

  .section-subtitle {
    font-size: 1rem !important;
  }

  .service-box,
  .value-box {
    padding: 2rem !important;
  }

  .service-box h3,
  .value-box h3 {
    font-size: 1.5rem !important;
  }

  .service-box p,
  .value-box p {
    font-size: 1rem !important;
  }
}

/* Desktop (1241px - 1440px) */
@media (min-width: 1241px) and (max-width: 1440px) {
  .about-hero {
    min-height: 80vh !important;
    max-height: 80vh !important;
  }

  .about-hero .hero-title {
    font-size: 4rem !important;
    line-height: 1.1 !important;
  }

  .about-hero .hero-subtitle {
    font-size: 1.25rem !important;
  }

  .mission-section {
    padding: 0 3rem !important;
  }

  .mission-title {
    font-size: 3rem !important;
  }

  .mission-text {
    font-size: 1.25rem !important;
  }

  .deliver-section,
  .why-choose-section {
    padding: 5rem 3rem !important;
  }

  .section-title {
    font-size: 3rem !important;
  }

  .section-subtitle {
    font-size: 1.125rem !important;
  }
}

/* Extra Large Desktop (> 1440px) */
@media (min-width: 1441px) {
  .about-hero {
    min-height: 85vh !important;
    max-height: 85vh !important;
  }

  .about-hero .hero-title {
    font-size: 4.5rem !important;
    line-height: 1.1 !important;
  }

  .about-hero .hero-subtitle {
    font-size: 1.375rem !important;
  }

  .mission-title {
    font-size: 3.5rem !important;
  }

  .mission-text {
    font-size: 1.375rem !important;
  }

  .deliver-section,
  .why-choose-section {
    padding: 6rem 4rem !important;
  }

  .section-title {
    font-size: 3.5rem !important;
  }

  .section-subtitle {
    font-size: 1.25rem !important;
  }
}

