.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  place-items: center;
  gap: 15px;
}

.card-container {
  position: relative;
  min-width: 250px;
  height: 400px;
  background: lightgray;
}

@media screen and (max-width:768px){
  .card-container {
    position: relative;
    width: 250px;
    height: 300px;
    background: lightgray;
  }
}

.card {
  width: 100%;
  height: 100%;
  /* border-radius: 8px; */
  overflow: hidden;
  position: relative;
  /* cursor: pointer; */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Card Image */
.card-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .bg1 {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  overflow: hidden;
  transform: translateY(0%);
  background-color: rgba(38, 77, 85, 0.5);
  transition: transform 0.5s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Center the .shape element */
.shape {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: #ad4634;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  position: absolute;
  width: 50px;
  height: 50px;
  /* border-radius: 50%; */
  top: 0%;
  /* Center vertically */
  left: 50%;
  /* Center horizontally */
  transform: translate(-50%, -50%);
  /* Adjust for centering */
  z-index: 1;
}

.card-content .bg1 {
  font-size: 20px;
  color: white;
  font-weight: 900;
}

.card-content .bg2 {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: white;
  font-weight: 900;
  text-align: center;
}

.card .bg2 {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  /* color: rgb(173, 70, 52,0.5); */
  background-color: rgba(38, 77, 85, 0.7);
  overflow: hidden;
  transform: translateY(100%);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease-in-out;
}

.card:hover .bg1 {
  transform: translateY(-100%);
}

.card:hover .bg2 {
  transform: translateY(0%);
}


/* Image Gallery */

.custom-container {
  margin: 0 auto;
}
.custom-row {
  display: flex;
  justify-content: center;
  width: 1256px;
  gap: 10px;
  width: auto;
  margin-bottom: 2rem;
  padding: 1rem;
  /* overflow-y: scroll; */
  /* scrollbar-width: none;  */
}

/* For Webkit browsers (Chrome, Safari) */
.custom-row::-webkit-scrollbar {
  display: none; /* Hide scrollbar */
}

.custom-column {
  /* flex: 1 1 30%; */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-image {
  width: 100%;
  max-width: 300px;
  /* max-height: 20px; */
  /* Adjust size as needed */
  height: 100%;
  /* border-radius: 8px; */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.custom-image:hover {
  transform: scale(1.01);
  transition: transform 0.3s ease;
}

/* Partner Section */

.partners-section {
  padding: 20px 0;
}

.partner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.partner-row {
  display: flex;
  justify-content: center;
}

.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  width: 100%;
}

.partner-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner-logo img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.partner-logo img:hover {
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .partner-logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .partner-logo-grid {
    grid-template-columns: 1fr;
  }
}

/* Fun Fact Section  */

.fun-fact-section .fun-fact-grids .grid {
  background-color: var(--primary);
  width: 25%;
  float: left;
  padding: 35px 25px 35px 95px;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  -ms-transition: all 0.3s;
  transition: all 0.3s;
  position: relative;
  top: 0;
}

@media (max-width: 1199px) {
  .fun-fact-section .fun-fact-grids .grid {
    width: 50%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px 25px 35px 15px;
  }
}

@media (max-width: 600px) {
  .fun-fact-section .fun-fact-grids .grid {
    width: 100%;
    float: none;
  }
}

.fun-fact-section .fun-fact-grids > .grid:nth-child(even) {
  background-color: #793428;
}

.fun-fact-section .fun-fact-grids .fi {
  position: absolute;
  left: 25px;
}

.fun-fact-section .fun-fact-grids .fi:before {
  font-size: 50px;
  font-size: 3.125rem;
  color: #131e4a;
}

.fun-fact-section .fun-fact-grids h3 {
  font-size: 40px;
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  margin: 0 0 0.1em;
}

@media (max-width: 767px) {
  .fun-fact-section .fun-fact-grids h3 {
    font-size: 30px;
    font-size: 1.875rem;
  }
}

.fun-fact-section .fun-fact-grids p {
  color: #fff;
  margin: 0;
}

/* Customs */

.custom-project {
  position: relative;
  overflow: hidden;
}



.br-steel-text-bg {
  position: absolute;
  font-size: 7rem;
  color: rgb(121, 52, 40, 0.2);
  z-index: -1;
  text-align: center;
  width: 100%;
  top: 0%;
  padding: 0;
}

.custom-map-div{
  max-width: 300px;
  height: 10rem;
  position: relative;
  margin: 10px;
  overflow: hidden;
  background: lightcoral;
  
}
.custom-map-div iframe{
  width: 100%;
  height: 100%;
  position: absolute;
  
  top: 0;
  left: 0;
}
