/* Mobile Porto site overrides */
body.m-site {
  padding-bottom: 64px;
  background: #f5f7fa;
}
body.m-nav-open {
  overflow: hidden;
}
.m-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: #fff;
  box-shadow: 0 1px 8px rgba(15, 57, 100, 0.08);
}
.m-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 12px;
}
.m-logo img {
  height: 36px;
  width: auto;
  max-width: 110px;
}
.m-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.m-call {
  padding: 0.35rem 0.65rem !important;
  font-size: 12px !important;
  white-space: nowrap;
}
.m-nav-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.m-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #0f3964;
  transition: 0.2s;
}
.m-nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.m-nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.m-nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.m-nav-panel {
  display: none;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  background: #fff;
  border-top: 1px solid #eef2f6;
  padding: 8px 0 20px;
}
.m-nav-panel.is-open {
  display: block;
}
.m-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.m-nav-list li a {
  display: block;
  padding: 12px 18px;
  color: #0f3964;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #f1f4f8;
}
.m-nav-list li.active > a,
.m-nav-list li a:active {
  color: #2388ed;
}
.m-nav-list li.m-nav-sub a {
  padding-left: 32px;
  font-weight: 400;
  font-size: 14px;
  color: #5b6b7c;
}
.m-nav-cta {
  padding: 16px 18px 0;
}
.m-page-banner {
  margin: 0;
  line-height: 0;
  overflow: hidden;
  background: #e8eef5;
}
.m-page-banner img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block !important;
}
.m-page-title-bar {
  background: #fff;
  border-bottom: 1px solid #eef2f6;
  margin-top: 12px;
  padding: 12px 0;
}
.m-page-title-bar h1 {
  color: #0f3964;
  font-size: 17px;
  line-height: 1.3;
}
.m-back {
  font-size: 16px;
  color: #0f3964;
  text-decoration: none;
  flex-shrink: 0;
}
.m-cta {
  margin-top: 1rem;
}
.m-footer {
  background: #0f3964;
  color: #fff;
  margin-bottom: 0;
}
.m-footer a {
  color: #fff;
}
.m-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}
.m-footer-links a {
  opacity: 0.85;
  text-decoration: none;
}
.m-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  display: flex;
  background: #fff;
  border-top: 1px solid #e8edf3;
  box-shadow: 0 -4px 16px rgba(15, 57, 100, 0.08);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.m-bottom-nav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #6b7c8f;
  font-size: 11px;
  padding: 4px 0;
}
.m-bottom-nav a i {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 2px;
}
.m-bottom-nav a.active,
.m-bottom-nav a:active {
  color: #2388ed;
}
.m-section {
  background: #fff;
  margin: 12px;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(15, 57, 100, 0.05);
}
.m-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f3964;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid #2388ed;
}
.m-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.m-section-head .m-section-title {
  margin-bottom: 0;
}
.m-more {
  color: #2388ed;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}
.m-product-grid,
.m-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.m-product-card {
  display: block;
  background: #f7f9fc;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #0f3964;
}
.m-product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.m-product-card .title {
  padding: 8px;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.m-tabs a {
  padding: 6px 12px;
  border-radius: 16px;
  background: #eef3f9;
  color: #0f3964;
  text-decoration: none;
  font-size: 13px;
}
.m-tabs a.active {
  background: #2388ed;
  color: #fff;
}
.m-news-item {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f6;
  text-decoration: none;
  color: inherit;
}
.m-news-item:last-child {
  border-bottom: 0;
}
.m-news-item h3 {
  font-size: 15px;
  color: #0f3964;
  margin-bottom: 6px;
  line-height: 1.4;
}
.m-news-item p {
  font-size: 13px;
  color: #6b7c8f;
  margin-bottom: 6px;
}
.m-news-item .meta {
  font-size: 12px;
  color: #2388ed;
}
.article-content img {
  max-width: 100%;
  height: auto;
}
.m-banner img {
  width: 100%;
  display: block;
}
.m-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.m-stat {
  background: #f5f9ff;
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
}
.m-stat strong {
  display: block;
  color: #2388ed;
  font-size: 22px;
  line-height: 1.2;
}
.m-stat span {
  font-size: 12px;
  color: #6b7c8f;
}
.m-advantage {
  margin-bottom: 14px;
}
.m-advantage h3 {
  font-size: 15px;
  color: #0f3964;
  margin: 8px 0 4px;
}
.m-advantage p {
  font-size: 13px;
  color: #6b7c8f;
  margin: 0;
}
.m-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
}
.m-pager a,
.m-pager span {
  min-width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 4px;
  background: #eef3f9;
  color: #0f3964;
  text-decoration: none;
  font-size: 13px;
  padding: 0 8px;
}
.m-pager .active {
  background: #2388ed;
  color: #fff;
}
