/* About Section */
#about {
  padding: 0px;
  width: 100%;
  border-top: 0px solid #f9f9f9;
}

/* BANNER */
.about-image {  
  position: relative;
  width: 100%;
  height: 20vh; /* Height of the header image */
  min-height: 300px;
  background-size: cover;
  background-position: center;

  /* Fade top + bottom */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
}

/* Banner overlay container */
.about-image .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay to make text stand out */
  text-align: center;
  padding: 0 20px;
}

.about-image .overlay .overlay-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.2em;
  font-weight: 900;
  margin-bottom: 10px;
  color: #B19784;
  margin-right: 30%; /* Moves the title to the right */
}

.about-image .overlay h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.about-image .overlay p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto;
}

/* Content below */
.about-content {
  padding: 40px 60px;      /* This is where the content window size is being controlled */
  background-color: #f9f9f9;
}

.about-content h2 {
  font-size: 2.2em;
  margin-top: 20px;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-block_4x4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 20px;
  padding: 0;
  margin: 0 auto; /* centerally align colums */
  max-width: 80%; /* consume 80% of the screen */
}

.about-block-item {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  overflow: hidden
}

.about-block-item img {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  cursor: pointer; 
}
.about-block-item:hover img {
}

.about-block-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.about-block-item p {
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 168px) {
  .about-block_4x4 {
    grid-template-columns: 1fr;
    max-width: 80%;
  }
}

.about-block-outer-container {
    width: 100%;
    max-width: 80%;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    background-color: #f9f9f9;
}

/* Scoped image styling for image wihtin the 'about' section */
.about-content .section-block-image {
  display: block;
  max-width: 600px; /*45% max */
  min-width: 310px; 
  width: 100%;
  height: auto;
  margin: 1rem auto; /* centers horizontally */
  border: 2px solid #ddd;   /* border color & thickness */
  border-radius: 8px;       /* slightly rounded corners */
  transition: transform 0.3s ease;
}

.about-content .section-block-image:hover {
  transform: scale(1.1); /* Zoom in 10% on hover */
}

.about-content .picword-icon  {
  transition: transform 0.3s ease;
}

.about-content .picword-icon:hover  {
  transform: scale(1.1); /* Zoom in 10% on hover */
}

.about-content .picword-text  {
  font-size: 1.2rem;
}

.about-content .picword-title {
  font-size: 1.5rem;
  margin-top: 5px;
  margin-bottom: 5px;
  text-align: center;
  line-height: 1.1;
}

/* Wrapper container for the images */
.image-plus-wrapper {
  display: flex;
  gap: 1rem;
  justify-content: center; /* Centers the images */
  flex-wrap: wrap; /* Ensures images stack on smaller screens */
  overflow: hidden; /* Prevents images from overflowing */
  width: 100%; /* Ensure it fills the container */
}

/* Image styling */
.image-plus {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease-in-out; /* Smooth zoom effect */
  object-fit: cover; /* Ensures the image covers the container without stretching */
  border-radius: 8px; /* Optional: adds rounded corners */
}

.image-plus-wrapper a {
  display: block;
  overflow: hidden; /* Ensure anchor respects container bounds */
}

.image-plus:hover {
  transform: scale(1.05); /* Zoom in slightly to avoid overflow */
}
