/* Subpage styles */
body.subpage {
  padding-bottom: 0;
}

body.subpage .mobile-call-bar {
  display: none;
}

@media (max-width: 768px) {
  body.subpage {
    padding-bottom: 80px;
  }
  body.subpage .mobile-call-bar {
    display: block;
  }
}

.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 32px 0 40px;
}

.page-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
}

.breadcrumb {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  opacity: 0.7;
}

.breadcrumb a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-main {
  padding: 40px 0 56px;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.page-content {
  min-width: 0;
}

.page-body {
  background: white;
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  line-height: 1.7;
}

.page-body h2 {
  color: var(--heading);
  font-size: 1.35rem;
  margin: 28px 0 12px;
}

.page-body h3 {
  color: var(--heading);
  font-size: 1.1rem;
  margin: 20px 0 10px;
}

.page-body p {
  margin: 0 0 14px;
  color: var(--text);
}

.page-body ul {
  margin: 0 0 16px;
  padding-left: 1.4rem;
}

.page-body li {
  margin-bottom: 6px;
}

.page-body hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 24px 0;
}

.page-body strong {
  color: var(--heading);
}

.page-body a {
  color: var(--primary);
  font-weight: 600;
}

/* Normalize oversized inline Font Awesome icons from imported content */
.page-body i.fa,
.page-body i.fas,
.page-body i.far,
.page-body i.fab {
  font-size: 1em !important;
  line-height: 1.2 !important;
  vertical-align: middle;
}

.page-body .icon-featured {
  width: 1.25em !important;
  height: 1.25em !important;
  min-width: 1.25em !important;
  min-height: 1.25em !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin-right: 6px !important;
  font-size: 0.95em !important;
}

/* Call box on content pages */
.page-callbox {
  display: block;
  margin-bottom: 24px;
  padding: 16px;
  background: #ecfdf5;
  border-radius: var(--radius);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.page-callbox-header {
  text-align: center;
  background: rgba(13, 148, 136, 0.12);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.page-callbox-header .t1 {
  font-weight: 800;
  color: var(--heading);
}

.page-callbox-header .t2 {
  font-size: 0.8rem;
  margin-top: 6px;
  color: var(--muted);
}

.page-call-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-call-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: white;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.page-call-item-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.page-call-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-call-number {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary);
}

.page-call-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: grid;
  place-items: center;
}

.page-call-btn i {
  color: #fff;
  font-size: 0.82rem;
}

/* Sidebar */
.page-sidebar {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 90px;
}

.sidebar-title {
  margin: 0 0 14px;
  color: var(--heading);
  font-size: 1rem;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav li {
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-nav a {
  display: block;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}

.sidebar-nav a:hover {
  color: var(--primary);
}

/* Category listing pages */
.page-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.page-card-link,
.page-card-thumb {
  display: block;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.page-card-link {
  padding: 20px;
  font-weight: 700;
  color: var(--heading);
  border-left: 4px solid var(--primary);
}

.page-card-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.page-card-thumb span {
  display: block;
  padding: 14px 16px 16px;
  font-weight: 700;
  color: var(--heading);
  border-top: 1px solid #e2e8f0;
}

.page-card-link:hover,
.page-card-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.15);
}

.page-card-link:hover,
.page-card-thumb:hover span {
  color: var(--primary);
}

@media (max-width: 991px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .page-sidebar {
    position: static;
  }
}
