* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  
  .button-5 {
    align-items: center;
    background-clip: padding-box;
    background-color: #e88b22;
    border: 1px solid transparent;
    border-radius: .25rem;
    box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-family: "Red Hat Display", sans-serif;
    font-size: 16px;
    font-weight: 600;
    justify-content: center;
    line-height: 1.25;
    margin: 0;
    min-height: 3rem;
    padding: calc(.875rem - 1px) calc(1.5rem - 1px);
    position: relative;
    text-decoration: none;
    transition: all 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    width: auto;
  }
  
  .button-5:hover,
  .button-5:focus {
    background-color: #e88b22;
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
  }
  
  .button-5:hover {
    transform: translateY(-1px);
  }
  
  .button-5:active {
    background-color: #e88b22;
    box-shadow: rgba(0, 0, 0, .06) 0 2px 4px;
    transform: translateY(0);
  }
  .head {
    position: sticky;
    top: 0;
  }
  .about-mara-depth p,
  strong,
  h3,
  span,
  b,
  ul,
  li,
  h2 {
    color: white;
  
    line-height: 1.5;
  }
  .explores mat-card {
    margin-left: 15.55px;
  }
  .about-mara-depth span {
    max-lines: 4;
  }
  .explores {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  .explores p {
    font-weight: bolder;
  }
  .explores mat-card button {
    background-color: rgb(232, 139, 34);
    color: white;
    width: max-content;
    margin: 5px;
  }
  .explores mat-card p {
    padding: 15px;
  }
  section{
  margin-top: 10px;
  }
  h1 {
    text-align: center;
  }
  .explores img {
    width: 100%;
  }
  li {
    padding-top: 22px;
  }
  .about-mara-depth {
    /* margin-top: 10px; */
    min-width: 100%;
    max-width: 100vw;
    background: #232526; /* fallback for old browsers */
    background: -webkit-linear-gradient(
      to right,
      #414345,
      #232526
    ); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(
      to right,
      #414345,
      #232526
    ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  }
  .about-mara-depth mat-card {
    background: #232526; /* fallback for old browsers */
    background: -webkit-linear-gradient(
      to right,
      #414345,
      #232526
    ); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(
      to right,
      #414345,
      #232526
    ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  
    display: flex;
    flex-direction: row;
  }
  .about-mara-depth mat-card mat-card-content {
    margin-left: 15px;
  }
  .about-mara-depth h1 {
    text-align: center;
    color: white;
  }
  .about-mara-depth img {
    width: 550px;
  }
  mat-card-header {
    padding: 0; /* Remove default Angular Material padding */
    overflow: hidden; /* Prevent content spilling out */
  }
  
  mat-card-header img.img-big {
    width: 100%;
    height: 100vh; /* Fix a consistent height relative to viewport */
    object-fit: cover; /* Ensures the image scales and crops nicely */
  }
  
  
  .card{
    width: 100vw;
  margin: 0;
  
  }
  .content-galleria {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
  
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* title top, button bottom */
    align-items: center;
  
    min-height: 220px;   /* <-- set consistent height */
    max-width: 90%;      /* keep it from overflowing */
  }
  
  .content-galleria h1 {
    font-size: 1.125rem;
  
    line-height: 1.75rem;
    margin: 0;
    word-wrap: break-word;
    text-align: center;
  }
  
  .content-galleria .button-5 {
    margin-top: auto; /* ensures button sticks to bottom */
  }
  
  
  .main-caption {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
  }
  
  .sub-caption {
    font-size: 1.35rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  }
  
  mat-card-header img {
    filter: brightness(70%);
  }
  
  ng-template{
  text-align: center;
  }
  
  
  .about-mara {
    max-width: 1200px;
    margin: 20px auto  auto;
    padding: 40px 20px;
    line-height: 1.8;
    font-size: 16.5px;
    text-align: center;
    color: #333;
    text-align: center;
  }
  .about-mara h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
  }
  .about-mara p{
  text-align: center;
  }
  .about-mara-depth mat-card mat-card-content {
    margin-left: 0px;
  }
  .about-mara {
    background-color: rgb(255, 255, 255);
    text-align: left;
    align-items: center;
    margin-left: 30px;
    margin-right: 30px;
  }
  
  @media (max-width: 768px) {
    .about-mara {
      margin-left: 0;
      margin-right: 0;
      padding-left: 6px;
      padding-right: 6px;
      margin-top: auto; /* Adjust this value as needed */
     
    }
   
    .content-galleria h1 {
      font-size: 1rem;        /* responsive size already in your media query */
      line-height: 1.3;
      margin-bottom: auto;    /* Pushes the button down */
      max-width: 90%;         /* Keeps long titles from overflowing */
      word-wrap: break-word;  /* Wraps long words */
    }
    
    mat-card-header {
      max-height: 70vh; /* shorter on small screens */
    }
  
    .about-mara-depth img {
      width: 100%;
    }
    .explores {
      min-width: 100vw;
      flex-direction: column;
      flex-wrap: wrap;
    }
    .explores mat-card {
      margin: 7.5px;
    }
    .explores mat-card button {
      width: fit-content;
      margin-left: 2;
    }
    .about-mara h1,
    p {
      padding-top: 2px;
      padding-bottom: 2px;
    }
    .about-mara-depth mat-card {
      display: flex;
      flex-direction: column;
      flex-wrap: wrap;
    }
  }
  
  @media (min-width: 801px) and (max-width: 860px) {
    p,
    h1,
    h2,
    strong {
      padding-left: 10px;
      padding-right: 10px;
    }
    .about-mara {
      margin-left: 0;
      margin-right: 0;
      padding-left: 6px;
      padding-right: 6px;
    }
    mat-card mat-card-header {
      height: 45vh;
    }
    .explores mat-card {
      padding: 0;
      margin-left: 5px;
    }
    .about-mara-depth {
      width: 100vw;
    }
    .about-mara-depth mat-card mat-card-content {
      width: 100vw;
      margin: 0px;
    }
  
    .about-mara-depth mat-card mat-card-content {
      margin-left: 0;
    }
    .explores {
      margin: 0;
      padding: 0;
      width: 100vw;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: 1fr;
    }
  }
  