@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

:root {
  --primary: #0056d2;
  --primary-dark: #0046b3;
  --accent: #ff6a00;
  --accent-dark: #e55a00;
  --dark: #0f172a;
  --text: #334155;
  --text-light: #64748b;
  --light-bg: #f8fafc;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.15);
}

/* Override hero section for blog posts */
.blog-wrapper .hero,
.blog-wrapper .hero-overlay,
.blog-wrapper section.hero,
.blog-wrapper footer,
.blog-wrapper .footer {
  background: none !important;
  background-image: none !important;
}

/* Ensure footer has correct background */
.blog-wrapper footer,
.blog-wrapper .footer {
  background: #0f172a !important;
}

/* Force Inter font for all blog content */
.blog-wrapper,
.blog-wrapper *,
.blog-article,
.blog-article * {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Blog Hero Section */
.blog-wrapper {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 80px 0 60px;
  min-height: 100vh;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Blog Cards Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

/* Premium Blog Cards */
.result-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
  position: relative;
  display: flex;
  flex-direction: column;
}

.result-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.result-card:hover::before {
  transform: scaleX(1);
}

.result-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.result-card:hover img {
  transform: scale(1.05);
}

.result-card-content {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.result-card .category-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(0, 86, 210, 0.1), rgba(255, 106, 0, 0.1));
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 86, 210, 0.2);
}

.result-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 16px 0;
  line-height: 1.3;
  flex: 1;
}

.result-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px 0;
  flex: 1;
}

/* Premium Read More Button */
.result-card .read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.3);
  position: relative;
  overflow: hidden;
}

.result-card .read-more-btn::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.5s ease;
}

.result-card .read-more-btn:hover::before {
  left: 100%;
}

.result-card .read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 86, 210, 0.4);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.result-card .read-more-btn span {
  transition: transform 0.3s ease;
}

.result-card .read-more-btn:hover span {
  transform: translateX(4px);
}

/* Blog Article Styling */
.blog-article {
  background: white;
  border-radius: var(--radius-lg);
  padding: 60px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.blog-meta {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-article h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 30px 0;
  line-height: 1.2;
  font-family: "Playfair Display", "Inter", serif;
}

.blog-featured-image {
  margin: 0 0 40px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-featured-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* Blog Content Formatting */
.blog-article h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin: 48px 0 24px 0;
  line-height: 1.3;
  position: relative;
  padding-left: 20px;
}

.blog-article h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.blog-article h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--dark);
  margin: 32px 0 16px 0;
  line-height: 1.4;
}

.blog-article p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 20px 0;
}

.blog-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: var(--shadow);
  display: block;
}

.blog-article ul, .blog-article ol {
  margin: 20px 0;
  padding-left: 30px;
}

.blog-article li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 8px;
}

.blog-article strong, .blog-article b {
  color: var(--dark);
  font-weight: 600;
}

.blog-article a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.blog-article a:hover {
  border-bottom-color: var(--primary);
}

.blog-article blockquote {
  margin: 30px 0;
  padding: 20px 30px;
  background: linear-gradient(135deg, rgba(0, 86, 210, 0.05), rgba(255, 106, 0, 0.05));
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  font-style: italic;
  color: var(--text);
}

/* CTA Section */
.blog-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 60px 0;
  box-shadow: 0 10px 30px rgba(0, 86, 210, 0.3);
}

.blog-cta h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: white;
}

.blog-cta p {
  font-size: 18px;
  margin: 0 0 32px 0;
  opacity: 0.9;
}

.blog-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.blog-btn.orange {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.blog-btn.orange:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.4);
}

.blog-btn.white {
  background: white;
  color: var(--primary);
  border-color: white;
}

.blog-btn.white:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
}

/* Author Section */
.blog-author {
  background: var(--light-bg);
  padding: 24px 32px;
  border-radius: var(--radius);
  margin: 40px 0;
  border: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
}

