/*  #74c5b6   */
/*  #335596  */

/* Style for the blog header */
.blog-header {
    background-color: #335596;
    background-image: url('/assets/img/esg_pictures/blog1.png'); /* Replace 'your-image-url.jpg' with the path to your image */
    background-size: contain;
    background-position: center;
    background-blend-mode: overlay;
    height: 350px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Style for the content container within the header */
  .blog-header-content {
    background-color: rgba(255, 255, 255, 0.8); /* Background color with opacity */
    padding: 20px;
    margin: 20px;
    margin-right: 20px; /* Adjust as needed */
    border-radius: 8px;
    max-width: 50%; /* Adjust as needed */
  }

  .blog-header-content button {
    border-radius: 13px;
    border: none;
    cursor: pointer;
    margin-right: 10px;
  }

  .blog-header-content button:hover {
background-color: #ddd;
  }
  
  .blog-header-content img {
    width: 25px;
  }

  /* Styles for text content within the content container */
  .blog-header-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
  }
  
  .blog-header-content p {
    font-size: 18px;
  }

  /* Centered two-line blog hero */
  .blog-header-content.vs-blog-hero-center {
    background: rgba(255, 255, 255, 0.92);
    max-width: 720px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    padding: 40px 36px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(51, 85, 150, 0.18);
    border: 1px solid rgba(116, 197, 181, 0.25);
  }
  .vs-blog-hero-center h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #335596, #74c5b5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
  }
  .vs-blog-hero-center p {
    font-size: 17px;
    color: #555;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
  }

/* csrd part : begin */

.csrdpart {
    width: 90%; /* Adjust width as needed */
    margin: 0 auto; /* Center horizontally */
    text-align: left; /* Align text to the left */
    animation: slideIn 0.5s ease forwards; /* Slide in animation */
  }

  .greybox {
   background-color: #f0f0f0; /* Example background */
  margin: 0 auto; /* Center align */
  padding: 20px; /* Spacing */
  max-width: 1200px; /* Max width and responsive */
  }

  .greybox:hover {
    background-color: #ddd;
    padding: 20px ;
    border-radius: 13px;
  }

  #showContentButton {
    
    background-color: #335596;
    color: #ddd;
  }

  @keyframes slideIn {
    0% {
      opacity: 0;
      transform: translateY(-50px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

/* csrd part : end */

/* Blogcards : Start */
.blogcards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; /* Add space between cards */
  padding: 20px;
  width: 99%;
}

@media (max-width: 1200px) {
.blogcards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.blog-card {
  width: 100%;
}
}

@media (max-width: 768px) {
.blogcards-container {
  grid-template-columns: 1fr;
}
}

.blog-card {
  width: 100%;
  margin-bottom: 0;
  padding-bottom: 0;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(51,85,150,0.06);
  position: relative;
  container-type: inline-size;
}

.blog-card .card-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #f0f3f8;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-bottom: 0;
  background: #f0f3f8;
  animation: vsPosterBreathe 5.5s ease-in-out infinite;
  transform-origin: center;
}

.blog-card h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-card.vs-online-ship-card .card-image {
  position: relative;
}

.blog-card.vs-online-ship-card .card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 12, 30, 0.20) 0%, rgba(0, 12, 30, 0.08) 48%, rgba(0, 12, 30, 0) 100%),
    linear-gradient(0deg, rgba(0, 12, 30, 0.18) 0%, rgba(0, 12, 30, 0) 54%);
}


.blog-card.vs-online-ship-card h2 {
  position: absolute;
  top: clamp(92px, 21cqw, 170px);
  left: clamp(14px, 4cqw, 34px);
  right: clamp(14px, 5cqw, 44px);
  z-index: 2;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 0;
  color: #fff;
  font-size: clamp(15px, 4.3cqw, 26px);
  line-height: 1.14;
  font-weight: 800;
  text-align: left;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.95), 0 1px 2px rgba(0, 0, 0, 0.9);
  max-width: 78%;
  pointer-events: none;
}

