/* Import Montserrat from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Page header logo section */
.header-logo-col {
  position: relative;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Header logo background with brand accent */
.page-header-split .header-logo-col::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 1;
}
.page-header-split.tmc .header-logo-col::before {
  background: linear-gradient(to right, var(--tmc-green) 0, var(--tmc-green) 24px, white 24px, white 100%);
  min-width: 200px;
}
.page-header-split.mcm .header-logo-col::before {
  background: linear-gradient(to right, var(--mcm-royal-blue) 0, var(--mcm-royal-blue) 24px, white 24px, white 100%);
  min-width: 200px;
}
.doclist-search-row {
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.doclist-search-row > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 300px;
}
.label {
  font-size: 2.05rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--tmc-green);
  font-family: var(--font-primary);
}
.search-box {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--tmc-green);
  border-radius: 6px;
  font-size: 1.1rem;
  font-family: var(--font-primary);
  background: #f8fafc;
  color: #334155;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  margin: 0;
  display: block;
}
.search-box.mcm {
  border-color: var(--mcm-royal-blue);
}
.label.mcm {
  color: var(--mcm-royal-blue);
}
.search-box:focus {
  border-color: var(--tmc-orange);
  box-shadow: 0 4px 12px rgba(240,148,59,0.10);
}
.search-box.mcm:focus {
  border-color: var(--mcm-light-blue);
  box-shadow: 0 4px 12px rgba(96,169,221,0.10);
}

/* Upload Toggle Button Styles */
.upload-toggle-btn {
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--tmc-green);
  background: var(--tmc-green);
  color: white;
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  min-width: 120px;
}

.upload-toggle-btn:hover {
  background: var(--tmc-orange);
  border-color: var(--tmc-orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240,148,59,0.15);
}

.upload-toggle-btn.mcm {
  border-color: var(--mcm-royal-blue);
  background: var(--mcm-royal-blue);
}

.upload-toggle-btn.mcm:hover {
  background: var(--mcm-light-blue);
  border-color: var(--mcm-light-blue);
  box-shadow: 0 4px 12px rgba(96,169,221,0.15);
}

