html,
body {
      height: 100%;
      display: flex;
      flex-direction: column;
}

.CONTAINER5 {
      flex: 1;
}

/* Section Styling */
.research-section {
      padding: 24px 1px;
      background-color: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      max-width: 1200px;
      margin: auto;
}

/* Section Heading */
.section-heading {
      text-align: center;
      margin-bottom: 40px;
}

.section-heading h1 {
      font-size: 2.5rem;
      color: #222;
}

.section-heading p {
      font-size: 1.2rem;
      color: #555;
      margin-top: 10px;
}

/* Research Grid */
.research-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 40px;
}

/* Research Item */
.research-item {
      background-color: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      transition: transform 0.3s ease-in-out;
}

.research-item:hover {
      transform: translateY(-10px);
}

.research-item img {
      width: 100%;
      height: auto;
      display: block;
      object-fit: cover;
}

.research-item h2 {
      font-size: 1.8rem;
      padding: 20px;
      background-color: #0077b6;
      color: #fff;
}

.research-item p {
      padding: 20px;
      font-size: 1rem;
      color: #333;
      line-height: 1.6;
}

/* Responsive Design */
@media (min-width: 600px) {
      .research-grid {
            grid-template-columns: repeat(2, 1fr);
      }
}

@media (min-width: 900px) {
      .research-grid {
            grid-template-columns: repeat(3, 1fr);
      }

      .section-heading h1 {
            font-size: 2.3rem;
      }

      .section-heading p {
            font-size: 1.5rem;
      }

      .research-item h2 {
            font-size: 2rem;
      }

      .research-item p {
            font-size: 1.1rem;
      }
}



/* Updated image styling for larger display */
.research-item img {
      width: 100%;
      height: 300px;
      /* Sets a uniform height for all images */
      object-fit: cover;
      /* Ensures the image is cropped proportionally to fill the area */
      display: block;
      border-bottom: 4px solid #0077b6;
      /* Adds a border for a more defined look */
}

@media (min-width: 900px) {
      .research-item img {
            height: 400px;
            /* Increase image height for larger screens */
      }
}


/* Updated grid layout for two images per row */
.research-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      /* Ensures two items per row */
      gap: 40px;
      /* Adds space between the items */
}

/* For smaller screens, revert to a single-column layout */
@media (max-width: 768px) {
      .research-grid {
            grid-template-columns: 1fr;
            /* Single column for mobile screens */
      }
}


/* General section styling */
#comp-l6v0rowo1 {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      /* Distributes images evenly */
      align-items: center;
      padding: 1px;
}

#comp-l6v0rowo1 h2 {
      font-size: 2rem;
      text-align: center;
      width: 100%;
      margin-bottom: 20px;
}

/* Image container styling */
#comp-l6v0rowo1 .MazNVa {
      flex: 1 1 auto;
      max-width: 20%;
      /* Makes sure the images are a uniform width */
      padding: 0 10px;
      box-sizing: border-box;
}

/* Image styling for full responsiveness */
#comp-l6v0rowo1 .MazNVa img {
      width: 100%;
      /* Makes the images fill their container */
      height: auto;
      /* Keeps the aspect ratio */
      display: block;
}

/* Responsive design for tablets */
@media (max-width: 768px) {
      #comp-l6v0rowo1 {
            flex-wrap: wrap;
            /* Stacks images if there's no space */
            justify-content: center;
      }

      #comp-l6v0rowo1 .MazNVa {
            max-width: 45%;
            /* Show 2 images per row on tablets */
      }
}

/* Responsive design for mobile devices */
@media (max-width: 480px) {
      #comp-l6v0rowo1 .MazNVa {
            max-width: 100%;
            /* Stacks images vertically for small screens */
            padding: 5px 0;
      }

      #comp-l6v0rowo1 h2 {
            font-size: 1.2rem;
            padding: 1px;
      }
}

 /* Container for the merged research items */
 .merged-research-item {
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px;
      text-align: center;
      background-color: #f9f9f9;
      border: 1px solid #ddd;
      border-radius: 8px;
}

/* Shared heading */
.merged-research-item h2 {
      font-size: 2rem;
      margin-bottom: 20px;
      color: #333;
}

/* Wrapper for the research items */
.content-wrapper {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      /* gap: 20px; */
}

/* Individual research items */
.research-item {
      flex: 1 1 calc(50% - 20px);
      background-color: #fff;
      padding: 15px;
      border: 1px solid #ccc;
      border-radius: 8px;
      text-align: center;
}

.research-item img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
}

.research-item p {
      margin-top: 10px;
      font-size: 1rem;
      color: #555;
}

/* Responsive design */
@media (max-width: 768px) {
      .content-wrapper {
            flex-direction: column;
      }

      .research-item {
            flex: 1 1 100%;
      }

      .merged-research-item h2 {
            font-size: 1.5rem;
      }
}

@media (max-width: 480px) {
      .merged-research-item h2 {
            font-size: 1.2rem;
      }

      .research-item p {
            font-size: 0.9rem;
      }
}