.blog-card p {
  margin-bottom: 10px;
  padding: 0;
  max-height: 200px;
  overflow: hidden;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  margin-left: 0;
  background-color: #74c5b6;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  margin-bottom: 0;
}
.published-date {
  display: inline-block;
  padding: 8px 16px;
  margin-left: 0;
  background-color: rgba(116, 197, 181, 0.14);
  color: #335596;
  text-decoration: none;
  border-radius: 20px;
}

.hidden {
  display: none;
}

.read-more-btn:hover {
  background-color: #335596;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(51, 85, 150, 0.3);
}
.read-more-btn {
  transition: all 0.3s ease;
}

/* Blog card hover enhancement */
.blog-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Blogcards : End */
/* under part : Begin */

.leftsidetext {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .rightsidetext {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .text {
    flex: 1; /* Text takes up remaining space */
  }
  
  .under-image img {
    height: 400px;
    border: 2px solid #335596;
    border-radius: 7px;
    cursor: zoom-in;
  }

.under-text {
    width: 100%;
    height: 400px;
    background-image: url(/assets/img/bg1.png);
}

.under-text h1 {
margin-left: 20px;
margin-top: 20px;
}

.under-text p {
    margin-left: 20px;
    margin-top: 20px;
    }

    /* Fullscreen image display */
.fullscreen-image {
  position: fixed;
  padding: 50px;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
  z-index: 9999;
  cursor: zoom-out;
}

.fullscreen-image img {
  width: 70%;
  height: 70%;
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  padding: 20px;
}
  
/* under part : End */

/* csddd-summary */

.text-and-image {
 display: flex;
  flex-wrap: wrap;
  align-items: center; /* Align vertically */
}

.text-and-image img {
   max-width: 100%;
  height: auto;
  padding: 10px; /* Spacing around image */
  margin: auto;
}
.pdf button {
  border: none;
  padding: 20px;
  border-radius: 13px;
  cursor: pointer;
}
.pdf button img {
  width: 50px;
}

.centered-image {
  /* Ensure the images inside this div are centered horizontally */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto;
}
.leftsidetext.second .under-text h1{
  font-size: 1.5rem;;
}
.centered-image img {
  max-width: 100%;
}

.centered-text {
  text-align: center;
}

@media screen and (max-width: 425px){
  .blog-card img{
    height: 100%;
  }
  .blog-card{
    padding-bottom: 10px;
  }
  .blog-card h2{
    font-size: 1rem;
    padding:0px 0px 0px 10px;
  }
  .blog-card p{
    padding: 0px 10px;
    font-size: 0.82rem;
  }
  .blog-card a{
    font-size:0.82rem;
  }
  .blog-card div{
    font-size:0.82rem;
  }
  .read-more-btn,
  .published-date {
    display: block;
    text-align: center;
    margin: 5px 10px;
  }
}
    
@media screen and (max-width: 1000px){
 .under-text h1{
   font-size: 1.7rem;
 }
 .under-image img{
  height: 300px;
 } 
 
 .leftsidetext.second .under-text p{
  font-size: 0.9rem;
 }
 .leftsidetext.second{
  height: auto;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
 }

}
@media screen and (max-width:750px){
  .leftsidetext, .rightsidetext{
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 92%;
  }
  .under-text{
    width:100%;
    height: auto;
    min-height: 200px;
  }
  .under-image img{
    width: 100%;
    height: auto;
  }

  .greybox h1{
    font-size:1.7rem;
  }
  .greybox{
    border-radius: 10px;;
  }
  .under-text p{
    font-size:1rem;
  }
  .leftsidetext.first .under-text{
    height: 200px;
  }
  .leftsidetext.first{
    margin-bottom: 30px;
  }
  .blog-header {
    height: 280px;
  }
  .blog-header-content {
    max-width: 90%;
  }
  .blog-header-content.vs-blog-hero-center {
    max-width: 90%;
    padding: 30px 24px;
  }
  .blog-header-content h1 {
    font-size: 22px;
  }
  .vs-blog-hero-center h1 {
    font-size: 24px;
  }
  .blog-header-content p {
    font-size: 14px;
  }
  .vs-blog-hero-center p {
    font-size: 15px;
  }
  .under-text {
    height: auto;
    min-height: 200px;
  }
}

/* Intermediate mobile breakpoint */
@media screen and (max-width: 576px) {
  .blog-header {
    height: 240px;
  }
  .blog-header-content {
    max-width: 95%;
    padding: 15px;
    margin: 10px;
  }
  .blog-header-content.vs-blog-hero-center {
    max-width: 95%;
    padding: 24px 18px;
  }
  .blog-header-content h1 {
    font-size: 20px;
  }
  .vs-blog-hero-center h1 {
    font-size: 20px;
  }
  .blog-header-content p {
    font-size: 13px;
  }
  .blog-card img {
    height: 100%;
  }
  .blog-card h2 {
    font-size: 1.1rem;
    padding: 5px 10px;
  }
  .blog-card p {
    font-size: 0.85rem;
    padding: 5px 10px;
  }
  .under-image img {
    width: 100%;
    height: auto;
  }
  .under-text {
    height: auto;
    min-height: 180px;
  }
  .leftsidetext.second {
    height: auto;
    overflow: visible;
  }
}

@media screen and (max-width: 480px) {
  .blog-header {
    height: 200px;
    background-size: cover;
  }
  .blog-header-content {
    padding: 12px;
    margin: 8px;
  }
  .blog-header-content.vs-blog-hero-center {
    padding: 20px 14px;
  }
  .blog-header-content h1 {
    font-size: 16px;
    margin-bottom: 5px;
  }
  .vs-blog-hero-center h1 {
    font-size: 17px;
    margin-bottom: 8px;
  }
  .blog-header-content p {
    font-size: 12px;
    margin-bottom: 0;
  }
  .vs-blog-hero-center p {
    font-size: 13px;
  }
  .blog-card img {
    height: 100%;
  }
}

/* Extra small screens */
@media screen and (max-width: 360px) {
  .blog-header {
    height: 180px;
  }
  .blog-header-content {
    padding: 10px;
    margin: 5px;
  }
  .blog-header-content.vs-blog-hero-center {
    padding: 16px 10px;
  }
  .blog-header-content h1 {
    font-size: 14px;
  }
  .vs-blog-hero-center h1 {
    font-size: 15px;
  }
  .blog-header-content p {
    font-size: 11px;
  }
  .vs-blog-hero-center p {
    font-size: 12px;
  }
  .blog-card img {
    height: 100%;
  }
  .blog-card h2 {
    font-size: 0.9rem;
  }
  .published-date {
    font-size: 11px;
    padding: 5px 10px;
  }
  .read-more-btn {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* === Blog Page Visual Enhancements === */

/* Better blog header overlay */
.blog-header {
  position: relative;
  overflow: hidden;
}
.blog-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(51, 85, 150, 0.85), rgba(116, 197, 181, 0.6));
  z-index: 1;
}
.blog-header-content {
  position: relative;
  z-index: 2;
  backdrop-filter: blur(2px);
}
.blog-header-content.vs-blog-hero-center {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.blog-header-content.vs-blog-hero-center:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(51, 85, 150, 0.22);
}

/* Blog card image hover zoom */
.blog-card {
  overflow: hidden;
  border-radius: 12px;
}
.blog-card img {
  transition: transform 0.5s ease;
}
.blog-card:hover img {
  animation: none;
  transform: scale(1.05);
}

/* Better blog card text styling */
.blog-card h2 {
  color: #335596;
  font-weight: 600;
  line-height: 1.4;
}
.blog-card p {
  color: #555;
  line-height: 1.7;
}

/* Published date and read-more button alignment */
.blog-card .read-more-btn,
.blog-card .published-date {
  font-weight: 600;
  letter-spacing: 0.3px;
}

.blog-card .card-content {
  padding: 12px 14px 14px;
  text-align: center;
  min-height: 58px;
}

.blog-card .card-image {
  position: relative;
}

.blog-card .card-image > a {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card .card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 12, 30, 0.20) 0%, rgba(0, 12, 30, 0.08) 48%, rgba(0, 12, 30, 0) 100%),
    linear-gradient(0deg, rgba(0, 12, 30, 0.18) 0%, rgba(0, 12, 30, 0) 54%);
}

