/* ===== Global Styles ===== */
.vertical-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.vertical-comparison-table td {
  padding: 8px;
  border: 1px solid #ddd;
}

/* Header row */
.vertical-comparison-table tr:first-child td {
  background-color: #FFC845;
  font-weight: bold;
  text-align: center;
}

/* Category cells */
.vertical-comparison-table td[style*="background-color: #00A9CE"] {
  background-color: #00A9CE !important;
  color: white;
}

/* Content cells */
.vertical-comparison-table td[style*="background-color: #D3D3D3"] {
  background-color: #D3D3D3 !important;
}

/* ===== Toggle Components ===== */
.toggle-bg {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.togglet {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 15px 0 !important;
}

.togglec {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.togglet h3 {
  color: #00A9CE;
  cursor: pointer;
  margin: 20px 0 10px 0;
}

/* ===== Mobile & Tablet Optimization ===== */
@media only screen and (max-width: 1024px) {
  /* General Responsive Adjustments */
  table, tbody, tr, td {
    display: block;
    width: 100% !important;
  }
  
  /* Two-column tables become stacked */
  table.existing-table-class tr {
    margin-bottom: 15px;
    display: block;
    border: 1px solid #ddd;
  }
  
  table.existing-table-class td {
    border: none !important;
    padding: 10px !important;
    display: block;
  }
  
  img[src*="/images/uploads/editor/files/"] {
    max-width: 100% !important;
    height: auto !important;
    margin: 10px auto !important;
    display: block !important;
  }
  
  /* Two-column content sections */
  table > tbody > tr > td[style*="width:50%"] {
    width: 100% !important;
    padding: 15px 0 !important;
    display: block;
  }
  
  /* Grid sections */
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  /* Spacing adjustments */
  ul, ol {
    padding-left: 20px !important;
  }
  
  /* Multi-column lists */
  ul[style*="columns"] {
    columns: 1 !important;
  }
  
  /* Button sizing */
  .buttonYellow {
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    margin: 15px 0 !important;
  }
  
  /* Remove side padding on mobile */
  td[style*="padding-right"], 
  td[style*="padding-left"] {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  
  /* Special treatment for comparison tables */
  table.existing-table-class td[style*="background-color: #FFC845"],
  table.existing-table-class td[style*="background-color: #00A9CE"] {
    font-size: 1.1em;
    padding: 12px !important;
  }
  
  /* Exercise box adjustments */
  div[style*="background: white"] {
    margin-bottom: 15px !important;
  }
  
  /* Specific image adjustments */
  div[style*="display: flex"] > img[src*="/images/uploads/editor/files/brochure-your-guide-to-breast-cancer-surgery-img-9.jpg"],
  div[style*="display: flex"] > img[src*="/images/uploads/editor/files/brochure-your-guide-to-breast-cancer-surgery-img-10.jpg"] {
    width: 100% !important;
    height: auto !important;
    margin-top: 10px !important;
    vertical-align: middle !important;
  }

  /* Adjust the flex container for mobile */
  div[style*="display: flex; align-items: flex-start; gap: 20px; margin-bottom: 20px;"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
  }
}

/* Tablet-specific adjustments (600px-1024px) */
@media only screen and (min-width: 600px) and (max-width: 1024px) {
  /* Slightly larger text for tablets */
  body {
    font-size: 1.05em;
  }
  
  /* Two-column layout for wider tablets */
  table > tbody > tr > td[style*="width:50%"] {
    width: 48% !important;
    float: left;
    padding: 0 1% !important;
  }
  
  table > tbody > tr > td[style*="width:50%"]:nth-child(2) {
    float: right;
  }
  
  /* Clearfix for floated elements */
  table > tbody > tr::after {
    content: "";
    display: table;
    clear: both;
  }
  
  /* Grid sections for tablets */
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ===== Special Components ===== */
.nausea-management-box {
  background-color: #f8f9fa;
  border-left: 4px solid #00A9CE;
  padding: 20px;
  border-radius: 0 8px 8px 0;
  margin: 25px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.exercise-card {
  background: white;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.exercise-card h4 {
  margin-top: 0;
  color: #333;
  font-size: 1.1em;
  display: flex;
  align-items: center;
}

.exercise-card h4 span {
  color: #00A9CE;
  margin-right: 8px;
}

/* ===== Color Scheme ===== */
.bg-blue {
  background-color: #00A9CE;
  color: white;
}

.bg-yellow {
  background-color: #FFC845;
}

.bg-gray {
  background-color: #D3D3D3;
}

.text-blue {
  color: #00A9CE;
}