/* Fix layout flow for sticky footer */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  
}


/* Set up flex layout for sticky footer */


body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* important for full viewport height */
  font-family: sans-serif;
  background-color: #fdf0d5;
 

}


/* Wrap content inside centered container */
.container {
  flex: 1; /* fill remaining space between navbar and footer */
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 4.5rem; /* offset for fixed navbar */
  padding: 2rem;
  width: 100%;
  
    border-radius: 8px;
   margin-bottom: 2.5rem; /* offset for fixed   navbar */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
  
}

.container h1 {
 margin: 0.1rem auto 0.5rem auto;  /* centers the inline-block */
  font-size: 2.5rem;            /* scale it down */
  font-weight: 700;           /* bold but clean */
  
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background-color: #2a2835;
  color: #fdf0d5;
}

.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1rem 1rem; /* default padding */
  align-items: start;
}

/* Mobile: 1 column, full width, less padding */
@media (max-width: 600px) {
  .masonry {
    grid-template-columns: 1fr;  /* single column */
    padding: 1rem 0;             /* remove side padding */
    gap: 1rem 0;                /* reduce horizontal gap */
    margin: 0 auto;             /* center container */
    max-width: 100%;            /* full width */
  }
  .card {
    min-width: auto;            /* let card fill width */
    width: 100%;
  }
}


/* Card layout */
/* .card {
  break-inside: avoid;
  margin-bottom: 1rem;
  background: #2a2835;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
  min-width: 280px; /* minimum width to avoid squishing */
  /* max-height: 350px;
}  */
/* color: #fdf0d5  #2a2835 and if you want another color #8ecae6;*/

.card {
  display: block;
  break-inside: avoid;
  background: #2a2835;
  color: #fdf0d5;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  text-decoration: none;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  z-index: 1; /* image above normal flow */
  transition: opacity 0.3s ease;
}

.card-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 250px;
  object-fit: cover;
  opacity: 0; /* hidden by default */
  z-index: 2; /* above image when fading in */
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card  video {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-text {
  padding: 1rem;
}

.card-text h2 {
  margin: 0;
  font-size: 1.2rem;
}

.card-text p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #669bbc;
}

.card:hover .card-video {
  opacity: 1; /* fade video on top */
}

.card:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 10;
  position: relative;
  cursor: pointer;
  background-color: #111111;
}


/* Footer (sticky look, spans full width) */

.footer {
  background-color: #2a2835;
  
  /* border-top: 2px solid #ece2bc; */
  color: #fdf0d5;

  text-align: left;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  /* No fixed or absolute positioning here! */
}





/* ========== Home Container Boxes ========== */
* {
  box-sizing: border-box;
}

/* .section-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  padding: 3rem 2rem;
  justify-content: center;
} */



/* .home-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
} */
/* 
.section-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
} */


/* ===== Left-Side Floating Button Group ===== */
.side-button-group {
  position: fixed;
  top: 0.20rem;
  left: 0.20rem;
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: #2a2835;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  border: 1px solid #444;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.side-button-group.hide {
  transform: translateY(-200%);
  opacity: 0;
  pointer-events: none;
}

/* ===== Buttons Inside the Box ===== */
.side-button-group .button-link {
  background-color: #003049;
  color: #fdf0d5;
  padding: 0.5rem 1rem;
  border-radius: 8px;                   /* subtle curve, not pill */
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s ease;
  border: 1px solid #8ecae6;
  box-shadow: inset 0 0 0 transparent;
}

.side-button-group .button-link:hover {
  background-color: #005b8f;
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px #0077cc;
}

