/* Blog Container Styles */
.blog-container {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.inner-container {
  padding: 2.5rem;
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #2b6777, #52ab98);
  color: white;
  border-radius: 10px 10px 0 0;
  position: relative;
  overflow: hidden;
}

.blog-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L100,0 L100,100 L0,100 Z" /></svg>');
  opacity: 0.3;
}

.animated-text {
  animation: fadeInDown 1s ease;
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 1rem;
  position: relative;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.subtitle {
  font-size: clamp(1rem, 3vw, 1.2rem);
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Stories Content */
.content-row {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.content-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.content-row:hover {
  transform: translateY(-5px);
}

.tip-title {
  color: #2b6777;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  margin: 1.8rem 0 1.2rem;
  position: relative;
  padding-bottom: 0.6rem;
  font-weight: 600;
  line-height: 1.4;
}

.tip-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70px;
  height: 4px;
  background: #52ab98;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.content-row:hover .tip-title:after {
  width: 100px;
}

p {
  margin-bottom: 1.5rem;
  font-size: clamp(1.05rem, 3vw, 1.15rem);
  color: #444;
  line-height: 1.8;
}

strong {
  color: #2b6777;
  font-weight: 600;
}

/* Arabic Text Styling */
p[lang="ur"] {
  font-family: 'Amiri', serif;
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  line-height: 2.2;
  text-align: right;
  direction: rtl;
  padding: 1.8rem;
  background-color: rgba(200, 216, 228, 0.15);
  border-right: 4px solid #52ab98;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  color: #333;
}

/* Lesson Highlights */
.lesson-highlight {
  background-color: rgba(82, 171, 152, 0.1);
  padding: 1.8rem;
  border-left: 4px solid #52ab98;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  position: relative;
}

.lesson-highlight::before {
  content: "💡";
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 1.2rem;
  opacity: 0.3;
}

.lesson-highlight p {
  margin-bottom: 0;
  color: #2d3436;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .inner-container {
    padding: 2rem;
  }

  .blog-header {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .blog-container {
    margin: 1rem auto;
    border-radius: 0;
  }

  .inner-container {
    padding: 1.8rem;
  }

  .blog-header {
    padding: 2rem 1rem;
    border-radius: 0;
  }

  .content-row {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
  }

  p[lang="ur"] {
    padding: 1.5rem;
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .inner-container {
    padding: 1.5rem;
  }

  .blog-header {
    padding: 1.8rem 1rem;
  }

  .animated-text {
    font-size: 1.8rem;
  }

  .tip-title {
    font-size: 1.4rem;
  }

  .lesson-highlight {
    padding: 1.5rem;
  }
}


/* Back to Top Button */
.fabs {
  position: fixed;
  bottom: 97px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2b6777, #52ab98);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  opacity: 1;
  transform: translateY(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.fabs.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fabs:hover {
  background: linear-gradient(135deg, #52ab98, #2b6777);
  transform: translateY(-1px) scale(1.09);
  box-shadow: 0 6px 25px rgba(43, 103, 119, 0.4);
}

.fabs:active {
  transform: scale(0.98);
}

/* Animation when scrolling appears */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fabs {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    bottom: 100px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .fabs {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    bottom: 100px;
    right: 22px;
  }
}