.pilar{
  padding: 0px;
}

.pilar h2{
  font-size: 25px;
}

/* Styling for the title */
.pilar-title {
    text-align: center;
    background-color: #412B6C;
    color: white;
    padding: 10px; /* Space around the text */
    margin: 0 auto 0px auto; /* Center title with a margin */
    font-family: "Raleway", sans-serif;
    border-radius: 20px 20px 0 0 ;
  }

/* New Horizontal grid for pilar section */
.new-horizontal-grid {
    display: flex;
    justify-content: space-between;
    margin-top: -20px; /* Margin from the carousel */
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    background-color:  #412B6C;
    padding-bottom: 0; /* Remove padding from the bottom if there is any */
    border-radius: 0 0 20px 20px;
  }
  
  .new-pilar-section > div {
    flex: 1;
    margin: 10px;
  }
  
  .new-pilar-item {
    display: flex;
    flex-direction: column; /* Stack image and text vertically */
    align-items: center;
    margin-bottom: 20px;
    box-sizing: border-box; /* Ensure padding and border are included in width calculations */
    overflow: hidden; /* Hide any overflow content */
  }
  
  .pilar-image {
    width: 100%; /* Adjust the width as needed */
    height: 100%;
    border-radius: 0px; /* Rounded corners for images */
    margin-bottom: 10px; /* Space between image and content */
    transition: transform 0.3s ease;
  }

  .pilar-image[src="pilar1.jpeg"]{
    padding-bottom: 10.5%;
  }

  .pilar-image[src="pilar3.jpeg"]{
    padding-bottom: 5%;
  }

  .pilar-image:hover[src="pilar1.jpeg"]{
    transform: scale(1.07); /* Subtle zoom effect on hover */
}

  .pilar-image:hover {
    transform: scale(1.05); /* Subtle zoom effect on hover */
}
  
  .pilar-content {
    padding: 5px;
    text-align: center;
  }
  
  .pilar-content h3 {
    color: white; /* Title color */
    margin-top: 0;
    font-weight: normal;
    font-size: 20px;
    font-family: "Quicksand", sans-serif;
  }
  
  /* Responsive Styles */
  /* Responsive Styles for 900px or less */
@media only screen and (max-width: 900px) {
  .new-horizontal-grid {
      display: grid;
      grid-template-columns: 1fr 1fr; /* Two columns */
      gap: 5px;
      padding: 0px;
  }

  .new-pilar-section > div {
      margin: 10px;
  }

  .new-pilar-item {
      display: flex;
      flex-direction: column; /* Stack image and text vertically */
      align-items: center;
      margin-bottom: 20px;
      box-sizing: border-box; /* Ensure padding and border are included in width calculations */
      overflow: hidden; /* Hide any overflow content */
  }

  .new-pilar-item:nth-child(odd) {
      grid-column: 1; /* Place odd items in the first column */
  }

  .new-pilar-item:nth-child(even) {
      grid-column: 2; /* Place even items in the second column */
  }

  .pilar-image {
      width: 100%; /* Full width for smaller screens */
      height: 100%;
      margin-bottom: 10px; /* Space between image and content */
  }

  .pilar-content {
      width: 100%; /* Ensure full width for content below the image */
      text-align: center;
  }
}

@media (max-width: 660px) {
  .pilar-content h3{
    font-size: 12px;
  }

  .pilar h2{
    font-size: 18px;
  }  
}

@media (max-width: 450px) {
  .pilar-content h3{
    font-size: 8px;
  }
}

@media (max-width: 350px) {
  .pilar h2{
    font-size: 15px;
  }
}

.attribution-link2 {
  position: absolute; /* Position the link absolutely within the container */
  bottom: 55px; /* Position it 10px from the bottom */
  right: 5px; /* Position it 10px from the right */
  color: white; /* Text color */
  background: rgba(0, 0, 0, 0); /* Semi-transparent background for contrast */
  padding: 3px 5px; /* Padding around the text */
  border-radius: 3px; /* Rounded corners */
  font-size: 6px; /* Font size */
  text-decoration: none; /* Remove underline */
  z-index: 2; /* Ensure it appears above the image */
}

@media (max-width: 660px){
  .attribution-link2{
    bottom: 40px;
    font-size: 5px;
  }
}

@media (max-width: 400px){
  .attribution-link2{
    bottom: 40px;
    font-size: 2px;
  }
}
