/* About Page Specific Styles */

/* Optimize sections for single-screen viewing */
.info-section {
  margin-bottom: clamp(2.5rem, 6vw, 4rem); /* Responsive section spacing */
}

.info-section:last-of-type {
  margin-bottom: clamp(3rem, 7vw, 5rem); /* More space for last section */
}

.section-header {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.section-description {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.6;
  max-width: 800px; /* Prevent text from becoming too wide */
  margin-left: auto;
  margin-right: auto;
}

/* Impact Grid for concise, scannable content */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem); /* Responsive gap */
  margin-top: clamp(1.5rem, 4vw, 3rem); /* Responsive top margin */
}

.impact-item {
  text-align: center;
  padding: clamp(1.25rem, 3vw, 2rem); /* Responsive padding */
  background: white;
  border-radius: clamp(12px, 2vw, 16px); /* Responsive border radius */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.1);
  transition: all 0.3s ease;
}

.impact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(76, 175, 80, 0.15);
}

.impact-item h3 {
  color: #2E7D32;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.impact-item p {
  color: #666;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Patient Workflow Styling */
.patient-workflow {
  margin-top: 2rem;
  text-align: center;
}

.patient-workflow h3 {
  color: #2E7D32;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.workflow-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.workflow-step {
  background: linear-gradient(135deg, #f8fff8 0%, #f0f8f0 100%);
  padding: 1rem;
  border-radius: 8px;
  border: 2px solid #4CAF50;
  text-align: center;
  font-weight: 600;
  color: #2E7D32;
  min-width: 120px;
  transition: all 0.3s ease;
}

.workflow-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.2);
}

.workflow-step i {
  color: #4CAF50;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.workflow-arrow {
  color: #666;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Story Section */
.story-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
  border-radius: 20px;
  padding: 3rem;
  margin: 3rem 0;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

.story-visual {
  text-align: center;
}

.story-icon {
  font-size: 8rem;
  color: #4CAF50;
  margin-bottom: 1rem;
  opacity: 0.8;
}

/* Innovation Showcase */
.innovation-showcase {
  margin: 4rem 0;
}

.innovation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.innovation-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.innovation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.innovation-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(76, 175, 80, 0.15);
}

.innovation-card i {
  font-size: 4rem;
  color: #4CAF50;
  margin-bottom: 1.5rem;
}

