/* Custom CSS for Mission Section */

#mission.has-background-color-white {
    background-color: #ffffff;
    padding: 100px 0;
    font-family: 'Poppins', sans-serif;
}

#mission .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
}

#mission .items {
    display: flex;
    gap: 80px;
    align-items: center;
}

/* The class is image-left, but the DOM has text first, so we reverse the order */
#mission .items.image-left .media-flow {
    order: -1;
}

#mission .item {
    flex: 1;
    min-width: 0;
    /* Prevents flex blowout */
}

#mission .media-flow .image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    /* Matches the slightly rounded corners in the screenshot */
    display: block;
}

#mission .text-flow h2 {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: #0f172a;
    /* Very dark slate as seen in screenshot */
    margin-bottom: 25px;
    margin-top: 0;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

#mission .text-flow p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
    /* Slate grayish color */
    margin-bottom: 25px;
    text-align: justify;
    text-justify: inter-word;
}

#mission .text-flow p:last-child {
    margin-bottom: 0;
}

#mission .text-flow b {
    font-weight: 700;
    color: #0b0f19;
    /* Make bold text darker */
}

/* Responsive Design */
@media (max-width: 992px) {
    #mission .items {
        gap: 50px;
    }

    #mission .text-flow h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    #mission.has-background-color-white {
        padding: 60px 0;
    }

    #mission .items {
        flex-direction: column;
        gap: 40px;
    }

    #mission .items.image-left .media-flow {
        order: -1;
        /* Image first on mobile too */
    }

    #mission .text-flow h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    #mission .text-flow p {
        font-size: 1rem;
    }
}


/* ---------------------------------
   Web Presence Section
   --------------------------------- */

#web-presence {
    background-color: #f1f5f9;
    /* Light slate/blue background */
    font-family: 'Poppins', sans-serif;
}

#web-presence .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
}

#web-presence .se-head {
    margin-bottom: 40px;
}

#web-presence .se-kicker {
    font-size: 1.1rem;
    color: #2563eb;
    /* Blue kicker */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

#web-presence .se-title {
    font-size: 3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

#web-presence .map-wrapper {
    background: linear-gradient(135deg, #091120 0%, #0d1a33 100%);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(11, 26, 64, 0.2);
    overflow: hidden;
    padding: 10px;
}

#web-presence #map {
    width: 100%;
}

/* ---------------------------------
   Our History Section
   --------------------------------- */
#our-history {
    background-color: #e6f4f8;
    /* Match dark theme body background */
    padding: 80px 0;
    font-family: 'Poppins', sans-serif;
}

#our-history .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
}

#our-history .history-header {
    position: relative;
    margin-bottom: 50px;
}

#our-history .history-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0b1a40;
    text-align: center;
    margin: 0;
}

#our-history .history-nav {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 10px;
}

#our-history .hist-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

#our-history .hist-btn:hover {
    background-color: #2563eb;
    color: #ffffff;
}

#our-history .history-slider-wrapper {
    overflow: hidden;
    position: relative;
    margin: 0 -15px;
    padding: 0 15px;
}

#our-history .history-slider {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-bottom: 30px;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#our-history .history-slider::-webkit-scrollbar {
    display: none;
}

#our-history .history-card {
    min-width: 320px;
    max-width: 320px;
    background-color: #5E99BF;
    border: none;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    flex: 0 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


#our-history .history-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
}

