/* =============================================
   JEEVAN SANKALP - BLOG POST EXTERNAL CSS
   Use this file for ALL blog pages
   ============================================= */

/* ---- GOOGLE FONT ---- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ---- BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  background: #f5f7fa;
  color: #2d3748;
  line-height: 1.8;
}

/* ---- BLOG HERO BANNER ---- */
.blog-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #c0392b 100%);
  padding: 160px 20px 40px;
  text-align: center;
  color: #fff;
}

.blog-hero .breadcrumb-bar {
  font-size: 13px;
  margin-bottom: 14px;
  color: #cbd5e1;
}

.blog-hero .breadcrumb-bar a {
  color: #ff6b6b;
  text-decoration: none;
}

.blog-hero h1 {
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  max-width: 860px;
  margin: 0 auto 16px;
}

.blog-hero .meta-bar {
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-hero .meta-bar span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ---- BLOG LAYOUT WRAPPER ---- */
.blog-layout {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* ---- MAIN CONTENT ---- */
.blog-content {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.blog-content .featured-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.blog-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 32px 0 12px;
  padding-left: 14px;
  border-left: 4px solid #e74c3c;
}

.blog-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1e3a5f;
  margin: 24px 0 10px;
}

.blog-content p {
  font-size: 15px;
  color: #4a5568;
  margin-bottom: 16px;
  line-height: 1.85;
}

.blog-content ul, .blog-content ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.blog-content li {
  font-size: 15px;
  color: #4a5568;
  margin-bottom: 8px;
  line-height: 1.7;
}

.blog-content a {
  color: #e74c3c;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed #e74c3c;
  transition: color 0.2s;
}

.blog-content a:hover {
  color: #c0392b;
}

/* ---- HIGHLIGHT BOX ---- */
.highlight-box {
  background: linear-gradient(135deg, #fff5f5, #fef9f0);
  border-left: 5px solid #e74c3c;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}

.highlight-box p {
  margin: 0;
  font-size: 15px;
  font-style: italic;
  color: #5a3a3a;
}

/* ---- INFO CARDS ---- */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.info-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  border-top: 3px solid #e74c3c;
}

.info-card .icon,
.info-card-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.info-card h4,
.info-card-body strong {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  display: block;
}

.info-card p,
.info-card-body p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, #0f172a, #e74c3c);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #fff;
  margin: 32px 0;
}

.cta-banner h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 10px;
}

.cta-banner p {
  color: #fecaca;
  font-size: 14px;
  margin-bottom: 18px;
}

.cta-btn {
  display: inline-block;
  background: #fff;
  color: #e74c3c;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 6px;
  border-bottom: none !important;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: #c0392b;
}

.cta-btn.outline,
.cta-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.cta-btn.outline:hover,
.cta-btn-outline:hover {
  background: #fff;
  color: #e74c3c;
}

/* ---- FAQ SECTION ---- */
.faq-section {
  margin: 32px 0;
}

.faq-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 4px solid #e74c3c;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.faq-question {
  background: #f8fafc;
  border: none;
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  gap: 10px;
}

/* icon via .faq-icon span — no ::after needed */
.faq-icon {
  font-size: 22px;
  color: #e74c3c;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s;
  line-height: 1;
}

.faq-answer {
  display: none;
  padding: 16px 20px;
  font-size: 14px;
  color: #4a5568;
  background: #fff;
  border-top: 1px solid #f0f4f8;
  line-height: 1.8;
}

/* ---- INTERNAL LINKS BOX ---- */
.related-links {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 22px;
  margin: 28px 0;
}

.related-links h3,
.related-links h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.related-links ul {
  padding-left: 0;
  list-style: none;
}

.related-links ul li {
  margin-bottom: 8px;
}

.related-links ul li::before {
  content: '→ ';
  color: #e74c3c;
  font-weight: 700;
}

.related-links ul li a {
  color: #1e3a5f;
  border-bottom: 1px dashed #93c5fd;
}

/* =============================================
   SIDEBAR
   ============================================= */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---- SIDEBAR CARD BASE ---- */
.sidebar-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.07);
}

