* {
  box-sizing: border-box;
}

body {
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #fafafa;
}

.container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

header {
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 1rem 0;
}

header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Welcome Section */
.welcome-section {
  background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
  color: #fff;
  padding: 3rem 0;
  margin-bottom: 2rem;
  text-align: center;
}

.welcome-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Image Section */
.hero-section {
  margin-bottom: 2rem;
  text-align: center;
}

.sidebar-profile-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #fff;
}

.profile-section {
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile-image-container {
  padding: 1rem 0 0.5rem 0;
}

.x-link-container {
  margin-top: 0.5rem;
}

.x-link {
  text-decoration: none;
  display: inline-block;
}

.x-icon-circle {
  width: 36px;
  height: 36px;
  background-color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.x-icon-circle:hover {
  background-color: #333;
}

.x-logo {
  width: 18px;
  height: 18px;
}

.profile-bio {
  margin-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #666;
  text-align: center;
  padding: 0 1rem;
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.twitter-share-container {
  margin: 2rem 0;
  text-align: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 1.5rem 0;
}

.welcome-content h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.welcome-content h2 {
  color: #ecf0f1;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.welcome-content p {
  color: #ecf0f1;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Clear navigation styling to distinguish from ads */
.main-navigation {
  background: transparent;
  border: none;
  font-family: inherit;
}

.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.main-menu li {
  margin: 0;
  padding: 0;
}

.main-menu a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: transparent;
  border: 1px solid transparent;
}

.main-menu a:hover {
  background-color: #ecf0f1;
  color: #2c3e50;
  border-color: #bdc3c7;
  text-decoration: none;
}

.main-menu a.active,
.main-menu a.ancestor {
  background-color: #3498db;
  color: #fff;
  border-color: #3498db;
}

.main-menu a.active:hover,
.main-menu a.ancestor:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

header .title {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

header .title h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #2c3e50;
  font-weight: 700;
}

header .title:hover h1 {
  color: #3498db;
  transition: color 0.3s ease;
}

/* Layout Container */
.layout-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
  padding: 1rem 2rem;
  align-items: flex-start;
  width: 100%;
}

/* Sidebar Styling */
.sidebar {
  flex: 0 0 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid #e5e5e5;
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.sidebar-content {
  padding: 1.5rem;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

/* Sidebar Tags Accordion */
.sidebar-tags-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tag-category {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #f8f9fa;
  overflow: hidden;
}

.tag-category-button {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
  transition: all 0.3s ease;
  text-align: left;
}

.tag-category-button:hover {
  background: rgba(52, 152, 219, 0.1);
}

.tag-category-button.active {
  background: #3498db;
  color: #fff;
}

.category-icon {
  font-size: 1.1rem;
  width: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-name {
  flex: 1;
}

.category-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  color: #666;
}

.tag-category-button.active .category-arrow {
  transform: rotate(90deg);
  color: #fff;
}

.category-count {
  background: rgba(0,0,0,0.1);
  color: #666;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 1.5rem;
  text-align: center;
}

.tag-category-button.active .category-count {
  background: rgba(255,255,255,0.3);
  color: #fff;
}

.tag-category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fff;
}

.tag-category-content.active {
  max-height: 500px;
}

.sidebar-tag-link {
  background: transparent;
  border: none;
  border-bottom: 1px solid #f1f3f4;
  color: #495057;
  text-decoration: none;
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 0;
}

.sidebar-tag-link.nested {
  padding-left: 2rem;
  position: relative;
}

.sidebar-tag-link.nested:before {
  content: "└";
  position: absolute;
  left: 1rem;
  color: #999;
  font-size: 0.8rem;
}

.sidebar-tag-link:hover {
  background: #f8f9fa;
  color: #2c3e50;
  transform: translateX(4px);
  text-decoration: none;
}

.sidebar-tag-link:last-child {
  border-bottom: none;
}

.sidebar-tag-name {
  font-weight: 600;
}

.sidebar-tag-count {
  background: rgba(0,0,0,0.1);
  color: #666;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 1.2rem;
  text-align: center;
}

.sidebar-tag-link:hover .sidebar-tag-count {
  background: #3498db;
  color: #fff;
}

/* Sidebar Archive */
.sidebar-archive-link {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  display: block;
  text-align: center;
  transition: all 0.3s ease;
}

.sidebar-archive-link:hover {
  background: #3498db;
  color: #fff;
  border-color: #3498db;
  text-decoration: none;
}

/* Main Content */
.main-content {
  flex: 1;
  min-width: 0;
}

main {
  min-height: calc(100vh - 200px);
  padding: 0;
}

footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 2rem 0 1rem;
  margin-top: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px 12px 0 0;
  width: 100%;
}

/* Footer navigation styling to clearly distinguish from ads */
.footer-navigation,
.footer-links {
  background: transparent;
  border: none;
  margin: 1rem 0;
}

.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.footer-links-list li {
  margin: 0;
  padding: 0;
}

.footer-links-list a {
  color: #ecf0f1;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: transparent;
  border: 1px solid transparent;
}

.footer-links-list a:hover {
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
  text-decoration: none;
}

.language-selector-footer {
  text-align: center;
  margin: 1rem 0;
}

.language-selector-footer label {
  color: #ecf0f1;
  font-weight: 500;
  margin-right: 0.5rem;
}

.language-selector-footer select {
  background-color: #34495e;
  color: #ecf0f1;
  border: 1px solid #7f8c8d;
  padding: 0.5rem;
  border-radius: 4px;
  font-family: inherit;
}

/* Tags Section Styling */
.tags-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 3rem 0;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tags-title {
  text-align: center;
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.tag-link {
  background: #fff;
  border: 2px solid #e5e5e5;
  color: #495057;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.tag-link:hover {
  background: #3498db;
  color: #fff;
  border-color: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
  text-decoration: none;
}

.tag-name {
  font-weight: 600;
}

.tag-count {
  background: rgba(0,0,0,0.1);
  color: #666;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 1.5rem;
  text-align: center;
}

.tag-link:hover .tag-count {
  background: rgba(255,255,255,0.3);
  color: #fff;
}

/* Page Header Styling */
.page-header {
  text-align: center;
  margin: 2rem 0 3rem;
  padding: 0 2rem;
}

.page-title {
  color: #2c3e50;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.page-description {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.posts-count {
  color: #999;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

/* Posts Section Styling */
.posts-section {
  margin: 3rem 0;
}

.posts-title {
  text-align: center;
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

/* Tabs Styling */
.tabs-container {
  margin: 2rem 0 3rem;
  display: flex;
  justify-content: center;
}

.tabs-nav {
  display: flex;
  background: #f8f9fa;
  border-radius: 50px;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid #e5e5e5;
}

.tab-button {
  background: transparent;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #666;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-family: inherit;
  outline: none;
  min-width: 80px;
}

.tab-button:hover {
  color: #2c3e50;
  background: rgba(52, 152, 219, 0.1);
}

.tab-button.active {
  background: #3498db;
  color: #fff;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
  transform: translateY(-1px);
}

.tab-button:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* Tab Content */
.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Tags Styling */
.card-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-tag {
  background: #e9ecef;
  color: #495057;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.card:hover .card-tag {
  background: #3498db;
  color: #fff;
}

/* No Posts Message */
.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
  font-size: 1.1rem;
}

/* Tags Grid for terms page */
.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0;
  width: 100%;
  margin: 0;
}

.tag-grid-item {
  background: #fff;
  border: 2px solid #e5e5e5;
  color: #2c3e50;
  text-decoration: none;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tag-grid-item:hover {
  background: #3498db;
  color: #fff;
  border-color: #3498db;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
  text-decoration: none;
}

.tag-grid-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: inherit;
}

.tag-grid-count {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  color: #666;
}

.tag-grid-item:hover .tag-grid-count {
  color: rgba(255,255,255,0.9);
}

/* Ad placement guidelines - prevent confusion with navigation */
.adsbygoogle,
[class*="ad-"],
[id*="ad-"] {
  margin: 2rem 0 !important;
  padding: 1rem !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 8px !important;
  background-color: #fafafa !important;
  position: relative !important;
  clear: both !important;
}

.adsbygoogle::before {
  content: "Advertisement" !important;
  display: block !important;
  font-size: 0.8rem !important;
  color: #999 !important;
  text-align: center !important;
  margin-bottom: 0.5rem !important;
  font-weight: normal !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  padding: 0;
  width: 100%;
  margin: 0;
}

.cards .card {
  background: #fff;
  border: 1px solid #e5e5e5;
  color: #333;
  padding: 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cards .card h2 {
  font-size: 1.2rem;
  margin: 0;
  color: #2c3e50;
  font-weight: 600;
  line-height: 1.4;
}

.cards .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: #3498db;
}

.cards .card:hover h2 {
  color: #3498db;
}

.card-description {
  font-size: 0.9rem;
  color: #666;
  margin: 0.8rem 0;
  line-height: 1.5;
}

.card-date {
  font-size: 0.8rem;
  color: #999;
  margin: 0;
  margin-top: 1rem;
  border-top: 1px solid #f0f0f0;
  padding-top: 0.8rem;
}

.article-header-image {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-header-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.article-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}

.article-header h1 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-date {
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
}

.table-of-contents {
  background-color: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.table-of-contents h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #2c3e50;
  font-size: 1.1rem;
}

.table-of-contents ul {
  margin: 0;
  padding-left: 1.5rem;
}

.table-of-contents li {
  margin: 0.5rem 0;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: #2c3e50;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
}

.article-content h3 {
  font-size: 1.4rem;
}

.article-content p {
  margin: 1.5rem 0;
}

.article-content blockquote {
  border-left: 4px solid #3498db;
  background-color: #f8f9fa;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.article-content code {
  background-color: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
}

.article-content pre {
  background-color: #2d3748;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Breadcrumb Navigation - Clearly distinct from ads */
.breadcrumb {
  margin: 1rem 0 2rem;
  padding: 1rem 0;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  margin: 0 auto;
  padding: 0 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  font-family: inherit;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #495057;
}

.breadcrumb-item + .breadcrumb-item:before {
  content: "›";
  padding: 0 0.5rem;
  color: #6c757d;
  font-weight: bold;
}

.breadcrumb-item a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #2c3e50;
  font-weight: 600;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

table th,
table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
}

table th:last-child,
table td:last-child {
  border-right: none;
}

table th {
  background-color: #f8f9fa;
  color: #2c3e50;
  font-weight: 600;
  border-bottom: 2px solid #3498db;
}

table tbody tr:hover {
  background-color: #f8f9fa;
  transition: background-color 0.2s ease;
}

table tbody tr:last-child td {
  border-bottom: none;
}

nav.menu {
  display: flex;
  align-items: center;
}

nav.menu ul {
  display: flex;
  list-style-type: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav.menu ul li a {
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

nav.menu ul li a:hover {
  background-color: #3498db;
  color: #fff;
  text-decoration: none;
}

.language-selector-footer {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #34495e;
}

.language-selector-footer label {
  color: #bdc3c7;
  margin-right: 0.5rem;
}

.language-selector-footer select {
  background-color: #34495e;
  color: #ecf0f1;
  border: 1px solid #4a5568;
  border-radius: 6px;
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
}

footer p {
  text-align: center;
  margin: 0.5rem 0;
  color: #bdc3c7;
}

footer p a {
  color: #3498db;
  margin: 0 0.5rem;
}

footer p a:hover {
  color: #5dade2;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  header .header-content {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  /* Mobile welcome section */
  .welcome-section {
    padding: 2rem 0;
    margin-bottom: 1rem;
  }

  .welcome-content {
    padding: 0 1rem;
  }

  .welcome-content h1 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .welcome-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }

  .welcome-content p {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  /* Mobile layout - stack sidebar below main content */
  .layout-container {
    flex-direction: column-reverse;
    padding: 1rem;
    gap: 1rem;
  }

  .sidebar {
    flex: none;
    width: 100%;
    position: static;
    max-height: none;
  }

  .sidebar-content {
    padding: 1rem;
  }

  .sidebar-title {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .sidebar-tags-accordion {
    gap: 0.4rem;
  }

  .tag-category-button {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }

  .category-icon {
    font-size: 1rem;
    width: 1.2rem;
  }

  .sidebar-tag-link.nested {
    padding-left: 1.5rem;
  }

  .sidebar-tag-link.nested:before {
    left: 0.8rem;
  }

  .sidebar-tag-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .cards {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .tags-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tag-grid-item {
    padding: 1.5rem 1rem;
  }

  .tag-grid-name {
    font-size: 1.1rem;
  }
  
  nav.menu ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .content-wrapper {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .article-header-image img {
    height: 200px;
  }

  /* Mobile-responsive tags section */
  .tags-section {
    margin: 1rem 0;
    padding: 2rem 0;
    border-radius: 8px;
  }

  .tags-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .tags-cloud {
    padding: 0 1rem;
    gap: 0.6rem;
  }

  .tag-link {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .posts-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  /* Mobile tabs styling */
  .tabs-container {
    margin: 1.5rem 0 2rem;
    padding: 0 1rem;
  }

  .tabs-nav {
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0.3rem;
    border-radius: 25px;
  }

  .tab-button {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    min-width: 60px;
    flex: 1;
    text-align: center;
  }

  /* Mobile page header */
  .page-header {
    margin: 1rem 0 2rem;
    padding: 0 1rem;
  }

  .page-title {
    font-size: 1.6rem;
    line-height: 1.4;
  }

  .page-description {
    font-size: 1rem;
  }

  .posts-count {
    font-size: 0.9rem;
  }

  .card-tags {
    gap: 0.3rem;
  }

  .card-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }

  .footer-links-list {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Large screens - even wider layout */
@media (min-width: 1600px) {
  .layout-container {
    max-width: 1600px;
    padding: 1rem 3rem;
  }
  
  header .header-content {
    max-width: 1600px;
    padding: 0 3rem;
  }
  
  .welcome-content {
    max-width: 1600px;
    padding: 0 3rem;
  }
  
  .welcome-content h1 {
    font-size: 3rem;
  }
  
  .welcome-content h2 {
    font-size: 2.2rem;
  }
  
  .welcome-content p {
    font-size: 1.2rem;
  }
  
  footer {
    max-width: 1600px;
  }
  
  .sidebar {
    flex: 0 0 320px;
  }
  
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
  }

  .tags-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
  }

  .tag-grid-item {
    padding: 2.5rem 2rem;
  }

  .tag-grid-name {
    font-size: 1.5rem;
  }

  .tag-grid-count {
    font-size: 1rem;
  }
}