/* ===============================
   Collage / Masonry Blog Grid
   =============================== */

/* === GLOBAL PAGE BACKGROUND === */
body.blog-page {
  background-color: #353B42;
  color: #fff;
}

/* === Blog Grid Layout === */
.blog-grid {
  column-count: 3;
  column-gap: 25px;
  margin-top: 30px;
}

/* === Blog Card === */
.blog-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 25px;
  border-radius: 10px;
  overflow: hidden;
  background: #222;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  position: relative;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  break-inside: avoid;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
}

/* === Image Layer === */
.blog-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  filter: brightness(0.9);
  transition: filter 0.4s ease;
}

.blog-card:nth-child(2n) .blog-image {
  aspect-ratio: 3 / 4;
}

.blog-card:nth-child(3n) .blog-image {
  aspect-ratio: 16 / 9;
}

.blog-card:hover .blog-image {
  filter: brightness(1);
}

/* === Overlays (restored default state) === */
.color-overlay {
  background: rgba(84, 104, 110, 0.45);  
  position: absolute;
  inset: 0;
  z-index: 10;
  transition: background 0.3s ease;
}

.gradient-overlay {
  background: linear-gradient(rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.8) 100%);
  position: absolute;
  inset: 0;
  z-index: 15;
  transition: opacity 0.3s ease;
}

/* overlays should never block clicks */
.blog-card .gradient-overlay,
.blog-card .color-overlay {
  pointer-events: none;   
}

/* Darken slightly on hover */
.blog-card:hover .color-overlay {
  background: rgba(84, 104, 110, 0.7);
}

/* === Text Overlay === */
.title-content {
  position: absolute;
  bottom: 80px;
  width: 100%;
  z-index: 20;
  text-align: center;
}
.title-content h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 0;
}
.title-content hr {
  width: 50px;
  height: 3px;
  margin: 10px auto;
  background: #581ca0;
  border: none;
}

/* === Download Info === */
.card-info {
  position: absolute;
  bottom: 25px;
  width: 100%;
  z-index: 25;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.blog-card:hover .card-info {
  opacity: 1;
}
.card-info a {
  color: #fff;
  font-weight: 600;
  background: #581ca0;
  padding: 6px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.card-info a:hover {
  background: #360670;
}

/* === Responsive Grid === */
@media (max-width: 991px) {
  .blog-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .blog-grid {
    column-count: 1;
  }
}

/* ===============================
   FOOTER COPYRIGHT STRIP (White)
   =============================== */
.footer-white {
  background: #ffffff;             
  color: #000000;                  
  padding: 2rem 0;                 
  font-size: 1.2rem;
  position: relative;
  border-top: 1px solid #ddd;      
}

.footer-white .container {
  padding-left: 80px;              
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.footer-white small {
  color: #000;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ===============================
   FOOTER (White) — Center on Mobile/Tablet
   =============================== */
@media (max-width: 992px) {
  .footer-white .container {
    flex-direction: column;        
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-left: 0;               
  }

  .footer-white small {
    margin-bottom: 0.5rem;
  }
}

/* ===========================================================
   Always show Download Report on mobile / Safari
   =========================================================== */
/* Mobile width */
@media (max-width: 991px) {
  .blog-card .card-info {
    opacity: 1 !important;
    position: relative !important;
    bottom: 0 !important;
    margin-top: 12px !important;
    z-index: 999 !important; 
  }

  .blog-card .gradient-overlay,
  .blog-card .color-overlay {
    display: none !important;
  }

  /* kill hover animations on mobile width */
  .blog-card,
  .blog-card:hover {
    transform: none !important;
    box-shadow: 0 8px 25px rgba(0,0,0,.35) !important;
  }
}

/* Touch-capable devices (Safari/iOS friendly) */
@media (hover: none), (pointer: coarse) {
  .blog-card .card-info {
    opacity: 1 !important;
    position: relative !important;
    bottom: 0 !important;
    margin-top: 12px !important;
    z-index: 999 !important;
  }
}