/* Social Share Section */
.blog-share-section {
  margin: 48px 0;
  padding: 32px;
  background: linear-gradient(135deg, rgba(0, 86, 210, 0.03), rgba(255, 106, 0, 0.03));
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.blog-share-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 24px 0;
  text-align: center;
}

.social-share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.share-btn svg {
  width: 16px;
  height: 16px;
}

.share-btn.facebook {
  background: #1877f2;
  color: white;
}

.share-btn.facebook:hover {
  background: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.share-btn.twitter {
  background: #1da1f2;
  color: white;
}

.share-btn.twitter:hover {
  background: #1a91da;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.share-btn.linkedin {
  background: #0077b5;
  color: white;
}

.share-btn.linkedin:hover {
  background: #006699;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.share-btn.whatsapp {
  background: #25d366;
  color: white;
}

.share-btn.whatsapp:hover {
  background: #20b954;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.share-btn.copy {
  background: var(--dark);
  color: white;
}

.share-btn.copy:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

/* FAQ Section */
.blog-faq {
  margin: 48px 0;
  padding: 32px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.blog-faq h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 32px 0;
  text-align: center;
}

.blog-faq details {
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
}

.blog-faq summary {
  padding: 20px;
  background: var(--light-bg);
  cursor: pointer;
  font-weight: 600;
  color: var(--dark);
  transition: background 0.3s ease;
}

.blog-faq summary:hover {
  background: var(--border-light);
}

.blog-faq p {
  padding: 20px;
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

/* Related Posts Section */
.related-posts {
  margin: 48px 0;
  padding: 32px;
  background: linear-gradient(135deg, rgba(0, 86, 210, 0.03), rgba(255, 106, 0, 0.03));
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.related-posts h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 32px 0;
  text-align: center;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.related-post-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0,0,0,0.1);
  border-top: 4px solid #ff6a00;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.related-post-card:hover {
  transform: translateY(-18px) scale(1.04);
  box-shadow: 0 28px 64px rgba(0,82,255,0.28);
  border-color: var(--primary-blue);
}

.related-post-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.related-post-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px 0;
  line-height: 1.3;
  font-family: 'Raleway', Arial, sans-serif;
}

.related-post-card p {
  font-size: 13px;
  color: #1e293b;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
  flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-wrapper {
    padding: 40px 20px;
  }
  
  .results-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  
  .blog-article {
    padding: 30px 20px;
  }
  
  .blog-article h1 {
    font-size: 32px;
  }
  
  .blog-article h2 {
    font-size: 24px;
  }
  
  .blog-cta {
    padding: 30px 20px;
  }
  
  .blog-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .blog-btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .social-share-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  
  .related-post-card {
    padding: 16px;
  }
  
  .related-post-card img {
    height: 140px;
  }
  
  .result-card {
    padding: 20px 16px;
  }
  
  .result-card img {
    height: 160px;
  }
  
  .result-card h3 {
    font-size: 16px;
  }
  
  .result-card p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .blog-container {
    padding: 0 15px;
  }
  
  .result-card-content {
    padding: 24px;
  }
  
  .blog-article {
    padding: 20px;
  }
  
  .blog-article h1 {
    font-size: 28px;
  }
}

/* Blog Cards - Service Card Style */
.result-card {
  background: var(--white);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  border: 1px solid rgba(0,0,0,0.1);
  border-top: 4px solid #ff6a00;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.result-card:hover {
  transform: translateY(-18px) scale(1.04);
  box-shadow: 0 28px 64px rgba(0,82,255,0.28);
  border-color: var(--primary-blue);
}

.result-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.result-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,106,0,0.15);
  color: #ff6a00;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid rgba(255,106,0,0.3);
}

.result-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.4;
  font-family: 'Raleway', Arial, sans-serif;
}

.result-card p {
  font-size: 15px;
  color: #1e293b;
  line-height: 1.7;
  margin-bottom: 20px;
  font-weight: 400;
  flex: 1;
}

.result-card .read-more-btn {
  background: var(--accent-orange);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(255,106,0,0.3);
  width: auto;
  align-self: center;
}