/* Document Type Indicators */
.doc-type-indicator {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.pdf-indicator {
  color: #dc3545;
  border-left: 3px solid #dc3545;
}

.html-indicator {
  color: #007bff;
  border-left: 3px solid #007bff;
}

/* TMC Business styling for indicators */
.tmc .pdf-indicator {
  color: var(--tmc-orange);
  border-left: 3px solid var(--tmc-orange);
}

.tmc .html-indicator {
  color: var(--tmc-green);
  border-left: 3px solid var(--tmc-green);
}

/* MCM Business styling for indicators */
.mcm .pdf-indicator {
  color: var(--mcm-light-blue);
  border-left: 3px solid var(--mcm-light-blue);
}

.mcm .html-indicator {
  color: var(--mcm-royal-blue);
  border-left: 3px solid var(--mcm-royal-blue);
}

.doc-card {
  position: relative; /* Make relative to position indicators */
}

.doc-meta {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

/* PDF Upload Component Styling */
.pdf-upload-container {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.pdf-upload-container.tmc {
  border-left: 4px solid var(--tmc-green);
}

.pdf-upload-container.mcm {
  border-left: 4px solid var(--mcm-royal-blue);
}

.pdf-upload-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.pdf-upload-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pdf-upload-form .form-row {
  display: flex;
  gap: 15px;
}

.pdf-upload-form .form-row .form-group {
  flex: 1;
}

.pdf-upload-form label {
  font-weight: 600;
  color: #495057;
}

.pdf-upload-form input {
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-primary);
}

.pdf-upload-form input:focus {
  outline: none;
  border-color: var(--tmc-green);
  box-shadow: 0 0 0 2px rgba(83, 104, 40, 0.25);
}

.mcm .pdf-upload-form input:focus {
  border-color: var(--mcm-royal-blue);
  box-shadow: 0 0 0 2px rgba(53, 119, 190, 0.25);
}

.upload-button {
  background: var(--tmc-green);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: background 0.2s;
}

.upload-button:hover:not(:disabled) {
  background: var(--tmc-dark-green);
}

.upload-button:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.mcm .upload-button {
  background: var(--mcm-royal-blue);
}

.mcm .upload-button:hover:not(:disabled) {
  background: var(--mcm-dark-blue);
}

.upload-result {
  margin-top: 15px;
  padding: 12px;
  border-radius: 4px;
}

.upload-result.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.upload-result.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.upload-result a {
  color: var(--tmc-green);
  text-decoration: none;
}

.upload-result a:hover {
  text-decoration: underline;
}

.mcm .upload-result a {
  color: var(--mcm-royal-blue);
}

/* PDF Action Buttons */
.doc-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-edit, .btn-delete {
  padding: 6px 12px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-edit {
  color: var(--tmc-green);
  border-color: var(--tmc-green);
}

.btn-edit:hover:not(:disabled) {
  background: var(--tmc-green);
  color: white;
}

.btn-delete {
  color: #dc3545;
  border-color: #dc3545;
}

.btn-delete:hover:not(:disabled) {
  background: #dc3545;
  color: white;
}

.btn-edit:disabled, .btn-delete:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* MCM styling for action buttons */
.mcm .btn-edit {
  color: var(--mcm-royal-blue);
  border-color: var(--mcm-royal-blue);
}

.mcm .btn-edit:hover:not(:disabled) {
  background: var(--mcm-royal-blue);
  color: white;
}
/* DocList Search Box Styles */
.search-box {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--tmc-green);
  border-radius: 6px;
  font-size: 1.1rem;
  font-family: var(--font-primary);
  background: #f8fafc;
  color: #334155;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  margin: 0;
  display: block;
}
.search-box:focus {
  border-color: var(--tmc-orange);
  box-shadow: 0 4px 12px rgba(240,148,59,0.10);
}
footer {

  background: none;
  padding: 0;
  margin-top: 3rem;
  text-align: center;
}
/* Centralized Business Styles for TMC & MCM */

:root {
  /* TMC Colors */
  --tmc-green: #536828;
  --tmc-light-green: #A8D5BA;
  --tmc-dark-green: #3E4B20;
  --tmc-orange: #F0943B;
  --tmc-dark-grey: #666766;
  --tmc-light-grey: #B4B3B3;

  /* MCM Colors */
  --mcm-royal-blue: #3577BE;
  --mcm-light-blue: #60A9DD;
  --mcm-dark-blue: #1E3A8A;
  --mcm-dark-grey: #666766;
  --mcm-light-grey: #B4B3B3;

  /* Shared */
  --font-primary: 'Montserrat', Helvetica, Arial, sans-serif;
  --font-fallback: Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font-primary);
  background: #fff9f5;
  color: #333;
  line-height: 1.6;
}

/* Homepage Styles */
.homepage-header {
  color: white;
  padding: 3rem 1rem;
  text-align: center;
}
.homepage-header.tmc {
  background: linear-gradient(135deg, var(--tmc-green), var(--tmc-dark-green));
}
.homepage-header.mcm {
  background: linear-gradient(135deg, var(--mcm-royal-blue), var(--mcm-dark-blue));
}

/* Page header layout */
.page-header-split {
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: 0 0 2rem 0;
  min-height: 180px;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
}
.header-logo-col {
.header-line {
  width: 10%;
  min-width: 16px;
  max-width: 40px;
  height: 100%;
  display: flex;
  align-items: stretch;
}
.page-header-split.tmc .header-line {
  background: var(--tmc-green);
}
.page-header-split.mcm .header-line {
  background: var(--mcm-royal-blue);
}
.header-logo-col {
  width: 35%;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
  position: relative;
}
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}
.header-content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem 2.5rem;
  color: white;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  height: 100%;
}
.page-header-split.tmc .header-content-col {
  background: linear-gradient(135deg, var(--tmc-green), var(--tmc-dark-green));
}
.page-header-split.mcm .header-content-col {
  background: linear-gradient(135deg, var(--mcm-royal-blue), var(--mcm-dark-blue));
}
.page-header-split .company-logo {
  max-height: 80px;
  width: auto;
  height: auto;
  margin: 0;
  margin-left: 32px;
  position: relative;
  z-index: 2;
  padding: 1rem;
}

.header-logo-col a {
  display: inline-block;
  transition: transform 0.2s ease;
  position: relative;
  z-index: 3;
}
.header-logo-col a:hover {
  transform: scale(1.05);
}

.homepage-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.homepage-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

.company-grid {
  /* Deprecated: use .doclist-grid or .business-grid */
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
/* Main doclist grid layout */
body .doclist-page .doclist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
  max-width: 98%;
  /* margin-left: auto; */
  /* margin-right: auto; */
  padding: 0 1rem;
}

/* Nav-aware positioning for doclist pages */
/* Document listing page layouts */
body .doclist-page.page-content {
  padding: 0;
  background: transparent;
}

body .doclist-page .category-header-bar {
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
}

.doclist-page .category-header-left {
  flex: 1 1 auto;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 1rem;
}

body .doclist-page .category-header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-right: 1rem;
}

.doclist-page .category-header-left .label { 
  margin-bottom: 0.5rem; 
  margin-left: 0;
}

.doclist-page .category-header-left .search-box { 
  margin: 0;
  width: 100%;
  max-width: 400px;
}

