:root {
  --bg-page: #F8FAFC;
  --bg-hero-start: #F0FDFA;
  --bg-hero-end: #F1F5F9;
  --bg-card: #FFFFFF;
  --primary-accent: #0D9488;
  --primary-accent-light: #CCFBF1;
  --text-dark: #1E293B;
  --text-medium: #475569;
  --text-light: #94A3B8;
  --border-color: #E2E8F0;
  --error-bg: #FEF2F2;
  --error-text: #DC2626;
  --warning-bg: #FFFBEB;
  --warning-text: #B45309;
  --success-bg: #ECFDF5;
  --success-text: #065F46;
  --puppy-color: #3B82F6;
  --adult-color: #10B981;
  --senior-color: #F59E0B;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-medium);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

h2.section-title {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  margin-bottom: 1.25rem;
}

h3.subsection-title {
  font-size: clamp(1rem, 3vw, 1.1rem);
  margin-bottom: 0.75rem;
}

/* Navigation */
.navbar {
  background-color: var(--bg-card);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem clamp(0.75rem, 3vw, 1rem);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo {
  height: 32px;
  width: auto;
}

.brand-name {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Navigation Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.25rem;
  z-index: 1002;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Navigation Slider */
.nav-slider {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--bg-card);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out;
  z-index: 1001;
  overflow-y: auto;
}

.nav-slider.active {
  right: 0;
}

.slider-content {
  padding: 1.5rem;
  height: 100%;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.slider-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
}

.slider-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-link {
  display: block;
  padding: 1rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.slider-link:hover, .slider-link.active {
  background-color: var(--primary-accent-light);
  color: var(--primary-accent);
}

/* Overlay when slider is open */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--bg-hero-start) 0%, var(--bg-hero-end) 100%);
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-text p {
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin-bottom: 2.5rem;
  color: var(--text-medium);
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Main Card Spacing */
.main-card {
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 1rem;
  }
  
  .main-card {
    margin-top: -1.5rem;
  }
  
  .hero-text p {
    margin-bottom: 2rem;
  }
}

/* Centered Form Container */
.centered-form-container {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* Main Tabs - Button Style */
.main-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.main-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border: 2px solid var(--primary-accent);
  border-radius: 0.75rem;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: var(--primary-accent);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.1);
  min-width: 140px;
  justify-content: center;
}

