/* =========================
   MINISTRY IMAGE SECTION
========================= */

.ministry-section {
  position: relative;
  background: #D9D9D9;
  padding: 0px 30px;
}

.ministry-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: #121212;
  transform: skewY(-4deg);
  transform-origin: top left;
  z-index: 0;
}

/* GRID */
.ministry-bs-grid {
  align-items: flex-start;
}

/* =========================
   CARD BASE
========================= */

.ministry-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;

  box-shadow: 0px 4px 40px 0px rgba(0, 0, 0, 0.4);
}

/* CARD IMAGE */
.ministry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CARD SIZES */
.small-card {
  height: auto;
}

.wide-card {
  height: auto;
}

/* =========================
   CARD OVERLAY CONTENT
========================= */

.card-content {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  padding: 16px 18px;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 1) 90%
  );
}

.card-content span {
  font-weight: 500;
  font-size: 24px;
  color: #fff;
}

/* =========================
   CARD ARROW (IMAGE BASED)
========================= */

.card-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  z-index: 5;

  cursor: pointer;

  /* IMPORTANT */
  transition: background 1.3s ease, transform 0.3s ease;
}

.card-arrow img {
  transition: transform 1.3s ease;
}

/* Smooth hover */
.card-arrow:hover {
  background: orange;
    transform: rotate(-45deg);
}

.card-arrow:hover svg { color:#000;

}

/* Static arrow (no hover / no click) */
.card-arrow.static {
  
}

/* =========================
   DESTINY CARD OFFSET
========================= */

.destiny-card {
  margin-top: 84px;
}

/* =========================
   TEXT MASK (CLIENT SAFE)
========================= */

.ministry-bottom-text {
  position: relative;
}

.ministry-bottom-text.is-blurred::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 70%,
    rgba(255, 255, 255, 0.7) 100%
  );
}

/* =========================
   HEADINGS
========================= */

.ministry-section h6 {
    background: linear-gradient(0deg, #969696, #303030 82%, #121212);
    -webkit-background-clip: text;
    display: inline-block;
    font-size: 60px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 100%;
    margin-bottom: 4px;
    text-transform: uppercase;
    width: fit-content;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1px hsla(0, 0%, 59%, .4);
    opacity: .1;
}
.ministry-section h2 {
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
  margin-top: -14px; line-height:100%
}

/* =========================
   BUTTON
========================= */

.btn-ministry {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 220px;
  height: 46px;

  padding: 11px 20px; 
  
  border-radius: 2px;
  border: 1px solid #121212;

  font-weight: 300;
  font-size: 18px;
  line-height: 1.31;
  letter-spacing: 0;
  text-transform: capitalize;
  text-align: center;

  color: #121212;
  background: transparent;
  text-decoration: none;
display:flex; gap:15px;
  transition: all 0.3s ease;
  cursor: pointer; margin-top:63px;
}


.btn-ministry:hover {
  background-color: #121212;
  color: #ffffff;
  text-decoration: none;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {
  .small-card {
    height: 200px;
  }
  .wide-card {
    height: 240px;
  }
}

@media (max-width: 767px) {
  .small-card,
  .wide-card {
    height: 220px;
  }
}

/* =========================
   FLUID WRAPPER
========================= */

.fluid {
  position: relative;
}

/* Main wrapper */
.ministry-wrapper {
  display: flex;
  align-items: center;
  gap: 44px; justify-content: space-evenly;
}

/* Exact Figma widths */
.ministry-left {
  width: 646px;
  flex: 0 0 50%;
}

.ministry-right {
  width: 636px;
/*   flex: 0 0 50%; */
}

/* Cards grid */
.ministry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.ministry-bs-grid .col-md-6 {
    padding-left: 10px;
    padding-right: 10px;
}

.ministry-bs-grid {
    gap: 23px 0;
}

.ministry-bottom-text {
    position: relative;
    margin-top: 60px;
}


/* ====================================================== */
    /* Responsive */

@media (max-width: 767px) {

.ministry-wrapper {
  align-items: center !important;
  display: flex !important;
  gap: 44px !important;
  flex-direction: column !important;
}

.ministry-section .fluid {
  padding-top: 80px !important;
          padding-left: 18px !important;
        padding-right: 17px !important;
          padding-bottom: 99px !important;
}
.ministry-section {
    background: #d9d9d9;
    padding: 0 18px 0px 16px;!important;
  }

.ministry-left {
    width: 100%;
    flex: 0 0 50%;
  text-align: center;
}
.ministry-section h2 {
  
  font-weight: 700 !important; /* Bold */
  font-size: 30px !important;
  line-height: 100% !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-transform: uppercase !important; text-align:center!important;
}
.ministry-section h6 {

  font-weight: 700 !important; /* Bold */
  font-size: 40px !important;
  line-height: 100% !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
.ministry-bottom-text p {

  font-weight: 300 !important; /* Light */
  font-size: 16px !important;
  line-height: 135% !important;
  letter-spacing: 0 !important;
  text-align: center !important; text-align:center!important;
}
p.leads-text {
 
  font-weight: 700 !important; /* Bold */
  font-size: 24px !important;
  line-height: 145% !important;
  letter-spacing: 0 !important;
  text-align: center !important;
}  

a.btn-ministry {
    margin-left: auto;
    margin-right: auto;
}
.destiny-card {
    margin-top: 30px;  
}
  .ministry-right {
    width: auto;
    flex: 0 0 50%;
}
  .ministry-bs-grid .col-md-6 {
    padding-left: 0;
    padding-right: 0;
}
  
  .ministry-section::before{
  height:260px;
  }
  
}  