/*===INDIVIDUAL CASE STUDIES PAGE====*/

/* OVERVIEW SECTION */

.project-details {
  padding: 3rem 0;
  background: linear-gradient(135deg, #1a2437, #1a1f29);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* GRID LAYOUT */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* IMAGE */
.project-image-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.project-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(0.85);
}

.project-image:hover {
  transform: scale(1.02);
  filter: brightness(0.95);
}

/* RIGHT SIDE DETAILS */
.project-info {
  padding: 0 1rem;
}

.section-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #d0d7eb;
  margin-bottom: 1.5rem;
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
  position: relative;
  letter-spacing: -0.4px;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 2px;
}

.section-text {
  font-size: 0.83rem;
  line-height: 1.6;
  color: #999fc0;
  margin-bottom: 2rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.2px;
}

/* STATS */
.project-stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stat-box {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.stat-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #3b82f6, #60a5fa);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.stat-box:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.stat-box:hover::before {
  transform: scaleY(1);
}

.stat-box i {
  font-size: 1.4rem;
  color: #60a5fa;
  margin-top: 0.39rem;
  transition: transform 0.3s ease;
}

.stat-box:hover i {
  transform: scale(1.1);
}

.stat-box h3 {
  font-size: 0.99rem;
  font-weight: 500;
  color: #b2cce6;
  margin-bottom: 0.3rem;
  font-family: 'Jost', sans-serif;
  letter-spacing: -0.1px;
}

.stat-box p {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #94a1c8;
  margin: 0;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.1px;
}

/* RESPONSIVE */
@media (max-width: 968px) {
  .project-grid {
    gap: 2.5rem;
  }
  .project-image {
    height: 380px;
  }
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .project-image {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .project-details {
    padding: 2rem 0;
  }
  .container {
    padding: 0 0.8rem;
  }
  .project-image {
    height: 250px;
  }
  .section-heading {
    font-size: 1.3rem;
  }
  .section-text {
    font-size: 0.82rem;
  }
  .stat-box {
    padding: 0.75rem;
  }
  .stat-box h3 {
    font-size: 0.99rem;
  }
  .stat-box p {
    font-size: 0.85rem;
  }
}



/* DELIVERABLES SECTION */

.deliverables {
  padding: 3rem 0;
  background: linear-gradient(135deg, #0e1117, #1a1f29);
}

.deliverables .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.deliverables .section-heading {
  font-size: 1.4rem;
  font-weight: 600;
  color: #b7cde3;
  margin: 0 auto 2rem; 
  text-align: center;   
  font-family: 'Poppins', sans-serif;
  position: relative;
  max-width: fit-content; 
}

.deliverables .section-heading::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  
  border-radius: 2px;
}


.deliverables-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}

.deliverables-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  color: #9599b1;
  line-height: 1.4;
  position: relative;
  transition: all 0.3s ease;
}

.deliverables-list li i {
  color: #60a5fa;
  font-size: 1.1rem;
  margin-top: 0.1rem;
  transition: transform 0.3s ease;
}

.deliverables-list li:hover i {
  transform: scale(1.2);
}




/* Mobile Responsiveness */
@media (max-width: 768px) {
  .deliverables-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .deliverables-list li {
    font-size: 0.85rem;
  }
  .deliverables-list li i {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .deliverables {
    padding: 2rem 0;
  }
  .deliverables-list li {
    font-size: 0.8rem;
    gap: 0.6rem;
  }
  .deliverables-list li i {
    font-size: 0.95rem;
  }
  .delivarables .section-heading {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }
}



/* ===== RESULTS SECTION ===== */
.results-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0;
}

.results-section .section-heading {
  font-size: 1.4rem;
  font-weight: 600;
  color: #b7cde3;
  text-align: center;
  margin: 0 auto 2.5rem;
  position: relative;
  font-family: 'Poppins', sans-serif;
  max-width: fit-content;
  letter-spacing: -0.4px;
}

.results-section .section-heading::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 2px;
}

/* ===== NEW GRID BACKGROUND ===== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem; /* inner padding */
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.85); /* semi-dark container */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.result-card {
  background: rgba(25, 41, 63, 0.45);
  border-radius: 12px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.result-card i {
  font-size: 2rem;
  color: #3b82f6;
  margin-bottom: 0.8rem;
  transition: transform 0.3s ease;
}

.result-card:hover i {
  transform: scale(1.2);
}

.result-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ccd2f0;
  margin-bottom: 0.6rem;
  font-family: 'Poppins', sans-serif;
}

