/* Individual Signature Programs  page */

sigprograms.home-page {
    position: relative; /* Make sure the pseudo-element is correctly positioned */
  }
  
  body.sigprograms::before {
    content: '';
    background-image: url('../images/HalawaBay.jpg');
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top left;
    background-repeat: no-repeat;
    padding-top: 80px;
    /* opacity: 0.8; */
    z-index: -1;
}

.sigprograms-intro {
    max-width: 800px;
    margin: 2rem auto;   /*vertical 2rem, horizontal auto centers */
    margin-top: 2rem;
    padding: 1.5rem;
    /* background-color: #f8f8f8; */
    background-color: white;
    opacity: 0.8;
    border-radius: 12px;
    border: 2px solid black;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;  /* include padding/border in width */
  }
  
  @media (max-width: 768px) {
    .sigprograms-intro {
      margin-left: 0;
      margin-right: auto;
      flex: none;
      /* float: left;  optional: helps if inside flex/grid */
      width: 90vw;
      max-width: 400px;
      font-size: 1.3rem;
      box-sizing: border-box;
      text-align: left;
    }
  }
  
    .sigprograms-intro h2,
    .sigprograms-intro h3 {
     color: #967BB6;
    text-align: center;
    }
    .sigprograms-intro h1 {
     color: black;
     /* font-size: 1.0rem; */
     font-weight: normal;
     text-align: left;
    }

.sigprograms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
  }
  
  .sigprograms-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #f9f9f9; /* Optional: for light background boxes */
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s;
  }
  
  .sigprograms-item:hover {
    background-color: #eef2f5;
  }
  
  .sigprograms-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
  }
  
  .sigprograms-item a {
    font-size: 1.1rem;
    text-decoration: none;
    color: #003366;
    font-weight: 500;
  }
  
  .sigprograms-item a:hover {
    text-decoration: underline;
  }


/* sigprograms stlying */

/* First, Lay out the grid */
/* Wider AND centered */
.sigprograms-container {
  max-width: 1280px;   /* try 1200–1400px to taste */
  margin: 0 auto;      /* centers the whole section */
  padding: 0 20px;     /* optional: align with main’s side padding */
}

.sigprograms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1rem 0;
  /* no margin needed here */
}


@media (max-width: 768px) {
    .sigprograms-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}
  .sigprograms-card {
    border: 2px solid #000;
    border-radius: 12px;
    align-items: flex-start; /* Changed from center to flex-start */
    overflow: hidden;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
  }
  
  .sigprograms-card img {
    width: 100%;
    height: 175px; /* Consistent height for all images */
    object-fit: cover; /* Ensures image fills the space without stretching */
    object-position: top; /* Positions the image content at the top */
    display: block;
  }
  
  .sigprograms-card h3 {
    margin: 0;
    padding: 1rem;
    font-size: 1rem;
    background-color: #f8f8f8;
  }
  
  .card-wrapper {
    max-width: 350px;
    margin: 0 auto;
  }
  

  
  .team-heading {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
  }
  
  .team-member {
    text-align: center;
  }
  
  .team-member img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    border: 2px solid #000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  
  .team-member p {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #000;
  }
  
  .file-icon {
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    display: inline-block !important;
    object-fit: contain; /* Keeps the image from stretching */
  }

  /* === Signature Programs: scale ALL cards on hover/focus === */
:root { --sigpro-hover-scale: 1.25; }                   /* 1.25x “dramatic” pop */

.sigprograms-container, .sigprograms-grid { overflow: visible; }

.sigprograms-card {
  position: relative;                                /* enables z-index */
  transform-origin: center center;
  transition: transform 200ms ease, box-shadow 200ms ease;
  will-change: transform;
}

/* Hover with mouse, or keyboard focus on a link inside the card */
.sigprograms-card:hover,
.sigprograms-card:focus-within {
  transform: scale(var(--sigpro-hover-scale));
  z-index: 20;                                       /* float above neighbors */
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

/* Tone it down on smaller screens */
@media (max-width: 900px)  { :root { --sigpro-hover-scale: 1.4; } }
@media (max-width: 600px)  { :root { --sigpro-hover-scale: 1.25; } }
