/* ========================================
   Dog History Page Styles
   ======================================== */

.history-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2em;
}

/* Hero Section */
.history-hero {
  text-align: center;
  padding: 3em 2em;
  background: linear-gradient(135deg, #0078d4 0%, #00a8e8 100%);
  color: white;
  border-radius: 12px;
  margin-bottom: 3em;
}

.history-hero h1 {
  font-size: 3em;
  margin: 0 0 0.5em 0;
}

.hero-subtitle {
  font-size: 1.3em;
  margin: 0 0 2em 0;
  opacity: 0.95;
}

.hero-image-placeholder {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 4em 2em;
  margin: 0 auto;
  max-width: 800px;
}

/* Timeline Section */
.timeline-section {
  margin: 4em 0;
  padding: 3em 0;
}

.timeline-section h2 {
  text-align: center;
  color: #0078d4;
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

.timeline-container {
  position: relative;
  max-width: 1400px;
  margin: 2em auto;
  padding: 2em 0;
  overflow-x: auto;
  overflow-y: visible;
}

.timeline-line {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0078d4 0%, #00a8e8 100%);
  z-index: 1;
}

.timeline-item {
  display: inline-block;
  width: 13%;
  min-width: 100px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
  vertical-align: top;
}

.timeline-item:hover {
  transform: translateY(-5px);
}

.timeline-marker {
  width: 20px;
  height: 20px;
  background: #0078d4;
  border: 3px solid white;
  border-radius: 50%;
  margin: 0 auto 0.8em auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s;
}

.timeline-item:hover .timeline-marker {
  background: #005a9e;
  transform: scale(1.2);
}

.timeline-content {
  padding: 0 0.3em;
}

.timeline-year {
  font-weight: bold;
  color: #0078d4;
  font-size: 0.85em;
  margin-bottom: 0.3em;
}

.timeline-title {
  font-size: 0.75em;
  color: #333;
  line-height: 1.2;
}

/* History Sections */
.history-section {
  background: white;
  border-radius: 12px;
  padding: 3em 2em;
  margin-bottom: 3em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  scroll-margin-top: 2em;
}

.history-section h2 {
  color: #0078d4;
  font-size: 2.5em;
  margin: 0 0 1em 0;
  padding-bottom: 0.5em;
  border-bottom: 3px solid #e0e0e0;
}

.section-content {
  max-width: 900px;
  margin: 0 auto;
}

.text-block {
  margin-bottom: 2.5em;
}

.text-block h3 {
  color: #333;
  font-size: 1.8em;
  margin: 0 0 0.8em 0;
}

.text-block h4 {
  color: #0078d4;
  font-size: 1.3em;
  margin: 1.5em 0 0.5em 0;
}

.text-block p {
  line-height: 1.8;
  margin-bottom: 1em;
  color: #333;
  font-size: 1.05em;
}

/* Theory Boxes */
.theory-box {
  background: #f8f9fa;
  border-left: 4px solid #0078d4;
  padding: 1.5em;
  margin: 1.5em 0;
  border-radius: 6px;
}

.theory-box h4 {
  margin-top: 0;
  color: #0078d4;
}

.theory-box p {
  margin-bottom: 0;
}

/* Feature Lists */
.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  padding: 0.8em 0 0.8em 2em;
  position: relative;
  line-height: 1.6;
  border-bottom: 1px solid #e0e0e0;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #0078d4;
  font-weight: bold;
  font-size: 1.2em;
}

.feature-list li strong {
  color: #0078d4;
}

/* Image Placeholders */
.image-placeholder {
  margin: 2em 0;
  text-align: center;
}

.image-placeholder img {
  max-width: 100%;
  max-height: 400px;
  height: auto;
  width: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  object-fit: contain;
}

/* Hero image specific sizing */
.hero-image-placeholder img {
  max-height: 300px;
  width: 100%;
  object-fit: cover;
}

/* Conclusion Section */
.history-conclusion {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 12px;
  padding: 3em 2em;
  margin-bottom: 3em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.history-conclusion h2 {
  color: #0078d4;
  font-size: 2.5em;
  text-align: center;
  margin: 0 0 1em 0;
}

.history-conclusion p {
  line-height: 1.8;
  color: #333;
  font-size: 1.1em;
  margin-bottom: 1.5em;
}

.history-quote {
  background: white;
  border-left: 5px solid #0078d4;
  padding: 1.5em 2em;
  margin: 2em 0 0 0;
  font-size: 1.2em;
  font-style: italic;
  color: #555;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .history-hero h1 {
    font-size: 2em;
  }
  
  .hero-subtitle {
    font-size: 1.1em;
  }
  
  .timeline-container {
    overflow-x: scroll;
    padding-bottom: 1em;
  }
  
  .timeline-item {
    width: 120px;
    min-width: 120px;
  }
  
  .history-section {
    padding: 2em 1em;
  }
  
  .history-section h2 {
    font-size: 1.8em;
  }
  
  .text-block h3 {
    font-size: 1.5em;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Timeline Mobile Scroll Hint */
@media (max-width: 768px) {
  .timeline-container::after {
    content: "← Scroll →";
    display: block;
    text-align: center;
    color: #999;
    font-size: 0.9em;
    margin-top: 1em;
  }
}