.result-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #9297b5;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* Bullet points inside result cards */

.result-points {
  margin-top: 1.5rem; /* spacing from paragraph */
  padding-left: 1.2rem; /* standard indent for bullets */
  list-style-position: outside; /* bullets outside text */
  color: #a7a8d2;
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: left; /* force left alignment */
}

.result-points li {
  margin-bottom: 0.4rem; 
}


/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .results-grid {
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .result-card {
    padding: 1.5rem 1rem;
  }
  .result-card h3 {
    font-size: 1rem;
  }
  .result-card p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .results-section {
    padding: 2rem 0;
  }
  .results-grid {
    gap: 1rem;
    padding: 1rem;
  }
  .result-card {
    padding: 1.2rem 0.8rem;
  }
  .result-card i {
    font-size: 1.7rem;
  }
  .result-card h3 {
    font-size: 0.95rem;
  }
  .result-card p {
    font-size: 0.75rem;
  }
}




/* SLIDER SECTION */
.tiny-steps-gallery {
  padding: 3rem 0;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  overflow: hidden;
}

.tiny-steps-gallery .section-heading {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: #b2c4e4;
  position: relative;
}

.tiny-steps-gallery .section-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #3b82f6;
  border-radius: 3px;
}

/* SLIDER CONTAINER */
.slider {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.slides-wrapper {
  overflow: hidden;
  border-radius: 16px;
}

.slides {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.45s ease-in-out;
}

/* SINGLE SLIDE */
.slide {
  position: relative;
  flex: 0 0 calc(33.333% - 1rem);
  height: 320px;
  border-radius: 14px;
  overflow: hidden;
  background: #1e293b;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.slide:hover img {
  transform: scale(1.07);
}

/* CAPTION */
.overlay-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem 0.8rem;
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.90), transparent);
  font-size: 0.95rem;
  letter-spacing: -0.3px;
  color: #d8dced;
}

/* NAV BUTTONS */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.6rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
  z-index: 10;
}

.prev:hover,
.next:hover {
  background: rgba(59, 130, 246, 0.85);
  transform: translateY(-50%) scale(1.1);
  border-color: rgba(59, 130, 246, 0.5);
}

.prev {
  left: 1rem;
}

.next {
  right: 1rem;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .slide {
    flex: 0 0 calc(50% - 1rem);
    height: 280px;
  }

  .prev,
  .next {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 600px) {
  .slide {
    flex: 0 0 100%;
    height: 260px;
  }


  .tiny-steps-gallery .section-heading {
  
  font-size: 1.15rem;
  }

  .slides {
    gap: 1rem;
  }

  .prev,
  .next {
    top: 65%;
    width: 38px;
    height: 38px;
  }
}




/* ===== PROJECT CTA ===== */
.project-cta {
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  text-align: center;
  border-radius: 12px;
  margin: 3rem 0;
  color: #e2e8f0;
}

.project-cta h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  font-family: 'Poppins', sans-serif;
  color: #b7cde3;
}

.project-cta p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
  color: #adb8d5;
}

.project-cta .cta-btn {
  display: inline-block;
  padding: 10px 25px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  background: #3b82f6;
  color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(59,130,246,0.3);
}

.project-cta .cta-btn:hover {
  background: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59,130,246,0.4);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .project-cta h2 {
    font-size: 1.4rem;
  }
  .project-cta p {
    font-size: 0.85rem;
  }
  .project-cta .cta-btn {
    padding: 9px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .project-cta {
    padding: 2rem 1rem;
    margin: 2rem 0;
  }
  .project-cta h2 {
    font-size: 1.3rem;
  }
  .project-cta p {
    font-size: 0.8rem;
  }
  .project-cta .cta-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
}


/* =============BLOG POST PAGE STARTS========== */

/* MODERN BLOG CARDS*/

#blog-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #39435c 0%, #314e87 100%);
  min-height: 60vh;
}

#blog-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2.5rem;
  padding: 1rem;
}

/* Blog Card Container */
.blog-item {
  background: rgba(30, 41, 59, 0.85);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent 60%);
  border-radius: 18px;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.blog-item:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  border-color: rgba(59, 130, 246, 0.25);
}

.blog-item:hover::before {
  opacity: 1;
}

