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

/* About Us Section */
.about-us {
    position: relative;
    width: 100%;
    height: 65vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('about-us-bg.jpg'); /* Change this to your image URL */
}

/* About Us Wrapper */
.about-us-wrapper {
    position: relative;
    width: 100%;
    max-width: 80%;
    min-width: 350px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Add padding to prevent box from touching edges */
}

/* About Us Board (Black Box) */
.about-us-board {
    position: relative;
    background-color: rgba(0, 0, 0, 0.5); /* Black color with 80% opacity */
    padding: 20px; /* Space for white border */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    box-sizing: border-box;
    z-index: 10; /* Ensure it is in front of images */
    min-width: 350px; /* Ensure the black box respects the minimum width */
}

/* About Us Heading */
.about-us-heading h2 {
    font-weight: 600; /* Bold for the heading */
    /* Other styles for the heading */
}

.about-body p {
    font-weight: 500; /* Slightly less bold than the heading */
}

/* Inner Board (White Box) */
.inner-board {
    width: 100%; /* Take full width of the black box minus padding */
    max-width: 800px; /* Set max width to ensure the white box doesn't grow too large */
    padding: 20px;
    background-color: black;
    border: 3px solid white; /* White border inside the black box */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    box-sizing: border-box;
    border-radius: 10px;
    z-index: 20; /* Ensure it is in front of the black box */
}

/* About Us Images */
.about-us img {
    position: absolute;
    width: 150px;
    height: 150px;
    object-fit: cover;
    z-index: 25; /* Ensure images are behind the box */
}

.about-us .about-us-1 {
    top: -10%;
    left: -10%;
}

.about-us .about-us-2 {
    bottom: -10%;
    right: -10%;
}


/* Extra small devices (phones) */
@media (max-width: 375px) {
    /* Styles for extra small devices */
        .about-us img {
        display: none;
    }

    .about-us {
       height: 120vh;
    }

  .about-us-board {
        width: 90%;
        max-width: 90%;
        height: auto;
        padding: 20px;
    }
    .inner-board {
        width: 100%;
        height: auto;
        border: 2px solid white;
        padding: 15px;
    }
    .inner-board .heading h2 {
        font-size: 1.5em;
    }
}



/* Extra small devices (phones) */
@media (max-width: 480px) {
    /* Styles for extra small devices */
        .about-us img {
        display: none;
    }

    .about-us {
       height: 120vh;
    }

  .about-us-board {
        width: 90%;
        max-width: 90%;
        min-width: 344px; /* Ensure the minimum width on small screens */
        height: auto;
        padding: 20px;
    }
    .inner-board {
        width: 100%;
        height: auto;
        border: 2px solid white;
        padding: 15px;
    }
    .inner-board .heading h2 {
        font-size: 1.5em;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .about-us img {
        display: none;
    }

    .about-us-board {
        width: 90%;
        max-width: 90%;
        min-width: ; /* Ensure the minimum width on small screens */
        height: auto;
        padding: 20px;
    }
    .inner-board {
        width: 100%;
        height: auto;
        border: 2px solid white;
        padding: 15px;
    }
    .inner-board .heading h2 {
        font-size: 1.5em;
    }
}

@media (min-width: 769px) {

    .about-us-wrapper {
        padding: 20px; /* Adjust padding to be smaller on larger screens */
    }
    .about-us-board {
        padding: 30px; /* Padding to maintain spacing inside the black box */
    }
}


@media (max-width: 992px) {
    .about-us img {
        display: none;
    }

    /* Styles for medium devices */
        .about-us-board {
        width: 90%;
        max-width: 90%;
        min-width: 344px; /* Ensure the minimum width on small screens */
        height: auto;
        padding: 20px;
    }
    .inner-board {
        width: 100%;
        height: auto;
        border: 2px solid white;
        padding: 15px;
    }
}


@media (max-width: 540px) {

    .about-us img {
        display: none;
    }
    
    .about-us-board {
        width: 90%;
        max-width: 90%;
        min-width: 450px;
        height: auto;
        padding: 20px;
    }
    .inner-board {
        width: 100%;
        height: auto;
        border: 2px solid white;
        padding: 15px;
    }
}

@media (max-width: 430px) {

    .about-us img {
        display: none;
    }
    
    .about-us-board {
        width: 90%;
        max-width: 90%;
        min-width: 344px;
        height: auto;
        padding: 20px;
    }
    .inner-board {
        width: 100%;
        height: auto;
        border: 2px solid white;
        padding: 15px;
    }
}

/* Media query for max-height: 896px */
@media (max-height: 896px) {
  .about-us {
    height: 72vh;
  }
}

/* Media query for max-height: 896px */
@media (max-height: 896px) and (max-width: 414px) {
  .about-us {
    height: 100vh;
  }
}

/* Media query for max-height: 844px */
@media (max-height: 844px) {
  .about-us {
    height: 75vh;
  }
}

/* Media query for max-height: 844px */
@media (max-height: 844px) and (max-width: 414px) {
  .about-us {
    height: 110vh;
  }
}

/* Media query for max-height: 740px */
@media (max-height: 740px) {
  .about-us {
    height: 95vh;
  }
}

@media (max-height: 740px) and (max-width: 414px) {
  .about-us {
    height: 120vh;
  }
}

@media (max-height: 740px) and (max-width: 540px) {
  .about-us {
    height: 120vh;
  }
}


/* Media query for max-height: 667px */
@media (max-height: 667px) {
  .about-us {
    height: 150vh;
  }
}