/*  #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: 600px;
    width: 100%;
    display: flex;
    align-items: 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;
  }

/* 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 */
  #backToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 10px 15px;
  font-size: 16px;
  background-color: #74c5b5;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  display: none; /* hidden by default */
  z-index: 1000;
  transition: opacity 0.3s ease;
}
/* 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(1, 1fr); /* Two columns */
  gap: 20px; /* Gap between cards */
}

.blog-card {
  width: 100%; /* Auto width to fit the grid */
}
}

.blog-card {
  width: 100%; /* Three cards in a row with some spacing */
  margin-bottom: 20px;
  padding-bottom: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Add a slight shadow */
}

.blog-card img {
  width: 100%;
  height: auto;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  margin-bottom: 10px;
}

.blog-card h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  padding: 10px;
}

.blog-card p {
  margin-bottom: 10px;
  padding: 10px;
  max-height: 200px;
  overflow: hidden;
}

.read-more-btn {
  display: inline-block;
  padding: 8px 16px;
  margin-left: 10px;
  background-color: #74c5b6;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  margin-bottom: 5px;
}
.published-date {
  display: inline-block;
  padding: 8px 16px;
  margin-left: 10px;
  background-color: #74c5b6;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
}

.hidden {
  display: none;
}

.read-more-btn:hover {
  background-color: #ddd;
  color: #74c5b6;
}
/* Blogcards : End */
/* under part : Begin */

.leftsidetext {
    display: flex;
    align-items: center;
  }

  .rightsidetext {
    display: flex;
    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: auto;
  }
  .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.7rem;
  }
  .blog-card a{
    font-size:0.7rem;
  }
  .blog-card div{
    font-size:0.7rem;
  }
}
    
@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: 500px;
  overflow:scroll;
 }

}
@media screen and (max-width:750px){
  .leftsidetext, .rightsidetext{
    display: block;
    margin-left: 5%;
    width: 90%;
  }
  .under-text{
    height: 200px;
    width:100%;
    height: 300px;
  }
  .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: 100px;;
  }
}
/*RESPONSIVE STYLES
/* --- General container padding and scaling for smaller screens --- */
@media(max-width:1292px){
  ul a{
    margin-left: 0px !important;;
  }
  form{
    display: flex;
    flex-direction: column !important;
    text-align: left !important;
  }
  form a {
    width: 100%;
    margin: 2px 0px !important;
    text-align: start !important;
  }
  ul a{
    padding: 10px 12px !important;
    width: 100% !important;
    text-align: start !important;
  }
}
@media (max-width: 1200px) {
  .container1, 
  .btn-container-ug, 
  .ship-container, 
  .card-container, 
  .card-container2 {
    width: 90vw !important;
    margin: 0 auto !important;
    flex-wrap: wrap !important;
    padding: 0 10px !important;
  }
}

/* --- Typography scaling --- */
@media (max-width: 992px) {
  h1 {
    font-size: 3.5rem !important; /* approx 56px */
  }
  h3 {
    font-size: 1.8rem !important; /* approx 28px */
  }
  p {
    font-size: 1rem !important; /* approx 16px */
  }
  .overview {
    font-size: 22px !important;
    width: 80% !important;
  }
  .esg-btn {
    width: 180px !important;
    height: 55px !important;
    font-size: 14px !important;
  }
}

/* --- Navigation adjustments --- */
@media (max-width: 768px) {

}

/* --- Cards responsiveness --- */
@media (max-width: 768px) {
  .card_item {
    max-width: 100% !important;
    margin: 15px 10px !important;
    height: auto !important;
  }
  .card_item h2 {
    font-size: 18px !important;
  }
}

/* --- Client logo slider --- */
@media (max-width: 576px) {
  .img-container img {
    width: 100px !important;
    height: 80px !important;
    margin-right: 8px !important;
  }
  .slide-track {
    animation-duration: 30s !important; /* speed up animation for smaller widths */
  }
}

/* --- Footer tweaks --- */
@media (max-width: 480px) {
  footer .container {
    display: block !important;
    text-align: center !important;
  }
  footer ul.social li {
    display: inline-block !important;
    margin: 0 10px !important;
  }
}

/* --- Misc adjustments --- */
@media (max-width: 425px) {
  .overview {
    font-size: 18px !important;
    width: 95% !important;
    padding: 8px !important;
  }
  h1 {
    font-size: 2.2rem !important; /* approx 35px */
  }
  h3 {
    font-size: 1.4rem !important;
  }
  .card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  .btn-container-ug a,
  .btn-container-ug button {
    width: 100% !important;
    font-size: 14px !important;
    padding: 12px !important;
  }
  .ship-container {
    width: 100% !important;
    flex-direction: column !important;
  }
  .ship-container div {
    width: 100% !important;
    padding: 0 10px !important;
  }
  .ship-container img {
    max-width: 100% !important;
    height: auto !important;
  }
  .card-title{
    font-size: 1.2rem !important;
  }
}

.navbar-collapse {
  z-index: 1050; /* Bootstrap modal z-index */
  position: relative;
  /* background-color: #74c5b5; */
}

.navbar {
  position: relative;
  z-index: 1100; /* higher than collapse */
}

/* Optional: fix any overlapping cards or sections when navbar is expanded */
body.nav-open {
  overflow: hidden; /* prevent scrolling when nav open */
}
form a:hover{
  color:#335596 !important;
}
