/* ==========================================================================
   BLOG HEADER
   ========================================================================== */

.blog-header {
  background: linear-gradient(
      rgba(51, 85, 150, 0.85),
      rgba(51, 85, 150, 0.85)
    ),
    url('/assets/img/esg_pictures/blog1.png') center/cover no-repeat;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.blog-header-content {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 16px;
  max-width: 600px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-header-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.blog-header-content h1 {
  font-size: 2.75rem;
  color: #1f2d5c;
  margin-bottom: 1rem;
}

.blog-header-content p {
  font-size: 1.125rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.blog-header-content button {
  border-radius: 30px;
  border: none;
  cursor: pointer;
  padding: 0.6rem 1.4rem;
  background-color: #74c5b6;
  color: #fff;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.blog-header-content button:hover {
  background-color: #5fa9a0;
  transform: scale(1.05);
}

/* ==========================================================================
   CSRD SECTION
   ========================================================================== */

.csrdpart {
  width: 90%;
  margin: 0 auto;
  text-align: left;
  opacity: 0;
  transform: translateY(40px);
  animation: slideIn 0.6s ease-out forwards;
}

.greybox {
  background-color: #f7f9fc;
  margin: 2rem auto;
  padding: 2rem;
  max-width: 1200px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.greybox:hover {
  background-color: #e6ecf5;
  transform: translateY(-4px);
}

#showContentButton {
  background-color: #335596;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

#showContentButton:hover {
  background-color: #27447a;
}

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   BLOG CARDS
   ========================================================================== */

.blogcards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 3rem 2rem;
  background-color: #f9fbfd;
}

.blog-card {
  background-color: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  margin-top: 5rem;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card .card-image img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.blog-card h2.card-title {
  font-size: 1.4rem;
  color: #1f2d5c;
  margin: 1rem;
  line-height: 1.4;
}

.blog-card p.card-text {
  font-size: 1rem;
  color: #555;
  margin: 0 1rem 1rem;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.read-more-btn {
  display: inline-block;
  align-self: flex-start;
  padding: 0.6rem 1.2rem;
  background-color: #74c5b6;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  margin: 0 1rem 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.read-more-btn:hover {
  background-color: #5fa9a0;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.published-date {
  font-size: 0.875rem;
  color: #888;
  margin: 0 1rem 1rem;
}

/* ==========================================================================
   TEXT & IMAGE SIDE-BY-SIDE (if needed)
   ========================================================================== */

.text-and-image {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.text-and-image img {
  flex: 1;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ==========================================================================
   UNDER IMAGE + TEXT SECTION (if needed)
   ========================================================================== */

.under-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border: 3px solid #335596;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.under-image img:hover {
  transform: scale(1.03);
}

.under-text {
  height: 400px;
  background: url(/assets/img/bg1.png) center/cover no-repeat;
  padding: 2rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.under-text h1,
.under-text p {
  margin: 0 0 1rem 0;
  padding-left: 1rem;
}

/* ==========================================================================
   FULLSCREEN IMAGE VIEW (if triggered by JS)
   ========================================================================== */

.fullscreen-image {
  position: fixed;
  inset: 0;
  padding: 3rem;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.fullscreen-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 768px) {
  .blog-header {
    padding: 2rem 1rem;
  }

  .blog-header-content {
    max-width: 100%;
    padding: 1.5rem;
  }

  .blog-card .card-image img {
    height: 180px;
  }

  .text-and-image {
    flex-direction: column;
  }

  .under-image img,
  .under-text {
    height: auto;
  }
}