.sidebar-card-header {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.sidebar-card-header .s-icon {
  font-size: 20px;
}

.sidebar-card-body {
  padding: 18px 20px;
}

/* ---- SIDEBAR CARD: inner content padding ---- */
.sidebar-card .cat-list,
.sidebar-card .support-list,
.sidebar-card .service-list { padding: 6px 20px 14px; }

.sidebar-card .emergency-btn { margin: 0 20px 14px; display: block; }

.sidebar-card .recent-post-item { padding: 10px 20px; border-bottom: 1px solid #f1f5f9; }
.sidebar-card .recent-post-item:last-child { border-bottom: none; }

.sidebar-card .recent-post-item a {
  font-size: 13px; font-weight: 600; color: #0f172a;
  text-decoration: none; display: block; line-height: 1.45; border-bottom: none;
}
.sidebar-card .recent-post-item a:hover { color: #e74c3c; }
.sidebar-card .recent-post-item .post-date { font-size: 11px; color: #94a3b8; display: block; margin-top: 3px; }

/* sidebar-card-header as plain text (no child h3 needed) */
.sidebar-card-header {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* sidebar colour variants */
.sidebar-red .sidebar-card-header  { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.sidebar-navy .sidebar-card-header { background: linear-gradient(135deg, #0f172a, #1e3a5f); }

/* ---- CATEGORIES ---- */
.cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cat-list li {
  border-bottom: 1px solid #f1f5f9;
}

.cat-list li:last-child {
  border-bottom: none;
}

.cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 4px;
  font-size: 14px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, padding-left 0.2s;
}

.cat-list li a:hover {
  color: #e74c3c;
  padding-left: 8px;
}

.cat-list li a .cat-count {
  background: #fee2e2;
  color: #e74c3c;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ---- SUPPORT CARD ---- */
.support-card-header {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.support-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.support-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
  color: #374151;
}

.support-list li:last-child {
  border-bottom: none;
}

.support-list li .s-label {
  font-weight: 600;
  color: #0f172a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 70px;
}

.support-list li a {
  color: #e74c3c;
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
}

.support-list li a:hover {
  text-decoration: underline;
}

.emergency-btn {
  display: block;
  background: #e74c3c;
  color: #fff !important;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 14px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s;
  border-bottom: none !important;
}

.emergency-btn:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

/* ---- SERVICES CARD ---- */
.services-card-header {
  background: linear-gradient(135deg, #1a5276, #2980b9);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.service-list li a:hover {
  color: #e74c3c;
}

.service-list li a .srv-dot {
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
  flex-shrink: 0;
}

.service-list li a:hover .srv-dot {
  background: #e74c3c;
}

/* ---- RECENT POSTS SIDEBAR CARD ---- */
.recent-post-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.recent-post-item:last-child {
  border-bottom: none;
}

.recent-post-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.recent-post-item .rp-text a {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  line-height: 1.4;
  border-bottom: none;
}

.recent-post-item .rp-text a:hover {
  color: #e74c3c;
}

.recent-post-item .rp-text span {
  font-size: 11px;
  color: #94a3b8;
}

/* ---- TAGS ---- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
}

.tag-cloud a {
  background: #f1f5f9;
  color: #374151;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  border-bottom: none;
  transition: background 0.2s, color 0.2s;
}

.tag-cloud a:hover {
  background: #e74c3c;
  color: #fff;
}

/* ---- SITE FOOTER (used by all blog pages) ---- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 60px 20px 0;
  font-family: 'Poppins', sans-serif;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.footer-col img { display: block; }

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e74c3c;
  display: inline-block;
}

.footer-col p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.75;
  margin: 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  padding: 5px 0;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: #e74c3c; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #64748b;
}

/* floating WhatsApp help button */
.float-help {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 9998;
  transition: transform 0.2s;
}
.float-help:hover { transform: scale(1.1); }

/* ---- LEGACY FOOTER ALIASES (kept for compatibility) ---- */
.main-footer { background:#0f172a; color:#fff; padding:60px 20px 20px; font-family:'Poppins',sans-serif; }
.footer-grid { display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; max-width:1200px; margin:0 auto; }
.footer-box { flex:1; min-width:250px; }
.footer-box h3 { font-size:20px; margin-bottom:15px; color:#fff; }
.footer-box p { font-size:14px; color:#cbd5e1 !important; line-height:1.6; }
.footer-bottom-bar { text-align:center; margin-top:30px; border-top:1px solid #1e293b; padding-top:20px; font-size:13px; color:#94a3b8; }

/* ---- DROPDOWN (shared nav) ---- */
@media (min-width: 768px) {
  .navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.dropdown-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.dropdown-menu li a { padding: 10px 15px; display: block; transition: 0.3s; }
.dropdown-menu li a:hover { background: #ff3c3c; color: #fff; }
.dropdown:hover .fa { transform: rotate(180deg); transition: 0.3s; }

/* ---- FLOATING HELP BUTTON ---- */
.help-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; }
.help-main {
  background: #ff0000;
  color: #fff;
  padding: 12px 18px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-options { display: none; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 10px; }
.help-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.whatsapp { background: #25D366; }
.call { background: #007bff; }

/* ---- GOOGLE TRANSLATE — hidden on blog pages ---- */
#google_translate_element { display: none !important; }
.goog-te-banner-frame,
.skiptranslate { display: none !important; }
body { top: 0 !important; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .blog-content { padding: 24px 18px; }
  .blog-content .featured-img { height: 220px; }
  .blog-hero h1 { font-size: 22px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { flex-direction: column; text-align: center; }
  .social-box { justify-content: center; }

  .help-main span { display: none; }
  .help-main { padding: 14px; font-size: 20px; border-radius: 50%; }

  #google_translate_element {
    top: auto;
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .info-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .info-cards { grid-template-columns: 1fr; }
  .blog-layout { padding: 0 12px; }
}
