/* Newsletter Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none; /* JS toggles this */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay[style*="display: flex"] {
    opacity: 1;
}

.popup-box {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 420px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-overlay[style*="display: flex"] .popup-box {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: #9d0606;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.popup-close:hover {
    background: #f5f5f5;
    color: #333;
    transform: rotate(90deg);
}

.popup-box h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
    letter-spacing: -0.025em;
}

.popup-box > p {
    color: #718096;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 400;
}

#popupNewsletterForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#popupNewsletterForm input {
    padding: 0.875rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2d3748;
    font-family: inherit;
}

#popupNewsletterForm input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    transform: translateY(-1px);
}

#popupNewsletterForm input::placeholder {
    color: #a0aec0;
    font-size: 0.8125rem;
}

#popupNewsletterForm button {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

#popupNewsletterForm button:hover {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.3);
}

#popupNewsletterForm button:active {
    transform: translateY(0);
}

/* SUCCESS + ERROR MESSAGE FIXED */
.popup-message {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 1rem;
    padding: 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    display: none; /* Hidden by default */
    opacity: 0;
    transition: all 0.35s ease;
}

/* Show animation */
.popup-message.show {
    display: block;
    opacity: 1;
}

/* Success = DARK NAVY BLUE */
.popup-message.success {
    background: #254f89;
    color: #ffffff;
    border: 1px solid #003366;
}

/* Error = Red */
.popup-message.error {
    background: #ffe5e5;
    color: #b30000;
    border: 1px solid #ffb3b3;
}

/* Responsive */
@media (max-width: 480px) {
    .popup-box {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .popup-box h3 {
        font-size: 1.25rem;
    }

    .popup-box > p {
        font-size: 0.8125rem;
    }
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

#popupNewsletterForm.shake {
    animation: shake 0.5s ease-in-out;
}



/* ==========BLOG PAGE START======= */

#blog-section {
  background: linear-gradient(135deg, #e5e0fa, #dbc4e9);
  padding-top: 40px;
  padding-bottom: 60px;
}



#blog-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Blog Card */
.blog-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  position: relative;
}

.blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Image Container */
.blog-item .image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-item:hover img {
  transform: scale(1.05);
}

/* Date Badge - Top Right */
.blog-item .date-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(55, 8, 112, 0.95);
  padding: 6px 12px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Card Content */
.blog-item .card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-item h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 10px 0;
  color: #3c327e;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.4px;
}

.blog-item p {
  font-family: 'Onest', sans-serif;
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 20px 0;
  line-height: 1.5;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Author & Meta Info */
.blog-item .meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.blog-item .author {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-item .author i {
  font-size: 0.7rem;
  color: #888;
}

.blog-item .author span {
  font-weight: 500;
  color: #333;
}

/* Read More Button */
.blog-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  background: #30135c;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.blog-item a:hover {
  background: #0b409c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 64, 156, 0.2);
}

.blog-item a i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.blog-item a:hover i {
  transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  #blog-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  #blog-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .blog-item .image-container {
    height: 180px;
  }
}

@media (max-width: 576px) {
  #blog-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 15px;
  }
  
  .blog-item .image-container {
    height: 200px;
  }
  
  .blog-item .date-badge {
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 5px 10px;
  }
  
  .blog-item .card-content {
    padding: 15px;
  }
  
  .blog-item h2 {
    font-size: 1rem;
  }
  
  .blog-item p {
    font-size: 0.8rem;
  }
}



/* Newsletter Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none; /* JS toggles this */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay[style*="display: flex"] {
    opacity: 1;
}

.popup-box {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 420px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-overlay[style*="display: flex"] .popup-box {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: #9d0606;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.popup-close:hover {
    background: #f5f5f5;
    color: #333;
    transform: rotate(90deg);
}

.popup-box h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
    letter-spacing: -0.025em;
}

.popup-box > p {
    color: #718096;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 400;
}

#popupNewsletterForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#popupNewsletterForm input {
    padding: 0.875rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2d3748;
    font-family: inherit;
}

#popupNewsletterForm input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    transform: translateY(-1px);
}

#popupNewsletterForm input::placeholder {
    color: #a0aec0;
    font-size: 0.8125rem;
}

#popupNewsletterForm button {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

#popupNewsletterForm button:hover {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.3);
}

#popupNewsletterForm button:active {
    transform: translateY(0);
}

/* SUCCESS + ERROR MESSAGE FIXED */
.popup-message {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 1rem;
    padding: 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    display: none; /* Hidden by default */
    opacity: 0;
    transition: all 0.35s ease;
}

/* Show animation */
.popup-message.show {
    display: block;
    opacity: 1;
}

/* Success = DARK NAVY BLUE */
.popup-message.success {
    background: #254f89;
    color: #ffffff;
    border: 1px solid #003366;
}

/* Error = Red */
.popup-message.error {
    background: #ffe5e5;
    color: #b30000;
    border: 1px solid #ffb3b3;
}

/* Responsive */
@media (max-width: 480px) {
    .popup-box {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .popup-box h3 {
        font-size: 1.25rem;
    }

    .popup-box > p {
        font-size: 0.8125rem;
    }
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

#popupNewsletterForm.shake {
    animation: shake 0.5s ease-in-out;
}



/* ==========BLOG PAGE START======= */

#blog-section {
  background: linear-gradient(135deg, #e5e0fa, #dbc4e9);
  padding-top: 40px;
  padding-bottom: 60px;
}



#blog-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Blog Card */
.blog-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  position: relative;
}

.blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Image Container */
.blog-item .image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-item:hover img {
  transform: scale(1.05);
}

/* Date Badge - Top Right */
.blog-item .date-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(55, 8, 112, 0.95);
  padding: 6px 12px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Card Content */
.blog-item .card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-item h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 10px 0;
  color: #3c327e;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.4px;
}

.blog-item p {
  font-family: 'Onest', sans-serif;
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 20px 0;
  line-height: 1.5;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Author & Meta Info */
.blog-item .meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.blog-item .author {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-item .author i {
  font-size: 0.7rem;
  color: #888;
}

.blog-item .author span {
  font-weight: 500;
  color: #333;
}

/* Read More Button */
.blog-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  background: #30135c;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.blog-item a:hover {
  background: #0b409c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 64, 156, 0.2);
}

.blog-item a i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.blog-item a:hover i {
  transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  #blog-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  #blog-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .blog-item .image-container {
    height: 180px;
  }
}

@media (max-width: 576px) {
  #blog-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 15px;
  }
  
  .blog-item .image-container {
    height: 200px;
  }
  
  .blog-item .date-badge {
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 5px 10px;
  }
  
  .blog-item .card-content {
    padding: 15px;
  }
  
  .blog-item h2 {
    font-size: 1rem;
  }
  
  .blog-item p {
    font-size: 0.8rem;
  }
}



/* ===== SINGLE POST SECTION ===== */
/* ===== SINGLE POST SECTION ===== */
#single-post-section {
  background: linear-gradient(135deg, #f5f3ff, #f0e6ff);
  padding: 40px 20px 60px;
  min-height: 100vh;
}

.single-post-container {
  max-width: 1300px;
  margin: 0 auto;
}

/* Single Post Wrapper with Sidebar */
.single-post-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
}

@media (max-width: 1100px) {
  .single-post-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .sidebar {
    order: 2;
  }
}

/* Main Content */
.main-content {
  width: 100%;
}

/* Single Post Card */
.single-post-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 40px;
  position: relative;
  border: 1px solid #e9e1f5;
}

/* Featured Image */
.single-post-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0e6ff;
}

/* Post Meta - Date & Author */
.single-post-meta {
  display: flex;
  gap: 25px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #f0e6ff;
}

.single-post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #5a4b81;
  background: #f5f3ff;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.single-post-meta span:hover {
  background: #e5e0fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.single-post-meta i {
  font-size: 0.8rem;
  color: #7c6ab8;
}