/* Image Container */
.image-container {
  position: relative;
  height: 240px;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.blog-item:hover .image-container img {
  transform: scale(1.08);
}

/* Date Badge */
.date-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-item:hover .date-badge {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

/* Content Area */
.card-content {
  padding: 1.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.card-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 1rem;
  line-height: 1.4;
  letter-spacing: -0.3px;
  transition: color 0.3s ease;
}

.blog-item:hover .card-content h2 {
  color: #93c5fd;
}

.card-content p {
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  letter-spacing: -0.1px;
}

/* Meta Info */
.meta-info {
  display: flex;
  align-items: center;
  margin-bottom: 1.8rem;
  padding: 0.8rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 10px;
  border-left: 3px solid #3b82f6;
}

.author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.87rem;
  color: #cbd5e1;
}

.author i {
  color: #60a5fa;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.blog-item:hover .author i {
  transform: rotate(-15deg);
}

/* Read More Link */
.card-content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  color: white;
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.card-content a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.card-content a:hover::before {
  left: 100%;
}

.card-content a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
}

.card-content a i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.card-content a:hover i {
  transform: translateX(4px);
}

/* Loading State Animation */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

#blog-container:empty::before {
  content: 'Loading latest posts...';
  grid-column: 1/-1;
  text-align: center;
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 3rem;
  background: linear-gradient(
    90deg,
    rgba(30, 41, 59, 0.5) 25%,
    rgba(59, 130, 246, 0.15) 50%,
    rgba(30, 41, 59, 0.5) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
  border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  #blog-container {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  #blog-section {
    padding: 3rem 1rem;
  }
  
  #blog-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
    padding: 0.5rem;
  }
  
  .image-container {
    height: 220px;
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  .card-content h2 {
    font-size: 1.05rem;
  }
  
  .card-content p {
    font-size: 0.84rem;
  }
  
  .date-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 480px) {
  #blog-section {
    padding: 2.5rem 0.8rem;
  }
  
  #blog-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .image-container {
    height: 200px;
  }
  
  .card-content {
    padding: 1.3rem;
  }
  
  .card-content h2 {
    font-size: 1rem;
  }
  
  .card-content p {
    font-size: 0.82rem;
  }
  
  .meta-info {
    padding: 0.6rem;
  }
  
  .author {
    font-size: 0.85rem;
  }
  
  .card-content a {
    padding: 0.8rem 1.2rem;
    font-size: 0.85rem;
  }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
  .blog-item {
    background: rgba(23, 33, 49, 0.95);
    border-color: rgba(59, 130, 246, 0.15);
  }
  
  .blog-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
  }
}

/* Animation on scroll */
.blog-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for grid items */
#blog-container {
  counter-reset: blog-item;
}

.blog-item {
  animation-delay: calc(var(--item-index, 0) * 0.1s);
}

/* For JavaScript dynamic loading */
.blog-item.loading {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.4;
  }
}


/* =============SINGLE POST PAGE START========== */

/* === SINGLE BLOG POST PAGE - LIGHT THEME === */
.page-header {
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #9397d7);
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    margin-top: 40px;
    letter-spacing: -0.5px;
}

.breadcrumbs {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #64748b;
}

.breadcrumbs a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.breadcrumbs span {
    color: #475569;
}

#single-post-section {
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, #e1d9fc 0%, #e7e7ff 100%);
    min-height: 60vh;
}

.single-post-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.single-post-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Main Content */
.main-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.single-post-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.single-post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.single-post-meta {
    display: flex;
    gap: 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.single-post-meta i {
    color: #3b82f6;
    margin-right: 0.5rem;
}

.single-post-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #282944;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.4px;
}