/* Doc cards will naturally fit within the grid container */
/* Homepage content grid */
.business-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.doc-card {
  background: white;
  border-radius: 10px;
  padding: 1.25rem 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  border-left: 5px solid var(--tmc-green);
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: unset;
}
.doc-card.mcm {
  border-left-color: var(--mcm-royal-blue);
}
.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}
.doc-card h2 {
  color: var(--tmc-green);
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.doc-card.mcm h2 {
  color: var(--mcm-royal-blue);
}
.business-card {
  background: white;
  border-radius: 10px;
  padding: 1.25rem 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  border-left: 5px solid var(--tmc-green);
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: unset;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.business-card.mcm {
  border-left-color: var(--mcm-royal-blue);
}
.business-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}
.business-card h2 {
  color: var(--tmc-green);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.business-card.mcm h2 {
  color: var(--mcm-royal-blue);
}
.company-card.mcm {
  border-left-color: var(--mcm-royal-blue);
}
.company-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}
.company-logo {
  max-height: 150px;
  height: auto;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.company-logo-gradient-ring {
  display: inline-block;
  position: relative;
  border-radius: 50%;
  padding: 12px;
  background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(96,169,221,0.25) 60%, rgba(53,119,190,0.18) 100%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  z-index: 0;
}

.company-card h2 {
  color: var(--tmc-green);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.company-card.mcm h2 {
  color: var(--mcm-royal-blue);
}
.doc-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
  width: 100%;
}

.doc-categories .section-link {
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}
.doc-link {
  display: block;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s;
  width: 25%;
  min-width: 120px;
  max-width: 220px;
  margin: 0.75rem 0 0 0;
}
.doclist-link {
  display: block;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s;
}
.doc-card .doclist-link {
  width: 25%;
  min-width: 120px;
  max-width: 220px;
  margin: 0.75rem auto 0 auto;
}
.doclist-link:hover {
  background: var(--tmc-orange);
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}
.doc-card.mcm .doc-link:hover {
  background: var(--mcm-light-blue);
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}
.doc-card.mcm .doclist-link:hover {
  background: var(--mcm-light-blue);
}
.doc-card.tmc .doc-link:hover {
  background: var(--tmc-orange);
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}
.doc-card.tmc .doclist-link:hover {
  background: var(--tmc-orange);
}

/* Document source and status badges */
.doc-source-badge, .status-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 8pt;
  font-weight: bold;
  margin-left: 6px;
  text-transform: uppercase;
}

.doc-source-badge.fulcrum-badge {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.doc-source-badge.manual-badge {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #9ca3af;
}

.doc-source-badge.unknown-badge {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #f87171;
}

.status-badge {
  margin-left: 8px;
}

.status-draft {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #3b82f6;
}

.status-approved {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.status-in_review {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
}

.status-archived {
  background: #fed7aa;
  color: #c2410c;
  border: 1px solid #f97316;
}

.section-link {
  display: block;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  width: 100%;
}
.section-link:hover {
  background: var(--tmc-orange);
  color: white;
  transform: translateY(-1px);
}
.business-card.mcm .section-link:hover {
  background: var(--mcm-light-blue);
}

/* DocList page: compact button style */


/* Subdirectory Page Styles */
.page-header {
  background: linear-gradient(135deg, var(--tmc-green), var(--tmc-dark-green));
  color: white;
  padding: 1.5rem 0;
  text-align: center;
}
.page-header.mcm {
  background: linear-gradient(135deg, var(--mcm-royal-blue), var(--mcm-dark-blue));
}
.page-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
/* Document listing pages - full width */
body .doclist-page .page-content {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: white;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

/* Individual document pages - centered with margins */
.page-content {
  max-width: 90%;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

/* Individual document content styling */
.doc-template {
  font-family: var(--font-primary);
  background: #fff;
  color: #333;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.doc-template.tmc {
  border-left: 6px solid var(--tmc-green);
}
.doc-template.mcm {
  border-left: 6px solid var(--mcm-royal-blue);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
body .tmc-bg {
  background: var(--tmc-green);
  color: white;
  padding: 3rem 0;
  width: 100%;
  margin: 0;
}
body .mcm-bg {
  background: var(--mcm-royal-blue);
  color: white;
  padding: 3rem 0;
  width: 100%;
  margin: 0;
}
body .tmc-color {
  color: var(--tmc-green);
}
body .mcm-color {
  color: var(--mcm-royal-blue);
}

/* ==========================================================================
   Responsive Design - Mobile
   ========================================================================== */
@media (max-width: 768px) {
  .company-grid {
    grid-template-columns: 1fr;
  }
  .doc-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .homepage-title {
    font-size: 2rem;
  }
  .page-title {
    font-size: 1.3rem;
  }
  body .page-header-split {
    flex-direction: column;
    min-height: auto;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 0;
    width: 100%;
  }
  .page-header-split .header-logo-col::before {
    display: none;
  }
  .header-logo-col {
    width: 100%;
    padding: 1rem 0;
  }
  body .page-header-split .header-content-col {
    width: 100%;
    padding: 1rem;
    border-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    text-align: center;
    align-items: center;
    margin: 0;
    box-sizing: border-box;
  }
  .page-header-split .company-logo {
    max-height: 80px;
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .business-grid {
    max-width: 95%;
    padding: 0 0.5rem;
  }

  /* Mobile overrides for doclist layout */
  /* Mobile layout adjustments */
  body .doclist-page .category-header-bar {
    max-width: 85%;
    margin: 0 auto 1.5rem auto;
    padding: 0 1.5rem;
    flex-direction: column;
    align-items: stretch;
  }
  
  body .doclist-page .category-header-left {
    padding-left: 1rem;
  }
  
  body .doclist-page .category-header-right {
    justify-content: flex-start;
    max-width: none;
    margin-top: 1rem;
    padding-right: 1rem;
  }
  
  body .doclist-page .doclist-grid {
    max-width: 100%;
    padding: 0 1.5rem;
  }

  .doc-link, .doclist-link, .section-link {
    width: 100%;
    max-width: none;
    margin: 0.5rem 0;
    box-sizing: border-box;
  }
  .doc-card {
    margin: 0 0.5rem 0 0.5rem; /* Reduced margins to prevent cutoff */
    padding: 0.75rem;
    box-sizing: border-box;
  }
  .doc-card .doc-link {
    width: 100%;
    margin: 0.25rem 0 0 0;
    padding: 0.25rem 0.75rem;
    box-sizing: border-box;
  }
  .doc-card h2 {
    margin-top: -0.25rem;
    margin-bottom: 0.0rem;
    font-size: 1.1rem;
  }
  .doc-card p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
  }
  .label {
    font-size: 1.5rem;
    margin-left: 1rem;
  }
  .doclist-grid .label {
    margin-left: 1rem;
  }
  .search-box {
    max-width: none;
    font-size: 1rem;
    width: calc(100% - 2rem);
    margin-left: 1rem;
    margin-right: 1rem;
    box-sizing: border-box;
  }
  .doclist-search-row {
    margin: 1rem 0;
    padding: 0;
  }
  .doclist-grid {
    padding: 0;
    max-width: 100%;
    margin: 0;
  }
  .page-content {
    max-width: 100%;
    margin: 0;
    padding: 1rem; /* Add consistent padding on mobile */
    background: white;
    border-radius: 0;
    box-shadow: none;
  }
  .homepage-header {
    padding: 1rem 1rem;
  }
  footer {
    padding: 4rem 1rem;
  }
  .homepage-title {
    font-size: 1.8rem;
    line-height: 1.2;
    word-spacing: 100vw;
    margin-bottom: 1rem;
  }
  .homepage-subtitle {
    font-size: 1rem;
    line-height: 1.3;
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .homepage-title {
    font-size: 1.5rem;
    word-spacing: 100vw;
    line-height: 1.1;
    margin-bottom: 1rem;
  }
  .homepage-subtitle {
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 250px;
    margin: 0 auto;
  }
  .page-title {
    font-size: 1.1rem;
  }
  .label {
    font-size: 1.3rem;
  }
  .doc-card, .business-card {
    padding: 1rem 1.5rem;
  }
  .header-content-col {
    padding: 0.75rem 1rem;
  }
  .page-header-split .company-logo {
    max-height: 60px;
  }
  footer {
    padding: 2rem 0.5rem;
  }
}

/* Logo Effect Demo Classes */
.logo-effect-shadow {
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.18));
}
.logo-effect-glow {
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.7));
}
.logo-effect-border {
  border: 4px solid #fff;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
}
.logo-effect-border-dark {
  border: 4px solid #222;
  border-radius: 12px;
  background: rgba(0,0,0,0.05);
}
.logo-effect-circle {
  background: #fff;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  position: relative;
  overflow: hidden;
  width: 174px;
  height: 174px;
}
.logo-effect-circle .company-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  margin-bottom: 0;
  display: block;
}
.logo-effect-circle-dark {
  background: #222;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.logo-effect-gradient-border {
  border: 4px solid;
  border-image: linear-gradient(45deg, #60A9DD, #3577BE) 1;
  border-radius: 12px;
}
.logo-effect-multishadow {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.10)) drop-shadow(0 0 8px rgba(255,255,255,0.3));
}
.logo-effect-blur-bg {
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 8px;
}
.logo-effect-halo {
  box-shadow: 0 0 0 12px rgba(96,169,221,0.15), 0 4px 16px rgba(0,0,0,0.10);
  border-radius: 50%;
}