/* Post Title */
.single-post-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.3;
  color: #3c327e;
  margin: 0 0 30px 0;
  letter-spacing: -0.5px;
}

/* Post Content */
.single-post-content {
  font-family: 'Onest', sans-serif;
  font-size: 0.92rem;
  line-height: 1.8;
  color: #333;
}

.single-post-content > * {
  margin-bottom: 1.5rem;
}

.single-post-content > *:last-child {
  margin-bottom: 0;
}

/* Typography within content */
.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  font-family: 'Poppins', sans-serif;
  color: #3c327e;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.single-post-content h1 { font-size: 1.75rem; }
.single-post-content h2 { font-size: 1.5rem; }
.single-post-content h3 { font-size: 1.25rem; }
.single-post-content h4 { font-size: 1.125rem; }

.single-post-content p {
  margin-bottom: 1.5rem;
}

.single-post-content a {
  color: #30135c;
  text-decoration: none;
  border-bottom: 1px solid rgba(48, 19, 92, 0.3);
  transition: all 0.2s ease;
  font-weight: 500;
}

.single-post-content a:hover {
  color: #0b409c;
  border-bottom-color: #0b409c;
}

.single-post-content ul,
.single-post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.single-post-content li {
  margin-bottom: 0.5rem;
}

.single-post-content blockquote {
  border-left: 4px solid #7c6ab8;
  padding-left: 1.5rem;
  margin-left: 0;
  margin-right: 0;
  font-style: italic;
  color: #5a4b81;
  background: #f5f3ff;
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  font-family: 'Poppins', sans-serif;
}

.single-post-content code {
  background: #f5f3ff;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875em;
  color: #7c6ab8;
  font-family: 'Consolas', monospace;
}

.single-post-content pre {
  background: #3c327e;
  color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875em;
  line-height: 1.6;
  border: 1px solid #5a4b81;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.single-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375em;
  border: 1px solid #e9e1f5;
  border-radius: 8px;
  overflow: hidden;
}

.single-post-content table th,
.single-post-content table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e9e1f5;
  text-align: left;
}

.single-post-content table th {
  background: #f5f3ff;
  font-weight: 600;
  color: #3c327e;
}

.single-post-content table tr:nth-child(even) {
  background: #faf9ff;
}

/* Share Box */
.share-box {
  margin-top: 50px;
  padding: 30px;
  background: #f5f3ff;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #e5e0fa;
}

.share-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  color: #3c327e;
  margin: 0 0 20px 0;
  font-weight: 600;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.share-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.share-buttons a:nth-child(1) {
  background: #1877F2; /* Facebook blue */
}

.share-buttons a:nth-child(2) {
  background: #1DA1F2; /* Twitter blue */
}

.share-buttons a:nth-child(3) {
  background: #25D366; /* WhatsApp green */
}

.share-buttons a:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Back to Blog Button */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #30135c;
  text-decoration: none;
  margin-top: 40px;
  padding: 12px 25px;
  background: #f5f3ff;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid #e5e0fa;
}

.back-to-blog:hover {
  background: #7c6ab8;
  color: white;
  transform: translateX(-5px);
}

