/* CMS inner page content styling - qeducato theme */
/* Main content - white background like sidebar */
.inner-blog .blog-details-wrap {
  background: #fff;
  padding: 30px 40px 40px;
  border-radius: 4px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}
.details__content.page-content-cms,
.page-content-cms {
  max-width: 100%;
}
.details__content h2,
.details__content h3,
.details__content h4,
.details__content h5,
.page-content-cms .page-cms-layout h2,
.page-content-cms .page-cms-layout h3,
.page-content-cms .page-cms-layout h4,
.page-content-cms .page-cms-layout h5 {
  color: #032e3f;
  margin-bottom: 1rem;
}
.details__content h2,
.page-content-cms .page-cms-layout h2 { font-size: 1.75rem; }
.details__content h3,
.page-content-cms .page-cms-layout h3 { font-size: 1.5rem; }
.details__content h4,
.page-content-cms .page-cms-layout h4 { font-size: 1.25rem; }
.details__content p,
.page-content-cms .page-cms-layout p {
  margin-bottom: 1rem;
  line-height: 1.7;
}
.page-content-cms .page-cms-layout ul.check-list li {
  margin-bottom: 0.5rem;
  padding-left: 0;
}
.page-content-cms .page-cms-layout .mb-20 { margin-bottom: 1.25rem; }
.page-content-cms .page-cms-layout .mb-40 { margin-bottom: 2.5rem; }
.page-content-cms .page-cms-layout .mb-50 { margin-bottom: 3rem; }
.page-content-cms .page-cms-layout .mb-60 { margin-bottom: 3.75rem; }
.page-content-cms .page-cms-layout .mt-40 { margin-top: 2.5rem; }
.details__content img,
.page-content-cms .page-cms-layout img {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
/* CMS content tables - full width & styled */
.details__content table,
.page-content-cms table,
.page-content-cms .page-cms-layout table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}
.details__content table th,
.details__content table td,
.page-content-cms table th,
.page-content-cms table td,
.page-content-cms .page-cms-layout table th,
.page-content-cms .page-cms-layout table td {
  padding: 0.875rem 1.25rem;
  border: 1px solid #e8eef5;
  text-align: left;
  line-height: 1.5;
}
/* Header row - first row or thead */
.details__content table thead th,
.details__content table tr:first-child th,
.page-content-cms table thead th,
.page-content-cms table tr:first-child th,
.page-content-cms .page-cms-layout table thead th,
.page-content-cms .page-cms-layout table tr:first-child th {
  background: linear-gradient(135deg, #125875 0%, #0d4559 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-color: #0d4559;
}
/* If first row has td (no header), style first row as header when it has strong */
.details__content table tr:first-child td:first-child strong,
.page-content-cms table tr:first-child td:first-child strong {
  color: #032e3f;
}
/* Body rows - alternating & hover */
.details__content table tbody tr,
.page-content-cms table tbody tr,
.page-content-cms .page-cms-layout table tbody tr {
  background: #fff;
  transition: background 0.2s ease;
}
.details__content table tbody tr:nth-child(even),
.page-content-cms table tbody tr:nth-child(even),
.page-content-cms .page-cms-layout table tbody tr:nth-child(even) {
  background: #f8fafc;
}
.details__content table tbody tr:hover,
.page-content-cms table tbody tr:hover,
.page-content-cms .page-cms-layout table tbody tr:hover {
  background: #eff7ff;
}
/* Tables without thead - first row as header (when all td) */
.details__content table tbody tr:first-child td,
.page-content-cms table tbody tr:first-child td,
.details__content table tr:first-child td,
.page-content-cms table tr:first-child td {
  background: #e8f4f8;
  font-weight: 600;
  color: #032e3f;
}
.details__content table tbody tr:not(:first-child) td,
.page-content-cms table tbody tr:not(:first-child) td,
.details__content table tr:not(:first-child) td,
.page-content-cms table tr:not(:first-child) td {
  color: #4a5568;
}
/* Override: when first row is th (proper header), use teal */
.details__content table tr:first-child th,
.page-content-cms table tr:first-child th {
  background: linear-gradient(135deg, #125875 0%, #0d4559 100%) !important;
  color: #fff;
  font-weight: 600;
}
/* thead-dark override */
.page-content-cms .page-cms-layout .thead-dark th {
  background: linear-gradient(135deg, #032e3f 0%, #021d29 100%) !important;
  color: #fff;
  border-color: #032e3f;
}
/* Responsive - horizontal scroll on small screens */
.details__content .table-responsive,
.page-content-cms .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}
.details__content .table-responsive table,
.page-content-cms .table-responsive table {
  margin-bottom: 0;
}

/* Inner page sidebar - padding and spacing */
.inner-blog .sidebar-widget .widget {
  padding-top: 15px;
  padding-bottom: 25px;
}
.sidebar-widget .widget_tag_cloud .textwidget .btn {
  margin-top: 10px;
}

/* Sidebar Follow Us - brand hover colors */
.inner-blog .sidebar-follow-us .widget-social a {
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.inner-blog .sidebar-follow-us .widget-social a.social-fb:hover {
  background: #1877f2 !important;
  color: #fff !important;
  border-color: #1877f2 !important;
}
.inner-blog .sidebar-follow-us .widget-social a.social-ig:hover {
  background: #E4405F !important;
  color: #fff !important;
  border-color: #E4405F !important;
}
.inner-blog .sidebar-follow-us .widget-social a.social-yt:hover {
  background: #FF0000 !important;
  color: #fff !important;
  border-color: #FF0000 !important;
}
.inner-blog .sidebar-follow-us .widget-social a.social-wa:hover {
  background: #25D366 !important;
  color: #fff !important;
  border-color: #25D366 !important;
}

/* Sidebar Programs - attractive card style */
.inner-blog .sidebar-programs {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #e8eef5;
  border-left: 4px solid #125875;
  border-radius: 8px;
  padding: 30px 25px !important;
  box-shadow: 0 4px 20px rgba(18, 88, 117, 0.08);
}
.inner-blog .sidebar-programs .widget-title {
  color: #032e3f;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
}
.inner-blog .sidebar-programs .widget-title i {
  margin-right: 8px;
  color: #125875;
}
.inner-blog .sidebar-programs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.inner-blog .sidebar-programs .cat-item {
  margin-bottom: 1px;
  border-radius: 4px;
  overflow: hidden;
}
.inner-blog .sidebar-programs .cat-item a {
  display: block;
  padding: 10px 14px;
  color: #4a5568;
  text-decoration: none;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
}
.inner-blog .sidebar-programs .cat-item a i {
  margin-right: 8px;
  font-size: 10px;
  color: #125875;
  opacity: 0.8;
  transition: transform 0.25s ease;
}
.inner-blog .sidebar-programs .cat-item a:hover {
  background: #eff7ff;
  color: #125875;
  padding-left: 18px;
}
.inner-blog .sidebar-programs .cat-item a:hover i {
  transform: translateX(4px);
  opacity: 1;
}

/* Sidebar Contact - attractive card style */
.inner-blog .sidebar-contact {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #e8eef5;
  border-left: 4px solid #125875;
  border-radius: 8px;
  padding: 30px 25px !important;
  box-shadow: 0 4px 20px rgba(18, 88, 117, 0.08);
}
.inner-blog .sidebar-contact .widget-title {
  color: #032e3f;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
}
.inner-blog .sidebar-contact .widget-title i {
  margin-right: 8px;
  color: #125875;
}
.inner-blog .sidebar-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.inner-blog .sidebar-contact ul li {
  padding: 12px 0;
  border-bottom: 1px solid #e8eef5;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.inner-blog .sidebar-contact ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.inner-blog .sidebar-contact .contact-label {
  flex: 0 0 48px;
  width: 48px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}
.inner-blog .sidebar-contact ul li a {
  flex: 1;
  min-width: 0;
  padding: 0;
  color: #032e3f;
  text-decoration: none;
  transition: color 0.25s ease;
  word-break: break-word;
  line-height: 1.4;
}
.inner-blog .sidebar-contact ul li a:hover {
  color: #125875;
}

/* Mobile only */
@media (max-width: 767px) {
  .inner-blog .sidebar-widget {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .inner-blog .blog-details-wrap {
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
