/* UdyogBill blog — rich reading layout for all phases */

:root {
  --ub-blog-green: #16a34a;
  --ub-blog-green-dark: #15803d;
  --ub-blog-orange: #f97316;
  --ub-blog-orange-dark: #ea580c;
  --ub-blog-max: 1320px;
  --ub-blog-pad-x: 1rem;
}

.ub-blog-page {
  max-width: var(--ub-blog-max);
  width: 100%;
  margin: 0 auto;
  padding: 24px var(--ub-blog-pad-x) 48px;
  box-sizing: border-box;
}

.ub-blog-breadcrumb {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.5;
}

.ub-blog-breadcrumb a {
  color: var(--ub-blog-orange-dark);
  text-decoration: none;
}

.ub-blog-breadcrumb a:hover {
  text-decoration: underline;
}

.ub-blog-hero {
  background: linear-gradient(135deg, var(--ub-blog-green-dark) 0%, var(--ub-blog-green) 42%, var(--ub-blog-orange) 100%);
  border-radius: 16px;
  padding: 28px 24px 24px;
  margin-bottom: 28px;
  border-left: 5px solid var(--ub-blog-orange);
  box-shadow: 0 12px 40px rgba(22, 163, 74, 0.18);
}

.ub-blog-hero__category {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.ub-blog-hero__title {
  color: #fff !important;
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.ub-blog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

.ub-blog-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ub-blog-hero__meta strong {
  color: #fff;
  font-weight: 600;
}

.ub-blog-featured-img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 28px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

/* Article body */
.ub-blog-body {
  font-size: 16.5px;
  line-height: 1.75;
  color: #334155;
}

.ub-blog-body > p {
  margin: 0 0 1.15em;
}

.ub-blog-body a {
  color: var(--ub-blog-orange-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ub-blog-body a:hover {
  color: var(--ub-blog-green-dark);
}

/* Quick answer / Seedha jawab box */
.ub-blog-answer-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #fff7ed 55%, #ffedd5 100%);
  border: 1px solid #86efac;
  border-left: 5px solid var(--ub-blog-green);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 28px;
  box-shadow: 0 4px 18px rgba(22, 163, 74, 0.1);
}

.ub-blog-answer-box__badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--ub-blog-green), var(--ub-blog-orange));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.ub-blog-answer-box__text {
  margin: 0 !important;
  font-size: 17px;
  line-height: 1.65;
  color: #1c1917;
}

.ub-blog-answer-box__text strong {
  color: var(--ub-blog-green-dark);
}

/* Section titles */
.ub-blog-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827 !important;
  margin: 2.2em 0 0.85em;
  padding: 10px 14px 10px 16px;
  background: linear-gradient(90deg, #ecfdf5 0%, #fff7ed 70%, transparent 100%);
  border-left: 4px solid var(--ub-blog-orange);
  border-radius: 0 10px 10px 0;
  line-height: 1.35;
}

.ub-blog-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: #374151 !important;
  margin: 1.5em 0 0.5em;
  padding-left: 12px;
  border-left: 3px solid var(--ub-blog-green);
}

/* Colored list boxes */
.ub-blog-body > ul,
.ub-blog-body > ol {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px 16px 36px;
  margin: 0 0 1.5em;
}

.ub-blog-body > ul li,
.ub-blog-body > ol li {
  margin-bottom: 8px;
  line-height: 1.55;
}

.ub-blog-list-box {
  border-radius: 12px;
  padding: 16px 18px 16px 36px;
  margin: 0 0 1.5em;
}

.ub-blog-list-box--default {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.ub-blog-list-box--tips {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #86efac;
}

.ub-blog-list-box--compare {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid #93c5fd;
}

.ub-blog-list-box li {
  margin-bottom: 8px;
  line-height: 1.55;
}

.ub-blog-list-box li strong {
  color: #1c1410;
}

/* Tables */
.ub-blog-table-card {
  margin: 1.25em 0 1.75em;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e7e5e4;
  box-shadow: 0 6px 22px rgba(28, 20, 16, 0.08);
  background: #fff;
}

.ub-blog-table-card__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ub-blog-body table.ub-blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 !important;
  font-size: 14px;
  min-width: 480px;
}

.ub-blog-body table.ub-blog-table thead th {
  background: linear-gradient(135deg, var(--ub-blog-green-dark) 0%, var(--ub-blog-green) 50%, var(--ub-blog-orange) 100%) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 14px !important;
  border: none !important;
  text-align: left;
}