.blog-card.vs-light-gradient .card-image::after {
  background:
    linear-gradient(90deg, rgba(0, 12, 30, 0.10) 0%, rgba(0, 12, 30, 0.04) 48%, rgba(0, 12, 30, 0) 100%),
    linear-gradient(0deg, rgba(0, 12, 30, 0.08) 0%, rgba(0, 12, 30, 0) 54%);
}


.blog-card h2 {
  position: absolute;
  top: clamp(92px, 21cqw, 170px);
  left: clamp(14px, 4cqw, 34px);
  right: clamp(14px, 5cqw, 44px);
  z-index: 2;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 0;
  color: #fff !important;
  font-size: clamp(15px, 4.3cqw, 26px);
  line-height: 1.14;
  font-weight: 800;
  text-align: left;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.95), 0 1px 2px rgba(0, 0, 0, 0.9);
  max-width: 78%;
  pointer-events: none;
}

.blog-card .read-more-btn {
  position: absolute;
  top: 25cqw;
  left: 50%;
  z-index: 3;
  min-width: 128px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.blog-card:hover .read-more-btn,
.blog-card:focus-within .read-more-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.blog-card .published-date {
  margin: 0;
}

@keyframes vsPosterBreathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card img {
    animation: none;
  }
}

/* Better left/right text sections */
.leftsidetext,
.rightsidetext {
  gap: 20px;
}