#our-history .history-card p {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    #our-history .history-nav {
        position: static;
        justify-content: center;
        margin-top: 25px;
    }
} 
    .hero-aboutus {
      /* Light theme colors */
      --background: 0 0% 100%;
      --foreground: 222.2 84% 4.9%;
      --muted: 210 40% 96.1%;
      --muted-foreground: 215.4 16.3% 46.9%;
      --primary: 222.2 47.4% 11.2%;
      --primary-foreground: 210 40% 98%;

      font-family: 'Poppins', sans-serif;
      background-image: linear-gradient(rgba(250, 250, 250, 0.65), rgba(250, 250, 250, 0.65)), url('../images/features-bg.png');
      background-size: cover;
      background-position: center top;
      background-repeat: no-repeat;
      color: hsl(var(--foreground));
      line-height: 1.5;
      width: 100%;
      overflow: hidden;
      padding-top: 8rem;
      padding-bottom: 3rem;
      box-sizing: border-box;
    }

    .hero-aboutus *, .hero-aboutus *::before, .hero-aboutus *::after {
      box-sizing: border-box;
    }

    @media (min-width: 640px) {
      .hero-aboutus {
        padding-top: 12rem;
        padding-bottom: 6rem;
      }
    }

    .hero-aboutus-container {
      width: 100%;
      margin-left: auto;
      margin-right: auto;
      padding-left: 1rem;
      padding-right: 1rem;
      display: grid;
      grid-template-columns: 1fr;
      align-items: center;
      gap: 3rem;
    }

    @media (min-width: 640px) {
      .hero-aboutus-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
      }
    }

    @media (min-width: 1024px) {
      .hero-aboutus-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
        max-width: 1024px;
      }
    }
    
    @media (min-width: 1280px) {
      .hero-aboutus-container {
        max-width: 1280px;
      }
    }

    @media (min-width: 1600px) {
      .hero-aboutus-container {
        max-width: 1600px;
      }
    }

    /* Text Column Styles */
    .hero-aboutus-text-column {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    @media (min-width: 1024px) {
      .hero-aboutus-text-column {
        align-items: flex-start;
        text-align: left;
      }
    }

    .hero-aboutus-title {
      font-size: 2.5rem;
      font-weight: 800;
      font-family: 'Poppins', sans-serif;
      letter-spacing: -0.025em;
      line-height: 1.2;
      color: #0f172a;
      margin: 0;
    }

    @media (min-width: 640px) {
      .hero-aboutus-title {
        font-size: 3.75rem;
        line-height: 1.15;
      }
    }

    .hero-aboutus-subtitle {
      margin-top: 1.5rem;
      margin-bottom: 0;
      max-width: 28rem;
      font-size: 1.125rem;
      color: hsl(var(--muted-foreground));
    }

    /* Action Buttons */
    .hero-aboutus-actions {
      margin-top: 2rem;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 1rem;
    }

    @media (min-width: 1024px) {
      .hero-aboutus-actions {
        justify-content: flex-start;
      }
    }

    .hero-aboutus-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      white-space: nowrap;
      border-radius: 0.375rem;
      font-size: 0.875rem;
      font-weight: 500;
      height: 2.75rem;
      padding-left: 2rem;
      padding-right: 2rem;
      cursor: pointer;
      border: none;
      font-family: inherit;
      transition: background-color 0.2s, color 0.2s;
      text-decoration: none;
    }

    .hero-aboutus-btn-primary {
      background-color: #0b5edd; /* CloudMate Primary Blue */
      color: #ffffff;
      border: 2px solid #0b5edd;
    }

    .hero-aboutus-btn-primary:hover {
      background-color: #0848ab; /* Darker blue */
      border-color: #0848ab;
      color: #ffffff;
      opacity: 1;
    }

    .hero-aboutus-btn-outline {
      border: 2px solid #cbd5e1;
      background-color: transparent;
      color: hsl(var(--foreground));
    }

    .hero-aboutus-btn-outline:hover {
      background-color: #f1f5f9; /* Light gray background */
      border-color: #94a3b8;
      color: hsl(var(--foreground));
      opacity: 1;
    }

    /* Stats Section */
    .hero-aboutus-stats {
      margin-top: 3rem;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 2rem;
    }

    @media (min-width: 1024px) {
      .hero-aboutus-stats {
        justify-content: flex-start;
      }
    }

    .hero-aboutus-stat-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .hero-aboutus-stat-icon-wrapper {
      display: flex;
      height: 2.5rem;
      width: 2.5rem;
      align-items: center;
      justify-content: center;
      border-radius: 9999px;
      background-color: hsl(var(--muted));
    }

    .hero-aboutus-stat-icon-wrapper svg {
      height: 1.25rem;
      width: 1.25rem;
      color: hsl(var(--muted-foreground));
    }

    .hero-aboutus-stat-text {
      text-align: left;
    }

    .hero-aboutus-stat-value {
      font-size: 1.25rem;
      font-weight: 700;
      color: hsl(var(--foreground));
      margin: 0;
    }

    .hero-aboutus-stat-label {
      font-size: 0.875rem;
      color: hsl(var(--muted-foreground));
      margin: 0;
    }

    /* Image Collage Column */
    .hero-aboutus-image-column {
      position: relative;
      height: 400px;
      width: 100%;
      max-width: 450px;
      margin: 0 auto;
    }

    @media (min-width: 640px) {
      .hero-aboutus-image-column {
        height: 520px;
        max-width: 520px;
      }
    }

    @media (min-width: 1280px) {
      .hero-aboutus-image-column {
        height: 550px;
        max-width: 580px; /* Just slightly larger than 520px */
        margin: 0 auto 0 1.5rem; /* Shifting slightly left towards text to reduce middle gap */
      }
    }

    /* Decorative Shapes and Animation */
    @keyframes hero-aboutus-bounce {
      0%, 100% { transform: translateY(-15%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
      50% { transform: translateY(0); animation-timing-function: cubic-bezier(0,0,0.2,1); }
    }

    .hero-aboutus-shape {
      position: absolute;
      border-radius: 9999px;
    }

    .hero-aboutus-shape-1 {
      top: -1rem;
      left: 25%;
      height: 4rem;
      width: 4rem;
      background-color: rgba(191, 219, 254, 0.2);
      animation: hero-aboutus-bounce 3s infinite;
    }

    .hero-aboutus-shape-2 {
      bottom: 0;
      right: 25%;
      height: 3rem;
      width: 3rem;
      background-color: rgba(233, 213, 255, 0.2);
      animation: hero-aboutus-bounce 3.5s infinite;
      animation-delay: 0.5s;
      border-radius: 0.5rem;
    }

    .hero-aboutus-shape-3 {
      bottom: 25%;
      left: 1rem;
      height: 1.5rem;
      width: 1.5rem;
      background-color: rgba(187, 247, 208, 0.2);
      animation: hero-aboutus-bounce 4s infinite;
      animation-delay: 1s;
    }

    /* Images */
    .hero-aboutus-img-wrapper {
      position: absolute;
      background-color: hsl(var(--muted));
      padding: 0.5rem;
      border-radius: 1rem;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
      transition: transform 0.5s ease;
    }

    .hero-aboutus-img-wrapper:hover {
      transform: scale(1.05);
      z-index: 10;
    }

    .hero-aboutus-img {
      height: 100%;
      width: 100%;
      border-radius: 0.75rem;
      object-fit: cover;
      display: block;
    }

    .hero-aboutus-img-1 {
      left: 50%;
      top: 0;
      height: 12rem;
      width: 12rem;
      margin-left: -6rem; /* manual fallback for translate-x-1/2 */
      transform-origin: bottom center;
    }
    
    .hero-aboutus-img-1:hover {
      transform: scale(1.05);
    }

    @media (min-width: 640px) {
      .hero-aboutus-img-1 {
        height: 258px; /* 16rem + 2px */
        width: 258px;
        margin-left: -129px;
      }
    }

    @media (min-width: 1280px) {
      .hero-aboutus-img-1 {
        height: 290px; /* 18rem (288px) + 2px */
        width: 290px;
        margin-left: -145px;
      }
    }

    .hero-aboutus-img-2 {
      right: 0;
      top: 33.333333%;
      height: 10rem;
      width: 10rem;
      transform-origin: left center;
    }

    @media (min-width: 640px) {
      .hero-aboutus-img-2 {
        height: 226px; /* 14rem + 2px */
        width: 226px;
      }
    }

    @media (min-width: 1280px) {
      .hero-aboutus-img-2 {
        height: 250px; /* 15.5rem (248px) + 2px */
        width: 250px;
        top: 32%;
      }
    }

    .hero-aboutus-img-3 {
      bottom: 0;
      left: 0;
      height: 8rem;
      width: 8rem;
      transform-origin: top right;
    }

    @media (min-width: 640px) {
      .hero-aboutus-img-3 {
        height: 194px; /* 12rem + 2px */
        width: 194px;
      }
    }

    @media (min-width: 1280px) {
      .hero-aboutus-img-3 {
        height: 218px; /* 13.5rem (216px) + 2px */
        width: 218px;
      }
    }