.innovation-card h4 {
  color: #2E7D32;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.innovation-card p {
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* Technology Section */
.tech-section {
  background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
  border-radius: 20px;
  padding: 3rem;
  margin: 3rem 0;
}

.tech-features {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.tech-feature {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.tech-feature:hover {
  transform: translateX(10px);
  box-shadow: 0 12px 48px rgba(76, 175, 80, 0.15);
}

.tech-feature i {
  font-size: 3rem;
  color: #4CAF50;
  flex-shrink: 0;
}

.tech-feature-content h4 {
  color: #2E7D32;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.tech-feature-content p {
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  margin: 3rem 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(76, 175, 80, 0.15);
}

.contact-card i {
  font-size: 2.5rem;
  color: #4CAF50;
  margin-bottom: 1rem;
}

.contact-card h4 {
  color: #2E7D32;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.contact-card p {
  margin: 0;
  color: #666;
}

.contact-card a {
  color: #4CAF50;
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Comparison Table Styles */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.comparison-table thead {
  background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
  color: white;
}

.comparison-table th {
  padding: 1.5rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.comparison-table .feature-header {
  background: #f8f9fa;
  color: #2E7D32;
  font-weight: 700;
  text-align: left;
  width: 25%;
}

.comparison-table .digi-header {
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
  color: #2E7D32;
  border-left: 2px solid #4CAF50;
}

.comparison-table .competitor-header {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  color: #424242;
  border-left: 1px solid #bdbdbd;
  font-weight: 600;
}

.comparison-table .trad-header {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #d32f2f;
  border-left: 2px solid #f44336;
  font-weight: 700;
}

.comparison-table .trad-header strong {
  color: #b71c1c;
}

.comparison-table .digi-header i,
.comparison-table .trad-header i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.comparison-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.comparison-table tbody tr:hover {
  background-color: #f8f9fa;
}

.comparison-table td {
  padding: 1.2rem 1rem;
  vertical-align: middle;
  border-right: 1px solid #e0e0e0;
}

.comparison-table .feature-cell {
  font-weight: 600;
  color: #2E7D32;
  background: #f8f9fa;
  width: 25%;
}

.comparison-table .digi-cell {
  background: linear-gradient(135deg, #f8fff8 0%, #f0f8f0 100%);
  color: #2E7D32;
  text-align: center;
  border-left: 3px solid #4CAF50;
}

.comparison-table .competitor-cell {
  background: #fafafa;
  color: #424242;
  text-align: center;
  border-left: 1px solid #e0e0e0;
}

.comparison-table .trad-cell {
  background: linear-gradient(135deg, #fff8f8 0%, #ffebee 100%);
  color: #d32f2f;
  text-align: center;
  border-left: 3px solid #f44336;
}

.comparison-table .digi-cell i.fa-check-circle {
  color: #4CAF50;
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.comparison-table .trad-cell i.fa-times-circle {
  color: #f44336;
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .story-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .story-icon {
    font-size: 6rem;
  }
  
  .innovation-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .tech-feature {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Responsive Impact Grid */
  .impact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .impact-item {
    padding: clamp(1rem, 2.5vw, 1.5rem);
  }

  .impact-item h3 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
  }

  .impact-item p {
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  }

  /* Responsive Patient Workflow */
  .workflow-steps {
    flex-direction: column;
    gap: 1rem;
  }

  .workflow-arrow {
    transform: rotate(90deg);
    font-size: 1.2rem;
  }

  .workflow-step {
    min-width: auto;
    width: 100%;
    max-width: 300px;
  }

  /* Responsive Comparison Table */
  .comparison-table {
    font-size: 0.85rem;
    margin: 1.5rem 0;
    overflow-x: auto; /* Add horizontal scroll for very small tablets */
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.7rem 0.4rem;
    white-space: nowrap; /* Prevent text wrapping */
  }

  .comparison-table .feature-header {
    font-size: 0.95rem;
    min-width: 120px; /* Ensure minimum width */
  }

  .comparison-table .digi-header,
  .comparison-table .trad-header,
  .comparison-table .competitor-header {
    font-size: 0.95rem;
    min-width: 120px; /* Ensure minimum width */
  }

  .comparison-table .digi-header i,
  .comparison-table .trad-header i {
    font-size: 1rem;
  }

  /* Better hover effects on tablets */
  .comparison-table tbody tr:hover {
    background-color: #f0f8f0;
    transform: scale(1.01);
  }
}

/* Mobile comparison - hide by default on all screens */
.comparison-mobile {
  display: none;
}

/* Tablet-specific improvements for comparison table */
@media (max-width: 768px) and (min-width: 601px) {
  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.6rem 0.3rem;
  }

  .comparison-table .feature-header {
    width: 35%;
    font-size: 0.9rem;
  }

  .comparison-table .digi-header,
  .comparison-table .trad-header,
  .comparison-table .competitor-header {
    width: 15%;
    font-size: 0.8rem;
  }

  .comparison-table .feature-cell {
    width: 25%;
    font-size: 0.85rem;
  }

  .comparison-table .digi-cell,
  .comparison-table .trad-cell,
  .comparison-table .competitor-cell {
    width: 15%;
    font-size: 0.8rem;
  }
}

/* Mobile Comparison - show only on very small screens */
@media (max-width: 600px) {
  .comparison-table {
    display: none;
  }

  .comparison-mobile {
    display: block;
    margin-top: 2rem;
  }

  /* Software Overview Cards */
  .software-overview h3 {
    color: #2E7D32;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
  }

  .software-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .software-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .software-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  }

  .software-card.digi-card {
    border-left: 4px solid #4CAF50;
    background: linear-gradient(135deg, #f8fff8 0%, #ffffff 100%);
  }

  .software-card.competitor-card {
    border-left: 4px solid #757575;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
  }

  .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .card-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2E7D32;
  }

  .card-header i {
    font-size: 1.8rem;
    color: #4CAF50;
  }

  .competitor-card .card-header h4 {
    color: #424242;
  }

  .competitor-card .card-header i {
    color: #757575;
  }

  .badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .badge.ai-badge {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
  }

  .badge.mobile-badge {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
    color: white;
  }

  .badge.clinic-badge {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    color: white;
  }

  .badge.pro-badge {
    background: linear-gradient(135deg, #9C27B0, #BA68C8);
    color: white;
  }

  .badge.web-badge {
    background: linear-gradient(135deg, #607D8B, #90A4AE);
    color: white;
  }

  .card-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .feature-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
  }

  .feature-item i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
  }

  .feature-item i.fa-check {
    color: #4CAF50;
  }

  .feature-item i.fa-times {
    color: #f44336;
  }

  /* Mobile Comparison Styling (Legacy) */
  .feature-comparison {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 1.2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .feature-comparison:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  }

  .feature-title {
    font-weight: 600;
    color: #2E7D32;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
    font-size: 1rem;
  }

  .comparison-pair {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .comparison-pair:last-child {
    border-bottom: none;
  }

  .trad-side,
  .digi-side {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.4;
    min-width: 120px;
  }

  .trad-side {
    justify-content: flex-end;
    color: #d32f2f;
    text-align: right;
    flex-direction: row-reverse;
  }

  .digi-side {
    justify-content: flex-start;
    color: #2E7D32;
    text-align: left;
  }

  .trad-side i.fa-times-circle,
  .digi-side i.fa-check-circle {
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .trad-side i.fa-times-circle {
    color: #f44336;
    margin-left: 0.4rem;
  }

  .digi-side i.fa-check-circle {
    color: #4CAF50;
    margin-right: 0.4rem;
  }
}






/* Very large screens - prevent content from becoming too spread out */
@media (min-width: 1400px) {
  .impact-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .section-description {
    max-width: 900px;
  }
}
