/* ========================================
   Dog Communication Guide Styles
   ======================================== */

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

/* Back Button */
.back-button {
  display: inline-block;
  margin-bottom: 2em;
  padding: 0.75em 1.5em;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 3em;
}

.hero-section h1 {
  font-size: 3.5em;
  color: #2c3e50;
  margin-bottom: 0.3em;
}

.hero-subtitle {
  font-size: 1.4em;
  color: #666;
  margin-bottom: 2em;
}

.hero-image-container {
  margin: 2em 0;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.image-caption {
  margin-top: 0.8em;
  font-style: italic;
  color: #666;
  font-size: 0.95em;
}

/* Introduction Section */
.intro-section {
  margin-bottom: 3em;
}

.intro-content {
  background: white;
  padding: 2.5em;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-left: 5px solid #3498db;
}

.intro-content h2 {
  color: #3498db;
  margin-top: 0;
  font-size: 2.2em;
}

.intro-content p {
  line-height: 1.8;
  margin-bottom: 1.2em;
  color: #333;
  font-size: 1.05em;
}

.key-fact {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  padding: 1.5em;
  border-radius: 8px;
  border-left: 4px solid #ffa000;
  margin-top: 1.5em;
  display: flex;
  align-items: start;
  gap: 1em;
}

.fact-icon {
  font-size: 2em;
  flex-shrink: 0;
}

.key-fact p {
  margin: 0;
  line-height: 1.6;
}

/* Section Titles */
.section-title {
  font-size: 2.5em;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 3px solid #e0e0e0;
}

.section-intro {
  text-align: center;
  font-size: 1.2em;
  color: #666;
  margin-bottom: 2.5em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Signal Cards */
.signal-card {
  background: white;
  border-radius: 12px;
  padding: 2.5em;
  margin-bottom: 3em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-left: 5px solid #9b59b6;
}

.signal-header h3 {
  color: #9b59b6;
  font-size: 2em;
  margin: 0 0 1.5em 0;
}

.image-text-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2em;
  margin-bottom: 1.5em;
}

.signal-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.signal-details {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.signal-item h4 {
  color: #9b59b6;
  margin: 0 0 0.5em 0;
  font-size: 1.3em;
}

.signal-item p {
  margin: 0.3em 0;
  line-height: 1.6;
  color: #555;
}

.signal-item strong {
  color: #2c3e50;
}

.important-note,
.breed-note {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  padding: 1.2em;
  border-radius: 8px;
  border-left: 4px solid #27ae60;
  margin-top: 1.5em;
}

.breed-note {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-left-color: #2196f3;
}

/* Posture Grid */
.posture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

.posture-item {
  background: #f8f9fa;
  padding: 1.5em;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

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

.posture-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1em;
}

.posture-item h4 {
  color: #9b59b6;
  margin: 1em 0;
  font-size: 1.3em;
}

.posture-item ul {
  text-align: left;
  padding-left: 1.5em;
}

.posture-item li {
  margin-bottom: 0.6em;
  line-height: 1.5;
  color: #555;
}

/* Expression Grid */
.expression-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

.expression-card {
  background: white;
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.expression-card:hover {
  transform: translateY(-5px);
}

.expression-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1em;
}

.expression-card h3 {
  color: #e91e63;
  margin: 1em 0;
  font-size: 1.4em;
}

.expression-card ul {
  text-align: left;
  padding-left: 1.5em;
}

.expression-card li {
  margin-bottom: 0.6em;
  line-height: 1.5;
  color: #555;
}

/* Calming Signals */
.calming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

.calming-card {
  background: white;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-left: 4px solid #00bcd4;
  transition: transform 0.3s;
}

.calming-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.calming-icon {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 0.5em;
}

.calming-card h3 {
  color: #00bcd4;
  text-align: center;
  margin: 0.5em 0 1em 0;
  font-size: 1.5em;
}

.calming-card p {
  line-height: 1.7;
  color: #555;
  margin-bottom: 1em;
}

.calming-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 1em;
}

.calming-note {
  background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
  padding: 2em;
  border-radius: 12px;
  margin-top: 2em;
  border-left: 5px solid #00bcd4;
}

.calming-note h4 {
  color: #00838f;
  margin-top: 0;
  font-size: 1.4em;
}

.calming-note p {
  line-height: 1.7;
  color: #333;
}

/* Vocalizations */
.vocal-card {
  background: white;
  padding: 2.5em;
  border-radius: 12px;
  margin-bottom: 2.5em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-left: 5px solid #ff9800;
}

.vocal-card h3 {
  color: #ff9800;
  font-size: 2em;
  margin: 0 0 1.5em 0;
}

.vocal-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2em;
}

.vocal-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.vocal-details {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.bark-type h4 {
  color: #ff9800;
  margin: 0 0 0.5em 0;
  font-size: 1.2em;
}

.bark-type p {
  margin: 0.3em 0;
  line-height: 1.6;
  color: #555;
}

.vocal-details > p {
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 0.5em;
}

.vocal-details ul {
  margin: 0.5em 0;
  padding-left: 2em;
}

.vocal-details li {
  margin-bottom: 0.8em;
  line-height: 1.6;
  color: #555;
}

.important-warning {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  padding: 1.2em;
  border-radius: 8px;
  border-left: 4px solid #e74c3c;
  margin-top: 1.5em;
}

.important-warning strong {
  color: #c0392b;
}

/* Dog-to-Dog Section */
.interaction-card {
  background: white;
  padding: 2.5em;
  border-radius: 12px;
  margin-bottom: 2.5em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-left: 5px solid #4caf50;
}

.interaction-card h3 {
  color: #4caf50;
  font-size: 2em;
  margin: 0 0 1.5em 0;
}

.interaction-content img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 1.5em;
}

