/* Denver Paws - Pet Care Website CSS */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%); /* Greenish gradient */
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  text-decoration: none;
  color: white;
}

.logo:hover {
  color: #ecf0f1;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: rgba(255,255,255,0.2);
}

/* Carousel */
.carousel {
  background: #689F38; /* Darker green */
  padding: 1rem 0;
  overflow: hidden;
}

.carousel-content {
  display: flex;
  animation: scroll 30s linear infinite;
  gap: 2rem;
}

.carousel-item {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  white-space: nowrap;
  transition: background-color 0.3s;
}

.carousel-item:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

@keyframes scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Main Grid Layout */
.main-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0,3fr) minmax(0,1fr);
  gap: 2rem;
  align-items: start;
}

.main-grid > article { grid-column: 1; grid-row: 1; }
.main-grid > #__sidebar { grid-column: 2; grid-row: 1; }

/* Desktop placement */
.main-grid{
  display:grid;
  grid-template-columns: minmax(0,3fr) minmax(0,1fr);
  gap:2rem;
  align-items:start;
}
.main-grid > article { grid-column: 1; min-width: 0; }
.main-grid > #__sidebar { grid-column: 2; }

/* MOBILE FIX: stack normally and disable sticky */
@media (max-width: 768px){
  .main-grid{
    grid-template-columns: 1fr;                 /* one column */
  }
  .main-grid > article,
  .main-grid > #__sidebar{
    grid-column: auto;                           /* reset forced columns */
    grid-row: auto;                              /* reset in case it was set */
  }
  #__sidebar{
    position: static;                            /* turn off sticky on mobile */
    width: auto;                                 /* ensure full width */
    box-shadow: none;                            /* optional: lighter look */
  }
}


/* Cards */
.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.card .pad {
  padding: 2rem;
}

/* Article Styles */
.article h1 {
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article h2 {
  color: #4CAF50;
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
  border-bottom: 2px solid #8BC34A;
  padding-bottom: 0.5rem;
}

.article h3 {
  color: #333;
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem 0;
}

.article p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.article .en {
  margin-bottom: 0.5rem;
}

/* Meta Information */
.meta {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ecf0f1;
}

/* Table of Contents */
.toc {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.toc strong {
  color: #333;
  font-size: 1.2rem;
}

.toc ol {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.toc a {
  color: #4CAF50;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.table th {
  background: #4CAF50;
  color: white;
  font-weight: 600;
}

.table tr:hover {
  background: #f8f9fa;
}

/* Lists */
ul, ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Links */
a {
  color: #4CAF50;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Breadcrumb */
.breadcrumb {
  background: #ecf0f1;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #4CAF50;
}

/* Sidebar */
.sidebar {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 2rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.sidebar h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 0.8rem;
}

.sidebar a {
  color: #689F38;
  text-decoration: none;
  padding: 0.5rem;
  display: block;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.sidebar a:hover {
  background: #f8f9fa;
  color: #4CAF50;
}

/* Related Articles */
.list-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.list-2 a {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  border: 1px solid #dee2e6;
  transition: all 0.3s;
}

.list-2 a:hover {
  background: #4CAF50;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* Footer */
footer {
  background: #4CAF50;
  color: white;
  padding: 3rem 0 1rem 0;
  margin-top: 4rem;
}

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

.footer-section h4 {
  color: #FFC107;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section a {
  color: #DCEDC8;
  text-decoration: none;
  line-height: 2;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #8BC34A;
  color: #DCEDC8;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.btn {
  background: #4CAF50;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn:hover {
  background: #388E3C;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    justify-content: center;
  }
  
  .article h1 {
    font-size: 2rem;
  }
  
  .carousel-content {
    animation-duration: 20s;
  }
  
  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .article h1 {
    font-size: 1.8rem;
  }
  
  .article h2 {
    font-size: 1.5rem;
  }
  
  .card .pad {
    padding: 1.5rem;
  }
  
  nav ul {
    gap: 1rem;
  }
  
}

