main {
  padding-top: var(--header-height);
  color: var(--title-color);
  background-color: var(--section-color);
}

/* Mobile fix */
@media (max-width: 768px) {
  main {
    padding-top: calc(var(--header-height) - 1rem);
  }
}

.blog-hero{
padding:120px 6% 60px;
/*background:#020617; */
color:white;
text-align:center;
}

.blog-hero h1{
font-size:42px;
max-width:900px;
margin:auto;
}

.blog-meta{
margin-top:15px;
color:#94a3b8;
}

.blog-image img{
width:100%;
max-width:900px;
display:block;
margin:auto;
border-radius:10px;

object-fit: cover; 
}

.blog-content{
padding:60px 6%;
}

.content-container{
max-width:800px;
margin:auto;
line-height:1.8;
font-size:17px;
}

.blog-quote{
max-width:700px;
margin:40px auto;
font-style:italic;
border-left:4px solid #1DC9A9; ;
padding-left:20px;
color:#cbd5f5;
}


.related-blogs{
padding:100px 6%;
/*background:#020617;*/
color:#fff;
text-align:center;
}

.related-blogs h4{
font-size:36px;
margin-bottom:50px;
}

/* Grid layout */

.related-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:40px;
max-width:900px;
margin:auto;
}

/* Blog card */

.related-card{

 background: rgba(17, 35, 64, 0.5); /* #112340 with 50% opacity */
  
  border-radius: 10px;
  overflow: hidden;
  transition: 0.4s;
  cursor: pointer;
  backdrop-filter: blur(10px); /* applies the blur effect */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.1); /* subtle frosted border */
}

.related-card img{
width:100%;
height:220px;
object-fit:cover;
}

.related-card .custom-h5{
  
  padding: 20px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--title-color);
  display: block;
  text-align: center;
  font-weight: 500;

}

/* Hover effect */

.related-card:hover{
 transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(17, 35, 64, 0.6); /* deeper shadow matching the card color */
  backdrop-filter: blur(15px); /* intensifies the blur on hover */
  -webkit-backdrop-filter: blur(15px); /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.2); /* slightly stronger border for hover */
}

/*=======================*/
/* Mobile & Tablet Fixes */
/*=======================*/

/* Small devices: phones (<768px) */
@media (max-width: 768px) {
  main {
    padding-top: calc(var(--header-height) - 1rem);
  }

  .blog-hero {
    padding: 80px 4% 40px;
  }

  .blog-hero h1 {
    font-size: 28px;
    max-width: 100%;
  }

  .blog-meta {
    font-size: 14px;
    margin-top: 10px;
  }

  .blog-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .blog-content {
    padding: 40px 4%;
  }

  .content-container {
    font-size: 16px;
    line-height: 1.6;
  }

  .blog-quote {
    max-width: 90%;
    margin: 30px auto;
    padding-left: 15px;
    border-left-width: 3px;
    font-size: 15px;
  }

  .related-blogs {
    padding: 60px 4%;
  }

  .related-blogs h2 {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .related-grid {
    grid-template-columns: 1fr; /* single column for mobile */
    gap: 20px;
    max-width: 100%;
  }

  .related-card {
    width: 100%;
  }

  .related-card img {
    height: 180px;
  }

  .related-card .custom-h5 {
    font-size: 18px;
    padding: 15px;
  }

  .related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(17, 35, 64, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* Extra small devices: very small phones (<480px) */
@media (max-width: 480px) {
  .blog-hero {
    padding: 60px 3% 30px;
  }

  .blog-hero h1 {
    font-size: 22px;
  }

  .content-container {
    font-size: 15px;
  }

  .blog-quote {
    font-size: 14px;
    padding-left: 12px;
  }

  .related-blogs {
    padding: 40px 3%;
  }

  .related-blogs h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .related-card img {
    height: 160px;
  }

  .related-card .custom-h5 {
    font-size: 16px;
    padding: 12px;
  }
}

/* Tablets (768px – 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .blog-hero h1 {
    font-size: 36px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .related-card img {
    height: 200px;
  }

  .related-card .custom-h5 {
    font-size: 19px;
  }
}


/* ===================== Chat Button ========================== */

#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1DC9A9;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 9999;
}

/* Chat Box */
#chat-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 300px;
  background: #fff;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* Header */
.chat-header {
  background: #1DC9A9;
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
}

.chat-header button {

  border: none;
  background: none;

  color: white;
}

/* Body */
.chat-body {
  padding: 10px;
  height: 250px;
  overflow-y: auto;
}

.bot-message {
  background: #f1f1f1;
  padding: 8px;
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 5px;
}

.user-message {
  background: #1DC9A9;
  color: #fff;
  padding: 8px;
  font-size: 16px;
  border-radius: 6px;
  margin-bottom: 5px;
  text-align: right;
}

/* Footer */
.chat-footer {
  display: flex;
}

.chat-footer input {
  flex: 1;
  border: none;
  padding: 10px;
}

.chat-footer button {
  background: #1DC9A9;
  color: #fff;
  border: none;
  padding: 10px;
}