.main-tab:hover {
  background-color: var(--primary-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.main-tab.active {
  background-color: var(--primary-accent);
  border-color: var(--primary-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.main-tab i {
  font-size: 1.1rem;
}

/* Pet Options */
.pet-options {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.pet-options.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Form Elements */
.form-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-weight: 500;
  color: var(--text-dark);
}

.input-group input, .input-group select {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s;
  background-color: white;
}

.input-group input:focus, .input-group select:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.input-help {
  font-size: 0.875rem;
  color: var(--text-light);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Age Input Container */
.age-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.age-input-container input {
  flex: 1;
  padding-right: 4rem;
}

.age-unit {
  position: absolute;
  right: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
  pointer-events: none;
}

/* Buttons */
.calculate-button {
  background-color: var(--primary-accent);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.calculate-button:hover {
  background-color: #0f766e;
  transform: translateY(-2px);
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #0f766e;
  transform: translateY(-2px);
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background-color: white;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
  text-align: center;
}

.action-button:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
}

.action-button.secondary {
  background-color: var(--bg-page);
}

.action-button.small {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

/* Results Section */
.results-section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.result-card {
  background: var(--bg-page);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.result-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-accent-light);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.result-icon i {
  font-size: 1.25rem;
  color: var(--primary-accent);
}

.result-content {
  flex: 1;
}

.result-content h4 {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.age-display {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.life-stage {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.lifespan {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.result-description {
  font-size: 0.875rem;
  color: var(--text-medium);
  line-height: 1.4;
}

/* SIMPLE CHART STYLES - NO CHART.JS */
.simple-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  background: var(--bg-page);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid var(--border-color);
}

.chart-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 45%;
}

.bar-container {
  height: 150px;
  width: 40px;
  background: var(--border-color);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-accent);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
}

.bar-fill.human-bar {
  background: #3B82F6;
}

.bar-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-medium);
  text-align: center;
}

.bar-value {
  font-weight: 600;
  color: var(--text-dark);
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-pet {
  background: var(--primary-accent);
}

.legend-human {
  background: #3B82F6;
}

/* Age Chart Section */
.age-chart-section {
  background: var(--bg-card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.age-chart-section h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Care Recommendations */
.care-recommendations {
  background: var(--success-bg);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--success-text);
}

.care-recommendations h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--success-text);
}

.care-tips-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.care-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
}

.care-tip i {
  color: var(--success-text);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.care-tip p {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.4;
}

/* Saved Pets */
.saved-pets-section {
  background: var(--bg-page);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  margin-top: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-header h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.saved-pets-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.saved-pet-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.saved-pet-item:hover {
  border-color: var(--primary-accent);
}

.saved-pet-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.saved-pet-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.saved-pet-icon i {
  color: var(--primary-accent);
  font-size: 1rem;
}

.saved-pet-details h5 {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.saved-pet-details p {
  font-size: 0.875rem;
  color: var(--text-light);
}

.saved-pet-actions {
  display: flex;
  gap: 0.5rem;
}

/* Notices */
.privacy-notice, .disclaimer-box {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.privacy-notice {
  background-color: var(--success-bg);
  border-left: 4px solid var(--success-text);
}

.disclaimer-box {
  background-color: var(--warning-bg);
  border-left: 4px solid var(--warning-text);
}

.privacy-title, .disclaimer-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.privacy-text, .disclaimer-text {
  font-size: 0.875rem;
  color: var(--text-medium);
}

/* Message Boxes */
.message-box {
  padding: 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.message-box i {
  font-size: 1.25rem;
  margin-top: 0.125rem;
}

.message-content {
  flex: 1;
}

.error-box {
  background-color: var(--error-bg);
  color: var(--error-text);
  border-left: 4px solid var(--error-text);
}

.success-box {
  background-color: var(--success-bg);
  color: var(--success-text);
  border-left: 4px solid var(--success-text);
}

.info-box {
  background-color: var(--primary-accent-light);
  color: var(--primary-accent);
  border-left: 4px solid var(--primary-accent);
}

/* Animations */
.animate-on-load {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== */
/* CONTENT SECTION STYLES */
/* ==================== */

/* Content Cards */
.content-card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  overflow: hidden;
}

.content-card h3 {
  color: var(--primary-accent);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.content-card p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text-medium);
  font-size: 0.95rem;
  max-width: 100%;
  word-break: break-word;
}

.content-card * {
  max-width: 100%;
}

.keyword-highlight {
  background: var(--primary-accent-light);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  color: var(--primary-accent);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Enhanced Overview Section */
.overview-section {
  padding: 4rem 1rem;
  background: var(--bg-page);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
}

.overview-card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  overflow: hidden;
}

.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.overview-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.overview-icon i {
  font-size: 1.5rem;
  color: var(--primary-accent);
}

.overview-card h3 {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.overview-card p {
  color: var(--text-medium);
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 100%;
  word-break: break-word;
}

.overview-card * {
  max-width: 100%;
}

/* Use Cases Section */
.use-cases-section {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, var(--bg-hero-start) 0%, var(--bg-hero-end) 100%);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .use-cases-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.use-case-card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  overflow: hidden;
}

.use-case-card h3 {
  color: var(--primary-accent);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.use-case-card * {
  max-width: 100%;
}

.problem-solution {
  margin-bottom: 1.5rem;
}

.problem, .solution {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 4px solid;
  word-wrap: break-word;
  font-size: 0.9rem;
  line-height: 1.5;
}

.problem {
  background: var(--warning-bg);
  border-left-color: var(--warning-text);
}

.solution {
  background: var(--success-bg);
  border-left-color: var(--success-text);
}

.problem strong, .solution strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.pro-tip {
  background: var(--primary-accent-light);
  padding: 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-left: 4px solid var(--primary-accent);
  word-wrap: break-word;
}

.pro-tip i {
  color: var(--primary-accent);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.pro-tip strong {
  font-size: 0.9rem;
}

/* ==================== */
/* TIPS SECTION - FIXED NUMBER OVERLAP */
/* ==================== */

.tips-section {
  padding: 4rem 1rem;
  background: var(--bg-page);
}

.tips-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr);
  gap: 2.5rem; /* Increased gap to accommodate numbers */
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
  }
}

.tip-card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 2.5rem 1.5rem 1.5rem; /* Increased top padding for number space */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  overflow: visible; /* Changed from hidden to visible */
  margin-top: 1.5rem; /* Added space above for the number */
}

.tip-number {
  position: absolute;
  top: -1.25rem;
  left: 1.5rem;
  background: var(--primary-accent);
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.tip-card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  padding-top: 0.5rem;
  line-height: 1.3;
}

.tip-card p {
  color: var(--text-medium);
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 100%;
  word-break: break-word;
}

.tip-card * {
  max-width: 100%;
}

/* Mobile specific fixes for tip cards */
@media (max-width: 767px) {
  .tips-grid {
    gap: 2rem;
  }
  
  .tip-card {
    padding: 2.25rem 1.25rem 1.25rem;
    margin-top: 1.25rem;
  }
  
  .tip-number {
    left: 1.25rem;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
    top: -1rem;
  }
  
  .tip-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.875rem;
  }
  
  .tip-card p {
    font-size: 0.9rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .tip-card {
    padding: 2rem 1rem 1rem;
    margin-top: 1rem;
  }
  
  .tip-number {
    left: 1rem;
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
    top: -0.75rem;
  }
}

/* Advantages Section */
.advantages-section {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, var(--bg-hero-start) 0%, var(--bg-hero-end) 100%);
}

.advantages-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .advantages-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.advantage-card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  overflow: hidden;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.advantage-icon i {
  font-size: 2rem;
  color: var(--primary-accent);
}

.advantage-card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.advantage-card p {
  color: var(--text-medium);
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 100%;
  word-break: break-word;
}

.advantage-card * {
  max-width: 100%;
}

/* Technical Section */
.technical-section {
  padding: 4rem 1rem;
  background: var(--bg-page);
}

.technical-content {
  display: grid;
  grid-template-columns: minmax(280px, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .technical-content {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
}

.technical-card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  overflow: hidden;
}

.technical-card h3 {
  color: var(--primary-accent);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.technical-card p {
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  max-width: 100%;
  word-break: break-word;
}

.technical-card p:last-child {
  margin-bottom: 0;
}

.technical-card * {
  max-width: 100%;
}

/* Section title enhancements */
.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-medium);
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Content Section */
.content-section {
  padding: 3rem 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-item {
  background: var(--bg-card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.faq-item h3 {
  color: var(--primary-accent);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.faq-item p {
  color: var(--text-medium);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* How-To Section */
.how-to-section {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, var(--bg-hero-start) 0%, var(--bg-hero-end) 100%);
}

.how-to-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .how-to-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .how-to-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-to-card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.how-to-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.how-to-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.how-to-icon i {
  font-size: 1.5rem;
  color: var(--primary-accent);
}

.how-to-card h3 {
  color: var(--text-dark);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.how-to-card p {
  color: var(--text-medium);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Empty state for saved pets */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.9rem;
}

/* Breed Selection Styles */
.breed-info-tooltip {
  background: var(--success-bg);
  border: 1px solid var(--success-text);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--success-text);
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: fadeIn 0.3s ease;
}

.breed-info-tooltip strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

/* Custom breed input animations */
.custom-breed-input {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Better select styling */
.input-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 12px;
  padding-right: 2.5rem;
}

/* Optgroup styling */
optgroup {
  font-weight: 600;
  color: var(--text-dark);
}

optgroup option {
  font-weight: normal;
  color: var(--text-medium);
  padding-left: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .input-row {
    grid-template-columns: 1fr;
  }
  
  .main-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .main-tab {
    min-width: auto;
    width: 100%;
    max-width: 280px;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .results-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .saved-pet-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .saved-pet-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .simple-chart {
    height: 180px;
    padding: 0.75rem;
  }

  .bar-container {
    height: 120px;
    width: 30px;
  }
  
  /* Better mobile text sizing */
  .overview-card,
  .use-case-card,
  .advantage-card,
  .technical-card,
  .content-card {
    padding: 1.25rem;
  }
  
  .overview-card h3,
  .use-case-card h3,
  .advantage-card h3,
  .technical-card h3,
  .content-card h3 {
    font-size: 1.1rem;
  }
  
  .overview-card p,
  .use-case-card p,
  .advantage-card p,
  .technical-card p,
  .content-card p {
    font-size: 0.9rem;
  }
  
  /* Fix problem-solution on mobile */
  .problem, .solution {
    padding: 0.875rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .main-tab {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
  
  .main-tab i {
    font-size: 1rem;
  }
  
  .age-display {
    font-size: 1.75rem;
  }
  
  .life-stage, .lifespan {
    font-size: 1.25rem;
  }

  .chart-legend {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  
  .main-tabs {
    gap: 0.5rem;
  }
  
  .main-tab {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    min-width: 110px;
  }
  
  .input-row {
    gap: 0.75rem;
  }
  
  .results-grid {
    gap: 1rem;
  }
  
  .result-card {
    padding: 1.25rem;
  }
}

/* Footer */
.footer {
  background-color: var(--bg-card);
  padding: 2rem 1rem;
  margin-top: 4rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
}

.footer-links a {
  color: var(--text-medium);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-accent);
}

.disclaimer {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}