/* ========================================
   GUIDES PAGE STYLES
   Matches homepage design system
   ======================================== */

.guides-main {
  min-height: calc(100vh - 200px);
  background: linear-gradient(180deg, #FFF8F5 0%, #fff 100%);
  padding: 3rem 0 4rem;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.guides-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 1rem;
}

.guides-header h1 {
  font-size: 3rem;
  color: #222;
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.guides-header .lead {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================
   GUIDES GRID
   ======================================== */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Guide Card */
.guide-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
}

.guide-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: #E8836B;
}

.guide-image {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: #f0f0f0;
}

.guide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.guide-card:hover .guide-image img {
  transform: scale(1.05);
}

.guide-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.guide-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #E8836B;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.guide-content h3 {
  font-size: 1.3rem;
  color: #222;
  margin-bottom: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

.guide-content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.guide-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.read-time {
  font-size: 0.85rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-link {
  color: #E8836B;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.btn-link:hover {
  color: #F4A896;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
  .guides-header h1 {
    font-size: 2.2rem;
  }

  .guides-header .lead {
    font-size: 1rem;
  }

  .guides-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   FEATURED GUIDE CARD
   ======================================== */
.guide-card.featured {
  border: 2px solid #E8836B;
  background: linear-gradient(135deg, #FFF8F5 0%, #fff 100%);
}

.guide-card.featured .guide-category {
  background: #E8836B;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

/* ========================================
   GUIDE ARTICLE PAGE STYLES
   ======================================== */
.guide-article {
  min-height: calc(100vh - 200px);
  background: linear-gradient(180deg, #FFF8F5 0%, #fff 100%);
  padding: 2rem 0 4rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: #E8836B;
  text-decoration: none;
}

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

/* Article Header */
.article-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem;
}

.article-header h1 {
  font-size: 2.5rem;
  color: #222;
  margin: 0.5rem 0 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: #888;
  font-size: 0.9rem;
}

/* Featured Image */
.article-hero {
  max-width: 800px;
  margin: 0 auto 3rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.article-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Content */
.article-content {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.article-section {
  margin-bottom: 2.5rem;
}

.article-section h2 {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.article-section p {
  margin-bottom: 1rem;
}

.article-takeaway {
  background: #FFF8F5;
  border-left: 4px solid #E8836B;
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
}

/* Article CTA */
.article-cta {
  max-width: 700px;
  margin: 3rem auto;
  text-align: center;
  background: linear-gradient(135deg, #E8836B 0%, #F4A896 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
}

.article-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-cta p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.article-cta .btn.primary {
  background: white;
  color: #E8836B;
}

.article-cta .btn.primary:hover {
  background: #f0f0f0;
}

/* Related Guides */
.related-guides {
  max-width: 700px;
  margin: 3rem auto;
}

.related-guides h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: #222;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.related-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #eee;
  text-decoration: none;
  transition: all 0.2s ease;
}

.related-card:hover {
  border-color: #B23A28;
  transform: translateY(-2px);
}

.related-category {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #B23A28;
  margin-bottom: 0.5rem;
}

.related-title {
  display: block;
  font-size: 0.95rem;
  color: #222;
  font-weight: 600;
}

/* Responsive Article */
@media (max-width: 768px) {
  .article-header h1 {
    font-size: 1.8rem;
  }

  .article-content {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .article-cta {
    margin: 2rem 1rem;
    padding: 2rem 1.5rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-guides {
    padding: 0 1rem;
  }
}
