/* ===============================
   BLOG SECTION READING WIDTH
================================ */
.blog-section .container {
  max-width: 900px;
}

/* ===============================
   CONTENT RHYTHM (EDITORIAL FEEL)
================================ */
.blog-section p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #444;
  margin-top: 0.9rem;
}

.blog-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 3.2rem;
  margin-bottom: 0.9rem;
  color: #1a1a1a;
}

.blog-section h3 {
  font-size: 1.35rem;
  font-weight: 600;
  /* margin-top: 2.2rem; */
  margin-bottom: 0.6rem;
  color: #2a2a2a;
}

/* ===============================
   LIST ALIGNMENT (CLEAN)
================================ */
.blog-section ul,
.blog-section ol {
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.blog-section li {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 0.55rem;
}

/* ===============================
   BLOG CARD SPACING FIX
================================ */
.blog-section .row.g-4 {
  margin-top: 3rem;
}

/* ===============================
   CTA TEXT ALIGN FIX
================================ */
.cta-section h2,
.cta-section p {
  max-width: 620px;
}

/* ===============================
   ACCESSIBILITY + UX POLISH
================================ */
.read-btn:focus-visible,
.ads-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.blog-card,
.read-btn,
.ads-btn {
  transition: all 0.3s ease;
}





/* ===============================
   FULL WIDTH CTA / ADS SECTION
================================ */
.cta-section {
  width: 100vw;                 /* full screen width */
  min-height: 60vh;             /* hero-like height */
  margin-left: calc(-50vw + 50%); /* edge-to-edge fix */
  
  background: url("/assets/bloghero.jpg") no-repeat;
  background-size: cover;
  background-position: center right; /* 🔥 right to left visual focus */

  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Dark overlay for text readability */
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.15)
  );
  z-index: 1;
}

/* Content wrapper */
.cta-section .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  padding-left: 80px;
}

/* Heading */
.cta-section h2 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  max-width: 650px;
}

/* Paragraph */
.cta-section p {
  font-size: 1.1rem;
  margin-top: 0.8rem;
  color: #e6e6e6;
  max-width: 600px;
}

/* CTA Button */
.ads-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 14px 42px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);

  transition: all 0.3s ease;
}

.ads-btn:hover {
  background: #ffffff;
  color: #000000;
}

.blog-btn-out {
    font-size: 20px;
    color: #213C65;
    /* border: 1px solid #213C65; */
    border-radius: 8px;
    text-decoration: none;
    padding: 16px 30px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}


.blog-btn-out:hover {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.196);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(33, 60, 114, 0.25);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 992px) {
  .cta-section {
    min-height: 50vh;
  }

  .cta-section .container {
    padding-left: 40px;
  }

  .cta-section h2 {
    font-size: 2.1rem;
  }

  
}

@media (max-width: 576px) {
  .cta-section {
    min-height: auto;
    padding: 4rem 0;
  }

  .cta-section .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .cta-section h2 {
    font-size: 1.7rem;
  }

  .cta-section p {
    font-size: 1rem;
  }
}



/* ===============================
   BLOG CONCLUSION (FINAL BLOCK)
================================ */
.blog-conclusion {
  margin-top: 4rem;
  padding: 2.8rem 2.5rem;
  background: linear-gradient(
    135deg,
    #f8f9fa,
    #ffffff
  );
  border-radius: 18px;
  border-left: 6px solid #0d6efd;
  position: relative;
}

/* subtle top divider */
.blog-conclusion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.08),
    transparent
  );
}

/* Title */
.blog-conclusion h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

/* Text */
.blog-conclusion p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #444;
  max-width: 760px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .blog-conclusion {
    padding: 2rem 1.6rem;
  }

  .blog-conclusion h3 {
    font-size: 1.4rem;
  }
}





/* ===============================
   BLOG CARDS GRID
================================ */
.blog-section .row.g-4 {
  margin-top: 3rem;
}

/* ===============================
   BLOG CARD BASE
================================ */
.blog-card {
  position: relative;
  height: 360px;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  isolation: isolate;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* IMAGE */
.blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.8s ease;
}

/* ===============================
   GRADIENT OVERLAY
================================ */
.blog-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  padding: 26px;
  display: flex;
  align-items: flex-end;
  z-index: 2;
}

.blog-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0)
  );
  z-index: -1;
}

/* TITLE */
.blog-overlay h5 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  transform: translateY(0);
  transition: transform 0.45s ease;
}

/* ===============================
   HOVER CTA
================================ */
.blog-hover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.read-btn {
  width: 100%;
  padding: 18px 0;
  background: linear-gradient(135deg, #213C72, #001b43);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 0 0 22px 22px;
  transform: translateY(100%);
  transition: transform 0.45s ease;
  pointer-events: auto;
}

/* ===============================
   HOVER EFFECTS
================================ */
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.18);
}

.blog-card:hover img {
  transform: scale(1.08);
}

.blog-card:hover .blog-overlay h5 {
  transform: translateY(-55px);
}

.blog-card:hover .read-btn {
  transform: translateY(0);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 991px) {
  .blog-card {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .blog-card {
    height: 280px;
  }

  .blog-overlay h5 {
    font-size: 1.2rem;
  }

  .read-btn {
    font-size: 0.95rem;
    padding: 16px 0;
  }
}

@media (max-width: 576px) {
  .blog-card {
    height: 260px;
  }
}


/* ===============================
   MOBILE READING COMFORT
================================ */
@media (max-width: 576px) {

  .blog-section p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .blog-section h2 {
    font-size: 1.45rem;
  }

  .blog-section h3 {
    font-size: 1.2rem;
  }

  .cta-section {
    min-height: auto;
    padding: 2.5rem 1.5rem;
  }
}
