/* Container spacing */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  box-sizing: border-box;
}

/* Responsive table wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Municipality table styling */
.municipality-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  background-color: #fff;
  table-layout: fixed;
}

.municipality-table td {
  width: 33.33%;
  max-width: 300px;
  border: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
}

.municipality-table a {
  color: #2a69b8;
  text-decoration: none;
}

.municipality-table a:hover {
  text-decoration: underline;
}

.municipality-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* Mobile table styling */
.mobile-view .municipality-table td {
  width: 100%;
  display: block;
  text-align: center;
}

/* Visibility control */
.desktop-view {
  display: block;
}

.mobile-view {
  display: none;
}

@media screen and (max-width: 600px) {
  .desktop-view {
    display: none !important;
  }
  .mobile-view {
    display: block !important;
  }
}

/* Article layout */
.item-page {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

span.badge.bg-danger.featured-article-badge {
  display: none;
}

.article-list .article {
  position: relative;
  margin-bottom: 30px;
  padding: 6.3px;
  border: 1px solid #f5f5f5;
  border-radius: 3px;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.8;
  max-width: 900px;
  margin: 2.1em auto;
  padding: 0 1em;
  background-color: #f8f8f8;
  color: #333;
}

h1, h2, h3 {
  color: #2a4b6d;
}

h1 {
  font-size: 2.1em;
  line-height: 1.3;
  margin-bottom: 0.6em;
}

h2 {
  font-size: 1.6em;
  line-height: 1.4;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

h3 {
  font-size: 1.3em;
  line-height: 1.5;
  margin-top: 1.3em;
  margin-bottom: 0.5em;
}

h5 {
  font-size: 1em;
  line-height: 1.2;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

ul {
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.1em;
}

iframe {
  margin: 1em 0;
  border: none;
}

.go-pro {
  background-color: #e4ecf9;
  padding: 0.6em;
  border-radius: 0.5em;
  margin-top: 1.5em;
}

/* Article content */
.com-content-article__body {
  max-width: 900px;
  margin: 2em auto;
  padding: 0 1em;
  background-color: #f8f8f8;
  color: #333;
  font-family: Arial, sans-serif;
  line-height: 1.7;
}

.com-content-article__body h1,
.com-content-article__body h2,
.com-content-article__body h3 {
  color: #2a4b6d;
}

.com-content-article__body a {
  color: #0066cc;
}

.com-content-article__body iframe {
  margin: 1em 0;
  border: none;
}

.mod1 {
  padding-bottom: 36px;
}

#sp-main-body {
  padding: 54px 0;
}

.region {
  transition: fill 0.3s ease;
}

.region:hover {
  fill: #BC042B;
}

/* Article list styling */
.mod-articles-items.mod-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  background-color: #fff;
  border-collapse: collapse;
  width: 100%;
}

.mod-articles-items li {
  border: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background-color: #fff;
}

.mod-articles-items li:nth-child(even) {
  background-color: #f8f9fa;
}

.mod-articles-items a {
  color: #2a69b8;
  text-decoration: none;
}

.mod-articles-items a:hover {
  text-decoration: underline;
}

/* Category table styling */
table.category {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  background-color: #fff;
}

table.category td {
  border: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
  text-align: left;
}

table.category a {
  color: #2a69b8;
  text-decoration: none;
}

table.category a:hover {
  text-decoration: underline;
}

table.category tr:nth-child(even) {
  background-color: #f8f9fa;
}


/* Show desktop table by default */
.desktop-view {
  display: block;
}

/* Hide mobile table by default */
.mobile-view {
  display: none;
}

/* On small screens, switch visibility */
@media screen and (max-width: 600px) {
  .desktop-view {
    display: none !important;
  }
  .mobile-view {
    display: block !important;
  }

  .mobile-view .municipality-table td {
    width: 100%;
    display: block;
    text-align: center;
  }
}