.result-card .read-more-btn:hover {
  background: #e56900;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,106,0,0.4);
}

/* Social Share Buttons */
.blog-share-section {
  margin: 40px 0;
  padding: 30px;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.blog-share-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
}

.social-share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.share-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.share-btn.facebook { 
  background: #1877f2; 
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.share-btn.facebook:hover {
  background: #166fe5;
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.share-btn.x { 
  background: #000000; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-btn.x:hover {
  background: #1a1a1a;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.share-btn.linkedin { 
  background: #0077b5; 
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.share-btn.linkedin:hover {
  background: #006699;
  box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.share-btn.whatsapp { 
  background: #25d366; 
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.share-btn.whatsapp:hover {
  background: #20b954;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.share-btn.copy { 
  background: #64748b; 
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.share-btn.copy:hover {
  background: #475569;
  box-shadow: 0 8px 25px rgba(100, 116, 139, 0.4);
}

.blog-wrapper {
  padding: 60px 20px;
  background: var(--light-bg);
}

.blog-container {
  max-width: 1280px;
  margin: auto;
}

.blog-article {
  background: white;
  border-radius: var(--radius);
  padding: 60px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.blog-meta {
  display: block;
  font-size: 15px;
  color: #64748b;
  margin-bottom: 25px;
  margin-top: 0;
}

.blog-article h1 {
  display: block;
  font-size: 52px !important;
  font-weight: 800 !important;
  color: var(--dark) !important;
  margin-bottom: 40px !important;
  margin-top: 0 !important;
  line-height: 1.2 !important;
  padding-bottom: 10px;
}

.blog-article h2 {
  font-size: 34px;
  margin-top: 55px;
  color: var(--primary);
}

.blog-article h3 {
  font-size: 26px;
  margin-top: 35px;
  color: var(--dark);
}

.blog-article p,
.blog-article li {
  font-size: 19px;
  line-height: 1.9;
  margin-bottom: 20px;
}

.blog-featured-image {
  display: block;
  margin: 50px 0 60px 0 !important;
  padding: 0;
  clear: both;
  width: 100%;
  position: relative;
}

.blog-featured-image img {
  display: block;
  width: 100% !important;
  max-height: 420px !important;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0;
  padding: 0;
}

.blog-cta {
  margin-top: 70px;
  padding: 50px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0b5cff, #003bb3);
  color: white;
  text-align: center;
}

.blog-cta h2 {
  color: white;
  margin: 0 0 12px;
}

.blog-cta p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
}

.blog-cta-buttons {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-btn {
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s ease;
}

.blog-btn.orange {
  background: #ff6a00;
  color: white;
}

.blog-btn.white {
  background: white;
  color: #0b5cff;
}

.blog-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.blog-author {
  display: block;
  margin-top: 55px !important;
  padding: 28px 35px !important;
  border-radius: 14px;
  background: #e2e8f0 !important;
  font-size: 17px !important;
  color: #0f172a !important;
  line-height: 1.7 !important;
  font-weight: 500 !important;
  border: 1px solid #cbd5e1;
}

.blog-author strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.blog-faq {
  margin-top: 70px;
}

.blog-faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.blog-faq summary {
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.blog-faq summary::after {
  content: "+";
  font-size: 22px;
  transition: 0.3s;
}

.blog-faq details[open] summary::after {
  content: "×";
  transform: rotate(180deg);
}

.blog-faq p {
  margin-top: 12px;
  font-size: 17px;
}

@media(max-width: 768px) {
  .blog-article {
    padding: 28px;
  }

  .blog-article h1 {
    font-size: 34px;
  }

  .blog-article p {
    font-size: 17px;
  }

  .blog-cta {
    padding: 35px 20px;
  }

  .blog-cta-buttons {
    flex-direction: column;
  }

  .blog-btn {
    display: block;
    margin: 10px 0;
  }

  .result-card-content {
    padding: 20px;
  }

  .social-share-buttons {
    justify-content: center;
  }
}