/* ===== SIDEBAR STYLING ===== */
.sidebar {
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9e1f5;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: #3c327e;
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0e6ff;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.sidebar h3 i {
  margin-right: 10px;
  color: #7c6ab8;
  font-size: 0.9rem;
}

/* Related Posts */
.related-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.related-loading {
  font-family: 'Onest', sans-serif;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  padding: 20px 0;
}

.related-post-item {
  display: flex;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f5f3ff;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.related-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-post-item:hover {
  transform: translateX(5px);
}

.related-post-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #f0e6ff;
}

.related-post-content h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #3c327e;
  margin: 0 0 8px 0;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-content .related-post-date {
  font-family: 'Onest', sans-serif;
  font-size: 0.75rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 5px;
}

.related-post-content .related-post-date i {
  font-size: 0.7rem;
  color: #7c6ab8;
}

/* Newsletter Signup */
.newsletter-box {
  background: linear-gradient(135deg, #f5f3ff, #e5e0fa);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  border: 1px solid #d0c5ed;
}

.newsletter-box h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #3c327e;
  margin: 0 0 15px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.newsletter-box p {
  font-family: 'Onest', sans-serif;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.newsletter-input {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-input input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d0c5ed;
  border-radius: 8px;
  font-family: 'Onest', sans-serif;
  font-size: 0.9rem;
  background: white;
  box-sizing: border-box;
}

.newsletter-input input:focus {
  outline: none;
  border-color: #7c6ab8;
}

.newsletter-input button {
  background: #30135c;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 5px;
}

.newsletter-input button:hover {
  background: #0b409c;
  transform: translateY(-2px);
}

/* Desktop layout - name and email side by side */
@media (min-width: 768px) {
  .newsletter-input {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .newsletter-input input {
    flex: 1;
    min-width: 0; /* Prevent overflow */
  }
  
  .newsletter-input input[name="name"] {
    flex: 0 0 calc(50% - 5px);
  }
  
  .newsletter-input input[name="email"] {
    flex: 0 0 calc(50% - 5px);
  }
  
  .newsletter-input button {
    flex: 0 0 100%;
    width: auto;
    margin-top: 0;
  }
}

/* Better layout for wider screens */
@media (min-width: 992px) {
  .newsletter-input {
    flex-direction: column;
    gap: 12px;
  }
  
  .newsletter-input input {
    width: 100%;
    flex: 1;
  }
  
  .newsletter-input button {
    width: 100%;
    flex: 1;
  }
}

/* Popular Tags */
.popular-tags {
  margin-bottom: 30px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.tag {
  background: #f5f3ff;
  color: #5a4b81;
  padding: 6px 12px;
  border-radius: 20px;
  font-family: 'Onest', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #e5e0fa;
}

.tag:hover {
  background: #7c6ab8;
  color: white;
  transform: translateY(-2px);
}

/* Social Media Links */
.social-sidebar {
  margin-top: 30px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a.facebook { background: #1877F2; }
.social-links a.twitter { background: #1DA1F2; }
.social-links a.linkedin { background: #0077B5; }
.social-links a.youtube { background: #FF0000; }

.social-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 1100px) {
  .single-post-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .sidebar {
    order: 2;
    position: static;
  }
}

@media (max-width: 768px) {
  #single-post-section {
    padding: 20px 15px 40px;
  }
  
  .single-post-card {
    padding: 25px;
    border-radius: 12px;
  }
  
  .single-post-image {
    height: 250px;
    margin-bottom: 20px;
  }
  
  .single-post-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
  
  .single-post-meta {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .single-post-content {
    font-size: 0.91rem;
    line-height: 1.7;
  }
  
  .share-box {
    padding: 20px;
    margin-top: 40px;
  }
  
  .share-buttons {
    gap: 12px;
  }
  
  .share-buttons a {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .sidebar {
    padding: 20px;
  }
  
  .related-post-item {
    padding-bottom: 15px;
    margin-bottom: 15px;
  }
  

}

@media (max-width: 480px) {
  .single-post-card {
    padding: 20px;
  }
  
  .single-post-image {
    height: 200px;
  }
  
  .single-post-title {
    font-size: 1.3rem;
  }
  
  .single-post-content h1 { font-size: 1.5rem; }
  .single-post-content h2 { font-size: 1.375rem; }
  .single-post-content h3 { font-size: 1.25rem; }
  
  .single-post-content pre {
    padding: 1rem;
    font-size: 0.75em;
  }
  
  .share-box h3 {
    font-size: 1.1rem;
  }
  
  .newsletter-input {
    flex-direction: column;
  }
  
  
}

/* Loading Animation */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.single-post-card {
  animation: cardFadeIn 0.6s ease;
}