.interaction-details h4 {
  color: #4caf50;
  margin: 1.5em 0 1em 0;
  font-size: 1.4em;
}

.interaction-details ol,
.interaction-details ul {
  padding-left: 2em;
}

.interaction-details li {
  margin-bottom: 0.8em;
  line-height: 1.7;
  color: #555;
}

.interaction-details strong {
  color: #2c3e50;
}

.warning-list {
  background: #fff3e0;
  padding: 1em 1em 1em 2.5em;
  border-radius: 8px;
  border-left: 4px solid #ff9800;
}

.warning-list li {
  color: #e65100;
}

.aggression-ladder {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
  padding: 1.5em 1.5em 1.5em 2.5em;
  border-radius: 8px;
  border-left: 4px solid #e91e63;
}

.aggression-ladder li {
  margin-bottom: 1em;
  font-size: 1.05em;
}

/* Human-Dog Communication */
.tip-card {
  background: white;
  padding: 2.5em;
  border-radius: 12px;
  margin-bottom: 2.5em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-left: 5px solid #673ab7;
}

.tip-card h3 {
  color: #673ab7;
  font-size: 2em;
  margin: 0 0 1.5em 0;
}

.tip-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2em;
}

.tip-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tip-details p {
  margin-bottom: 1em;
  line-height: 1.7;
  color: #333;
  font-weight: bold;
}

.tip-details ul {
  padding-left: 2em;
}

.tip-details li {
  margin-bottom: 0.8em;
  line-height: 1.7;
  color: #555;
}

.tip-details strong {
  color: #673ab7;
}

.consent-note {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  padding: 1.5em;
  border-radius: 8px;
  margin-top: 1.5em;
  border-left: 4px solid #9c27b0;
}

.consent-note h4 {
  color: #7b1fa2;
  margin-top: 0;
}

/* Myths Section */
.myth-card {
  background: white;
  padding: 2em;
  border-radius: 12px;
  margin-bottom: 1.5em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-left: 5px solid #f44336;
}

.myth-card h3 {
  color: #2c3e50;
  margin: 0 0 1em 0;
  font-size: 1.4em;
}

.myth-content {
  display: flex;
  align-items: start;
  gap: 1.5em;
}

.myth-false {
  background: #f44336;
  color: white;
  padding: 0.5em 1em;
  border-radius: 20px;
  font-weight: bold;
  flex-shrink: 0;
  font-size: 0.9em;
}

.myth-content p {
  line-height: 1.7;
  color: #555;
  margin: 0;
}

.myth-content strong {
  color: #2c3e50;
}

/* Practice Section */
.practice-card {
  background: white;
  padding: 2.5em;
  border-radius: 12px;
  margin-bottom: 2em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-left: 5px solid #00bcd4;
}

.practice-card h3 {
  color: #00bcd4;
  margin: 0 0 1em 0;
  font-size: 1.8em;
}

.practice-card p {
  line-height: 1.7;
  color: #333;
  margin-bottom: 1em;
}

.practice-card ul {
  padding-left: 2em;
}

.practice-card li {
  margin-bottom: 0.8em;
  line-height: 1.6;
  color: #555;
}

.improvement-checklist {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 1em;
}

.improvement-checklist label {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 1em;
  background: #f8f9fa;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.improvement-checklist label:hover {
  background: #e9ecef;
}

.improvement-checklist input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Resources Grid */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

.resource-card {
  background: white;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-left: 4px solid #9c27b0;
  transition: transform 0.3s;
}

.resource-card:hover {
  transform: translateY(-5px);
}

.resource-card h3 {
  color: #9c27b0;
  margin: 0 0 1em 0;
  font-size: 1.5em;
}

.resource-card ul {
  padding-left: 1.5em;
}

.resource-card li {
  margin-bottom: 0.8em;
  line-height: 1.6;
  color: #555;
}

/* Conclusion */
.conclusion-section {
  margin: 4em 0;
}

.conclusion-section h2 {
  text-align: center;
  color: #2c3e50;
  font-size: 2.5em;
  margin-bottom: 1.5em;
}

.conclusion-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3em;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.conclusion-content p {
  font-size: 1.15em;
  line-height: 1.8;
  margin-bottom: 1.5em;
}

.final-quote {
  background: rgba(255, 255, 255, 0.2);
  padding: 2em;
  border-radius: 8px;
  margin-top: 2em;
  font-size: 1.3em;
  font-style: italic;
  text-align: center;
  border-left: 5px solid rgba(255, 255, 255, 0.5);
}

.final-quote p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
  .image-text-grid,
  .vocal-content,
  .tip-content {
    grid-template-columns: 1fr;
  }

  .signal-image,
  .vocal-image,
  .tip-content img {
    max-width: 500px;
    margin: 0 auto 1.5em auto;
  }
}

@media (max-width: 768px) {
  .communication-container {
    padding: 1em;
  }

  .hero-section h1 {
    font-size: 2.5em;
  }

  .hero-subtitle {
    font-size: 1.2em;
  }

  .section-title {
    font-size: 2em;
  }

  .posture-grid,
  .expression-grid,
  .calming-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 2em;
  }

  .hero-subtitle {
    font-size: 1.1em;
  }

  .section-title {
    font-size: 1.6em;
  }

  .signal-card,
  .vocal-card,
  .interaction-card,
  .tip-card,
  .practice-card {
    padding: 1.5em;
  }
}