/* Under-image better styling */
.under-image img {
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.under-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(51, 85, 150, 0.2);
}

/* Under-text section polish */
.under-text {
  border-radius: 12px;
  padding: 20px;
  background-size: cover;
}
.under-text h1 {
  color: #335596;
  font-weight: 700;
}
.under-text p {
  color: #444;
  line-height: 1.8;
}

/* Grey box improvements */
.greybox {
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.greybox:hover {
  border-color: #74c5b5;
  box-shadow: 0 4px 16px rgba(116, 197, 181, 0.15);
}

/* Fullscreen image modal improvements */
.fullscreen-image {
  backdrop-filter: blur(5px);
  border-radius: 0;
}

/* CSRD part animation */
.csrdpart {
  padding: 20px 0;
}

/* --- Dark mode overrides for blog --- */
body.vs-dark .blog-card h2 { color: #e0e8f0 !important; }
body.vs-dark .blog-card p { color: #b0bec5 !important; }
body.vs-dark .blog-card { background: #1a2640 !important; border-color: #253550 !important; }
body.vs-dark .under-text { background-color: #1a2640 !important; }
body.vs-dark .under-text h1 { color: #e0e8f0 !important; }
body.vs-dark .under-text p { color: #b0bec5 !important; }
body.vs-dark .greybox { background: #131d2e !important; color: #b0c4de !important; }
body.vs-dark .blog-header-content { background-color: rgba(26, 38, 64, 0.95) !important; }
body.vs-dark .under-image img { box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important; }

body.vs-dark .blog-card h2 {
  color: #fff !important;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.95), 0 1px 2px rgba(0, 0, 0, 0.9);
}

.blog-card .card-image,
.blog-card .card-image > a,
.blog-card .card-image img {
  width: 100%;
}

.blog-card .card-image > a,
.blog-card .card-image img {
  height: 100%;
}

.blog-card .card-image img {
  object-fit: cover;
}

.blogcards-container .blog-card .card-content > h2.card-title {
  color: #fff !important;
}

.blogcards-container .blog-card .card-image::before {
  top: clamp(10px, 3cqw, 18px) !important;
  left: clamp(14px, 4cqw, 34px) !important;
  right: auto !important;
  width: clamp(36px, 11cqw, 64px) !important;
  z-index: 2;
}

.blogcards-container .blog-card .card-content > h2.card-title {
  top: clamp(92px, 21cqw, 170px) !important;
  left: clamp(14px, 4cqw, 34px) !important;
  right: clamp(14px, 5cqw, 44px) !important;
  max-width: none !important;
  font-size: clamp(18px, 5.2cqw, 34px) !important;
  line-height: 1.12 !important;
}

/* Blog page search/filter area improvements */
@media (max-width: 768px) {
  .blog-header-content h1 {
    line-height: 1.3;
  }
  .blog-header-content {
    border-radius: 12px;
  }
}