.single-post-content {
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #475569;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
    margin: 1.5rem 0 1rem;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content img {
    max-width: 70%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
    margin-bottom: 0px;
}

.single-post-content ul,
.single-post-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.single-post-content li {
    margin-bottom: 0.5rem;
    color: #475569;
}

.share-box {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    border: 1px solid #e2e8f0;
}

.share-box h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.share-buttons a:nth-child(1) { background: #1877F2; } /* Facebook */
.share-buttons a:nth-child(2) { background: #1DA1F2; } /* Twitter */
.share-buttons a:nth-child(3) { background: #25D366; } /* WhatsApp */

.share-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background: #eff6ff;
    color: #3b82f6;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    background: #dbeafe;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.1);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar h3,
.sidebar h4 {
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-posts {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.related-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-post-item:hover {
    transform: translateX(5px);
}

.related-post-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.related-post-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.related-post-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #64748b;
}

.related-loading {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

.newsletter-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.newsletter-box p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.newsletter-input {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.newsletter-input input {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.newsletter-input input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.newsletter-input input::placeholder {
    color: #94a3b8;
}

.newsletter-input button {
    padding: 0.8rem;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.2);
}

.popular-tags,
.social-sidebar {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #dbeafe;
}

.tag:hover {
    background: #dbeafe;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.1);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links .facebook { background: #1877F2; }
.social-links .twitter { background: #1DA1F2; }

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 1024px) {
    .single-post-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .single-post-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.2rem;
        line-height: 1.2;
    }
    
    .single-post-title {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    .single-post-content {
        font-size: 0.86rem;
    }
    
    .main-content {
        padding: 0.5rem;
    }

    
.single-post-content img {
    max-width: 100%;

}

.single-post-meta {

    font-size: 0.76rem;

}

.single-post-meta i {
    color: #3b82f6;
    margin-right: 0.5rem;
}


}

@media (max-width: 480px) {
    .page-header {
        padding: 2rem 1rem;
    }
    
    #single-post-section {
        padding: 2rem 0.1rem;
    }
    
    .single-post-image {
        height: 250px;
    }
    
    .single-post-title {
        font-size: 1.1rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
}

/* Additional light theme enhancements */
.single-post-content a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-post-content a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.single-post-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #475569;
    font-style: italic;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

.single-post-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #334155;
}

.single-post-content pre {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    margin: 1.5rem 0;
}

.single-post-content pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* No post/error states */
.no-post-selected,
.post-not-found {
    background: #ffffff;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    grid-column: 1 / -1;
}

.no-post-selected h2,
.post-not-found h2 {
    color: #1e293b;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
}

.no-post-selected p,
.post-not-found p {
    color: #64748b;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1.5rem;
}




/* ====HOME PAGE BLOG SECTION */

#imf-latest-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #f0f6fb 0%, #8a90c6 100%);
}

.imf-wrap {
  max-width: 1100px;
  margin: auto;
  padding: 0 16px;
}

.imf-header h2 {
  font-size: 2rem;
  margin-bottom: 28px;
  color: #29395e;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
  font-weight: 600;
}

.imf-grid {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 24px;
}

#imf-posts-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.imf-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.imf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.imf-card img {
  width: 170px;
  height: 130px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.imf-card:hover img {
  transform: scale(1.06);
}

.imf-card-body {
  padding: 14px;
}

.imf-date {
  font-size: 0.75rem;
  color: #64748b;
  transition: color 0.2s ease;
}

.imf-card:hover .imf-date {
  color: #334155;
}

.imf-card-body h4 {
  margin: 6px 0;
  font-size: 1.05rem;
  color: #212d62;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.4px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.25s ease;
}

.imf-card:hover .imf-card-body h4 {
  color: #1d4ed8;
}

.imf-card-body p {
  font-size: 0.89rem;
  color: #5e5d81;
  line-height: 1.4;
  margin-bottom: 30px;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.2px;
}

.imf-card-body a {
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.imf-card-body a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: currentColor;
  transition: width 0.25s ease;
}

.imf-card-body a:hover::after {
  width: 100%;
}

.imf-side-cta {
  background: linear-gradient(135deg,#1e3a8a,#213359);
  color: #fff;
  padding: 26px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imf-side-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(30,58,138,0.35);
}

.imf-side-cta h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.4px;
}

.imf-side-cta p {
  opacity: 0.95;
  margin-bottom: 18px;
}

.imf-btn {
  display: inline-block;
  background: #fff;
  color: #1e3a8a;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.imf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  background: #f1f5f9;
}

.imf-loading {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 900px) {
  .imf-grid {
    grid-template-columns: 1fr;
  }

  .imf-card {
    flex-direction: column;
  }

  .imf-card img {
    width: 100%;
    height: 200px;
  }

  .imf-header h2 {
    font-size: 1.4rem;
    text-align: center;
  }

  .imf-card-body p {
    font-size: 0.86rem;
    margin-bottom: 30px;
  }

  .imf-card-body h4 {
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .imf-side-cta p {
    line-height: 1.4;
  }
}
