/* ===== LEGACY HTML BLOCK STYLES =====
 * Normalizes old Bootstrap/template markup injected through the "html" block.
 */

/* --- Utility helpers --- */
.text-left { text-align: left; }
.text-white { color: #fff; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.h-100 { height: 100%; }
.img-fluid { max-width: 100%; height: auto; display: block; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-35 { margin-bottom: 35px; }
.mb-50 { margin-bottom: 50px; }
.mb-80 { margin-bottom: 80px; }

.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

.pb-40 { padding-bottom: 40px; }
.pb-50 { padding-bottom: 50px; }
.pt-50 { padding-top: 50px; }
.pt-70 { padding-top: 70px; }

/* --- Core layout inside html blocks --- */
.html-block-section .page-section,
.html-block-section .categories-area,
.html-block-section .services-area,
.html-block-section .about-area,
.html-block-section .service-section,
.html-block-section .blog-area,
.html-block-section .testimonial-area,
.html-block-section .our-info-area,
.html-block-section .contact-form-area,
.html-block-section .map-area {
  width: 100%;
}

.html-block-section .categories-area,
.html-block-section .services-area,
.html-block-section .about-area,
.html-block-section .service-section,
.html-block-section .blog-area,
.html-block-section .testimonial-area,
.html-block-section .our-info-area,
.html-block-section .contact-form-area,
.html-block-section .map-area {
  padding: 0;
}

.html-block-section .row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.html-block-section [class*="col-"] {
  grid-column: span 12;
  min-width: 0;
}

.html-block-section .col-md-6,
.html-block-section .col-sm-6,
.html-block-section .col-lg-6 {
  grid-column: span 6;
}

.html-block-section .col-md-4,
.html-block-section .col-lg-4,
.html-block-section .col-sm-4 {
  grid-column: span 4;
}

.html-block-section .col-md-3,
.html-block-section .col-lg-3,
.html-block-section .col-sm-3 {
  grid-column: span 3;
}

.html-block-section .col-md-8,
.html-block-section .col-lg-8,
.html-block-section .col-sm-8 {
  grid-column: span 8;
}

.html-block-section .col-xl-8,
.html-block-section .col-lg-10 {
  grid-column: span 10;
}

.html-block-section .col-xl-12,
.html-block-section .col-lg-12,
.html-block-section .col-md-12,
.html-block-section .col-sm-12 {
  grid-column: span 12;
}

@media (max-width: 575.98px) {
  .html-block-section .row > [class*="col-"] {
    grid-column: span 12 !important;
    margin-left: 0;
  }
}

/* --- About captions & images --- */
.html-block-section .about-caption {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

/* When about-caption is inside the card-like .page-section, keep it flat. */
.html-block-section .page-section .about-caption,
.html-block-section .categories-area .about-caption,
.html-block-section .services-area .about-caption {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0;
}

.html-block-section .about-img,
.html-block-section .about-font-img,
.html-block-section .about-caption img,
.html-block-section .img-fluid {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

/* --- Buttons --- */
.html-block-section .btn,
.html-block-section .btn-primary,
.html-block-section .header-btn,
.html-block-section .more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.html-block-section .btn:hover,
.html-block-section .btn-primary:hover,
.html-block-section .header-btn:hover,
.html-block-section .more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 132, 0, 0.3);
  color: #fff;
  text-decoration: none;
}

.html-block-section .btn-link,
.html-block-section .btn-link:hover {
  background: transparent;
  color: var(--dark-blue);
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.html-block-section .btn-block {
  display: block;
  width: 100%;
}

/* --- Tables --- */
.html-block-section .table,
.html-block-section .table.table-striped,
.html-block-section .table.table-bordered {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.95rem;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}

.html-block-section .table th,
.html-block-section .table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.html-block-section .table th {
  background: var(--off-white);
  color: var(--dark-blue);
  font-weight: 600;
}

.html-block-section .table.table-striped tbody tr:nth-child(odd) {
  background: #f8fafc;
}

.html-block-section .table.table-bordered th,
.html-block-section .table.table-bordered td {
  border: 1px solid #e2e8f0;
}

/* --- Alerts --- */
.html-block-section .alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  border: 1px solid transparent;
}

.html-block-section .alert-warning {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.html-block-section .alert-warning strong { color: #c2410c; }

.html-block-section .alert-danger {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}

.html-block-section .alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.html-block-section .alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* --- Lists --- */
.html-block-section ul,
.html-block-section ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.html-block-section ul { list-style: disc; }
.html-block-section ol { list-style: decimal; }

.html-block-section .cat-list,
.html-block-section .list,
.html-block-section .blog_right_sidebar ul,
.html-block-section .post_category_widget ul,
.html-block-section .single_sidebar_widget ul,
.html-block-section .about-caption ul:not(.unordered-list),
.html-block-section .media-body ul,
.html-block-section .contact-info ul {
  list-style: none;
  padding-left: 0;
}

.html-block-section .unordered-list {
  list-style: disc;
  padding-left: 24px;
}

/* --- Sidebar widgets --- */
.html-block-section .blog_right_sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.html-block-section .single_sidebar_widget,
.html-block-section .post_category_widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.html-block-section .widget_title {
  font-size: 1.1rem;
  color: var(--dark-blue);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 700;
}

.html-block-section .cat-list li,
.html-block-section .list.cat-list li,
.html-block-section .post_category_widget li {
  margin-bottom: 10px;
}

.html-block-section .cat-list a,
.html-block-section .list.cat-list a,
.html-block-section .post_category_widget a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--off-white);
  color: var(--dark-blue);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.html-block-section .cat-list a:hover,
.html-block-section .list.cat-list a:hover,
.html-block-section .post_category_widget a:hover {
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

/* --- Media / contact info widget --- */
.html-block-section .media {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.html-block-section .media-body { flex: 1; }

.html-block-section .contact-info__icon,
.html-block-section .contact-info__icon i,
.html-block-section .media .fa-headset,
.html-block-section .media .fa-phone,
.html-block-section .media .fa-envelope,
.html-block-section .media .fa-clock {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.1);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.html-block-section .media-body h3 {
  font-size: 1.2rem;
  color: var(--dark-blue);
  margin-bottom: 4px;
}

.html-block-section .media-body p {
  font-size: 0.9rem;
  margin: 0;
  color: #475569;
}

/* --- Cards (prohibited items, FAQ, etc.) --- */
.html-block-section .card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.html-block-section .card.h-100 { height: 100%; }

.html-block-section .card-header {
  padding: 16px 20px;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
  font-size: 1rem;
}

.html-block-section .card-body {
  padding: 20px;
  flex: 1 1 auto;
}

.html-block-section .card-body ul { list-style: disc; padding-left: 20px; }
.html-block-section .card-body li { margin-bottom: 8px; color: #475569; }

.html-block-section .border-danger { border-color: #fecaca; }
.html-block-section .border-warning { border-color: #fed7aa; }
.html-block-section .border-info { border-color: #bfdbfe; }
.html-block-section .border-dark { border-color: #94a3b8; }

.html-block-section .bg-danger { background: #fee2e2; color: #991b1b; }
.html-block-section .bg-warning { background: #ffedd5; color: #9a3412; }
.html-block-section .bg-info { background: #dbeafe; color: #1e40af; }
.html-block-section .bg-dark { background: #1e293b; color: #fff; }

/* --- Forms --- */
.html-block-section .form-group { margin-bottom: 20px; }

.html-block-section .form-control,
.html-block-section input[type="text"],
.html-block-section input[type="email"],
.html-block-section input[type="tel"],
.html-block-section textarea,
.html-block-section select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dbe3ea;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #334155;
  background: #fff;
  transition: all 0.3s ease;
}

.html-block-section .form-control:focus,
.html-block-section input:focus,
.html-block-section textarea:focus,
.html-block-section select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

/* --- Blog posts --- */
.html-block-section .blog-area {
  padding: 60px 0;
}

.html-block-section .single-blog {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.html-block-section .single-blog:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.html-block-section .blog-caption {
  padding: 24px;
}

.html-block-section .blog-caption h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--dark-blue);
  line-height: 1.4;
}

.html-block-section .blog-caption a {
  color: var(--dark-blue);
  text-decoration: none;
}

.html-block-section .blog-caption a:hover {
  color: var(--green);
}

/* --- Testimonials --- */
.html-block-section .testimonial-area {
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  position: relative;
}

.html-block-section .single-testimonial {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.html-block-section .testimonial-caption p {
  font-style: italic;
  color: #475569;
  margin-bottom: 16px;
}

.html-block-section .testimonial-founder span {
  font-weight: 600;
  color: var(--dark-blue);
}

/* --- Accordion / FAQ --- */
.html-block-section .accordion { margin-bottom: 24px; }

.html-block-section .accordion .card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: none;
}

.html-block-section .accordion .card-header {
  background: #fff;
  padding: 0;
  border: none;
}

.html-block-section .accordion .btn-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  color: var(--dark-blue);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
}

.html-block-section .accordion .btn-link:hover { color: var(--green); }

.html-block-section .accordion .collapse,
.html-block-section .accordion .collapsing,
.html-block-section .accordion .show {
  display: block;
}

.html-block-section .accordion .card-body {
  border-top: 1px solid #e2e8f0;
}

/* --- Contact form / info / map --- */
.html-block-section .contact-form-area,
.html-block-section .contact-form-wrapper,
.html-block-section .map-area {
  padding: 40px 0;
}

.html-block-section .our-info-area,
.html-block-section .single-info {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.html-block-section .map-area iframe,
.html-block-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: var(--radius);
}

/* --- Shipment / policy content --- */
.html-block-section .shipment-policy h2 {
  font-size: 1.35rem;
  color: var(--dark-blue);
  margin-top: 28px;
  margin-bottom: 12px;
}

.html-block-section .shipment-policy p,
.html-block-section .shipment-policy li {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
}

.html-block-section .shipment-policy ul { list-style: disc; padding-left: 24px; }
.html-block-section .shipment-policy li { margin-bottom: 10px; }

/* --- Header button / more link fallback --- */
.html-block-section .more-btn {
  color: var(--green);
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.html-block-section .more-btn:hover {
  color: var(--dark-blue);
  box-shadow: none;
  transform: none;
}

/* ===== COHESIVE LEGACY PAGE THEME ===== */

/* Light gray page canvas */
.html-block-section {
  background: #f8fafc;
  padding: 0;
}

/* Main content card */
.html-block-section .page-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(2, 54, 97, 0.06);
  padding: 40px;
  margin: 0;
}

/* Let the legacy inner .container fill the card */
.html-block-section .page-section > .container {
  max-width: 100%;
  padding: 0;
}

/* --- Service / category cards --- */
.html-block-section .categories-area,
.html-block-section .services-area {
  width: 100%;
}

.html-block-section .single-cat {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(2, 54, 97, 0.06);
  padding: 32px 24px;
  height: 100%;
  transition: all 0.3s ease;
}

.html-block-section .single-cat:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(2, 54, 97, 0.1);
}

.html-block-section .cat-icon {
  width: 70px;
  height: 70px;
  background: rgba(46, 204, 113, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
  color: var(--green);
}

.html-block-section .cat-cap h5 a {
  color: var(--navy);
  font-size: 18px;
}

.html-block-section .cat-cap p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
  max-width: none;
  padding: 0;
}

/* Some legacy pages have service columns without the .single-cat wrapper */
.html-block-section .categories-area .row > .col-lg-4:not(:has(.single-cat)),
.html-block-section .categories-area .row > .col-md-6:not(:has(.single-cat)),
.html-block-section .categories-area .row > .col-sm-6:not(:has(.single-cat)) {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(2, 54, 97, 0.06);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.html-block-section .categories-area .row > .col-lg-4:not(:has(.single-cat)):hover,
.html-block-section .categories-area .row > .col-md-6:not(:has(.single-cat)):hover,
.html-block-section .categories-area .row > .col-sm-6:not(:has(.single-cat)):hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(2, 54, 97, 0.1);
}

/* --- Steps / info cards --- */
.html-block-section .our-info-area,
.html-block-section .about-area {
  width: 100%;
}

.html-block-section .single-info {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(2, 54, 97, 0.06);
  padding: 28px;
  height: 100%;
  transition: all 0.3s ease;
}

.html-block-section .single-info h4 {
  color: var(--orange);
  margin-bottom: 12px;
}

/* --- Blog cards --- */
.html-block-section .blog-area {
  width: 100%;
}

.html-block-section .single-blog {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(2, 54, 97, 0.06);
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
}

.html-block-section .single-blog:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(2, 54, 97, 0.1);
}

.html-block-section .blog-caption {
  padding: 24px;
}

.html-block-section .blog-caption h3 a {
  color: var(--navy);
  font-size: 17px;
  line-height: 1.4;
}

/* --- Testimonials on light gray background --- */
.html-block-section .testimonial-area {
  background: #f8fafc !important;
  padding: 80px 0;
  position: relative;
}

.html-block-section .testimonial-area::before {
  display: none;
}

.html-block-section .testimonial-area .section-tittle h2,
.html-block-section .testimonial-area .section-tittle p,
.html-block-section .testimonial-area .section-tittle span {
  color: var(--navy);
}

.html-block-section .testimonial-area .section-tittle span {
  background: rgba(46, 204, 113, 0.12);
}

.html-block-section .single-testimonial {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(2, 54, 97, 0.06);
  padding: 28px;
  color: #475569;
  height: 100%;
}

.html-block-section .testimonial-top-cap p {
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
}

.html-block-section .testimonial-founder span {
  color: var(--navy);
  font-weight: 700;
}

/* --- Sidebar widgets --- */
.html-block-section .blog_right_sidebar {
  gap: 24px;
}

.html-block-section .single_sidebar_widget,
.html-block-section .post_category_widget {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(2, 54, 97, 0.06);
  padding: 24px;
}

.html-block-section .widget_title {
  color: var(--navy);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 12px;
  margin-bottom: 16px;
  font-size: 18px;
}

/* --- Full-width inner containers for legacy sections --- */
.html-block-section .page-section > .container,
.html-block-section .categories-area > .container,
.html-block-section .services-area > .container,
.html-block-section .our-info-area > .container,
.html-block-section .blog-area > .container,
.html-block-section .testimonial-area > .container,
.html-block-section .about-area > .container {
  max-width: 1200px;
  padding: 0 20px;
}

/* --- Definition cards on country pages --- */
.html-block-section .single-defination {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  height: 100%;
  margin-bottom: 24px;
}

.html-block-section .single-defination h4 {
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 16px;
}

.html-block-section .single-defination p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.html-block-section .section-top-border {
  border-top: 1px solid #e2e8f0;
  padding-top: 30px;
  margin-top: 30px;
}

/* Keep legacy block content within the standard site container */
.html-block-section .container, .html-block-section .categories-area > .container {
  max-width: 1200px;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .html-block-section .container, .html-block-section .categories-area > .container {
    padding: 0 20px;
  }
}

/* --- Ensure colored card headers keep white text when requested --- */
.html-block-section .bg-danger.text-white,
.html-block-section .bg-warning.text-white,
.html-block-section .bg-info.text-white,
.html-block-section .bg-dark.text-white,
.html-block-section .bg-danger.text-white .card-header,
.html-block-section .bg-warning.text-white .card-header,
.html-block-section .bg-info.text-white .card-header,
.html-block-section .bg-dark.text-white .card-header {
  color: #fff;
}

/* --- Spacing between stacked legacy sections --- */
.html-block-section .categories-area,
.html-block-section .services-area,
.html-block-section .our-info-area,
.html-block-section .blog-area,
.html-block-section .testimonial-area {
  margin-top: 60px;
}