.ub-blog-body table.ub-blog-table tbody td {
  padding: 11px 14px !important;
  border-bottom: 1px solid #f5f5f4 !important;
  color: #1c1917 !important;
  vertical-align: top;
}

.ub-blog-body table.ub-blog-table tbody tr:nth-child(even) td {
  background: #fafaf9;
}

.ub-blog-body table.ub-blog-table tbody tr:hover td {
  background: #fff7ed;
}

/* FAQ grid */
.ub-blog-faq-grid {
  display: grid;
  gap: 12px;
  margin: 0 0 1.5em;
}

.ub-blog-faq-item {
  background: #fff;
  border: 1px solid #d1fae5;
  border-left: 4px solid var(--ub-blog-green);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.06);
}

.ub-blog-faq-item__q {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #14532d !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: none !important;
}

.ub-blog-faq-item__a {
  margin: 0 !important;
  font-size: 15px;
  line-height: 1.6;
  color: #57534e;
}

/* Conclusion box */
.ub-blog-conclusion-box {
  background: linear-gradient(135deg, var(--ub-blog-green-dark) 0%, var(--ub-blog-green) 55%, var(--ub-blog-orange) 100%);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 2em 0 1em;
  color: #fff;
}

.ub-blog-conclusion-box--warm {
  background: linear-gradient(135deg, var(--ub-blog-orange-dark) 0%, var(--ub-blog-orange) 100%);
}

.ub-blog-conclusion-box__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.ub-blog-conclusion-box p {
  margin: 0 !important;
  color: #fff7ed !important;
  font-size: 16px;
  line-height: 1.6;
}

.ub-blog-conclusion-box a {
  color: #fcd34d !important;
}

/* CTA strip */
.ub-blog-cta {
  margin-top: 36px;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ecfdf5 0%, #fff7ed 100%);
  border: 1px solid #86efac;
  text-align: center;
}

.ub-blog-cta__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #14532d;
  margin: 0 0 8px;
}

.ub-blog-cta__text {
  color: #57534e;
  margin: 0 0 18px;
  font-size: 15px;
}

.ub-blog-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ub-blog-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ub-blog-cta__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.ub-blog-cta__btn--primary {
  background: linear-gradient(90deg, var(--ub-blog-green), var(--ub-blog-orange));
  color: #fff !important;
}

.ub-blog-cta__btn--secondary {
  background: #fff;
  color: var(--ub-blog-green-dark) !important;
  border: 2px solid var(--ub-blog-green);
}

/* Related cards */
.ub-blog-related {
  margin-top: 48px;
}

.ub-blog-related__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--ub-blog-orange);
  display: inline-block;
}

.ub-blog-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ub-blog-related-card {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 18px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ub-blog-related-card:hover {
  border-color: var(--ub-blog-green);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.12);
}

.ub-blog-related-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.35;
}

.ub-blog-related-card h3 a {
  color: #1c1410;
  text-decoration: none;
}

.ub-blog-related-card h3 a:hover {
  color: var(--ub-blog-orange-dark);
}

.ub-blog-related-card p {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 10px;
  line-height: 1.5;
}

.ub-blog-related-card__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--ub-blog-green-dark) !important;
  text-decoration: none !important;
}

/* Category accent variants on hero */
.ub-blog-hero--pharmacy { border-left-color: #22c55e; }
.ub-blog-hero--pharmacy .ub-blog-hero__category { background: rgba(255,255,255,0.25); }

.ub-blog-hero--restaurant { border-left-color: #fb923c; }
.ub-blog-hero--restaurant .ub-blog-hero__category { background: rgba(255,255,255,0.25); }

.ub-blog-hero--gst {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 35%, #2563eb 100%);
  border-left-color: #3b82f6;
}
.ub-blog-hero--gst .ub-blog-hero__category { background: rgba(255,255,255,0.25); }

@media (max-width: 767px) {
  .ub-blog-hero {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .ub-blog-related-grid {
    grid-template-columns: 1fr;
  }

  .ub-blog-body {
    font-size: 15.5px;
  }
}

/* Blog index cards */
.ub-blog-index-card {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  border-left: 4px solid var(--ub-blog-green);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.ub-blog-index-card:hover {
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.1);
  border-left-color: var(--ub-blog-orange);
}

.ub-blog-index-card__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ub-blog-green-dark);
  background: #ecfdf5;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.ub-blog-index-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.35;
}

.ub-blog-index-card h2 a {
  color: #1c1410;
  text-decoration: none;
}

.ub-blog-index-card h2 a:hover {
  color: var(--ub-blog-orange-dark);
}

.ub-blog-index-card__excerpt {
  font-size: 14px;
  color: #57534e;
  line-height: 1.55;
  margin: 0 0 12px;
}

.ub-blog-index-card__meta {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.ub-blog-index-card__btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #fff !important;
  background: #f58220;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none !important;
}

.ub-blog-index-hero {
  background: linear-gradient(135deg, var(--ub-blog-green-dark) 0%, var(--ub-blog-green) 45%, var(--ub-blog-orange) 100%);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 28px;
  color: #fff;
  border-left: 5px solid var(--ub-blog-orange);
}

.ub-blog-index-hero h1 {
  color: #fff !important;
  font-weight: 800;
  margin: 0 0 8px;
}

.ub-blog-index-hero p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.ub-blog-index {
  max-width: var(--ub-blog-max);
  width: 100%;
  margin: 0 auto;
  padding: 24px var(--ub-blog-pad-x) 48px;
  box-sizing: border-box;
}

.ub-blog-index-hero__title {
  color: #fff !important;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 8px;
}

.ub-blog-index-hero__text {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 15px;
}

.ub-blog-search {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.ub-blog-search__input {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid #e7e5e4;
  border-radius: 10px;
  font-size: 14px;
}

.ub-blog-search__btn {
  padding: 10px 20px;
  background: linear-gradient(90deg, var(--ub-blog-green), var(--ub-blog-orange));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.ub-blog-index-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

.ub-blog-index-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  color: #94a3b8;
}

.ub-blog-index-card__date,
.ub-blog-index-card__read {
  color: #94a3b8;
}

.ub-blog-index-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.35;
}

.ub-blog-index-card__title a {
  color: #1c1410;
  text-decoration: none;
}

.ub-blog-index-card__title a:hover {
  color: var(--ub-blog-orange-dark);
}

.ub-blog-index-card__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--ub-blog-green-dark) !important;
  text-decoration: none !important;
}

.ub-blog-index-empty {
  color: #64748b;
  padding: 24px;
  text-align: center;
}

.ub-blog-sidebar-box {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

.ub-blog-sidebar-box--cta {
  background: linear-gradient(135deg, #ecfdf5, #fff7ed);
  border-color: #86efac;
}

.ub-blog-sidebar-box__title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: #1c1410;
}

.ub-blog-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ub-blog-sidebar-list li {
  margin-bottom: 8px;
}

.ub-blog-sidebar-list a {
  color: var(--ub-blog-green-dark);
  text-decoration: none;
  font-size: 14px;
}

.ub-blog-sidebar-list a:hover {
  color: var(--ub-blog-orange-dark);
  text-decoration: underline;
}

.ub-blog-sidebar-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.ub-blog-pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.ub-blog-pagination ul.pagination {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ub-blog-pagination ul.pagination li {
  display: inline-block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ub-blog-pagination ul.pagination li a,
.ub-blog-pagination ul.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ub-blog-pagination ul.pagination li a:hover {
  color: var(--ub-blog-green-dark, #15803d);
  background: #f0fdf4;
  border-color: #86efac;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.15);
}

.ub-blog-pagination ul.pagination li.active span {
  color: #ffffff !important;
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  border-color: #16a34a !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.ub-blog-pagination ul.pagination li.disabled span {
  color: #94a3b8;
  background: #f8fafc;
  border-color: #e2e8f0;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.ub-blog-internal-links {
  background: linear-gradient(135deg, #ecfdf5, #fff7ed);
  border: 1px solid #86efac;
  border-left: 4px solid var(--ub-blog-green);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 1.5em 0;
}

.ub-blog-internal-links ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.ub-blog-internal-links a {
  color: var(--ub-blog-green-dark);
  font-weight: 600;
}

a.ub-blog-internal-link {
  color: var(--ub-blog-green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.ub-blog-internal-link:hover {
  color: var(--ub-blog-orange-dark);
}

.ub-blog-peer-link {
  margin: 1.25em 0 0;
  padding: 12px 14px;
  background: #f8fafc;
  border-left: 3px solid var(--ub-blog-green);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
}

@media (max-width: 991px) {
  .ub-blog-index-layout {
    grid-template-columns: 1fr;
  }
}
