/* Blog Styles - Custom overrides for blog UI */

/* Callout/CTA Section - Updated to match blog UI library */
.callout {
  margin: 64px 0;
}

.callout .shell {
  max-width: 1000px; /* Increased from 800px */
  margin: 0 auto;
  padding: 0 20px;
}

.callout__inner {
  background: linear-gradient(135deg, #48b0f7 0%, #3a8fc8 100%);
  color: #FFFFFF;
  padding: 60px 60px; /* More spacious padding */
  border-radius: 12px;
  text-align: center;
}

.callout .callout__title {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 34px;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.callout .callout__fixed {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  line-height: 21px;
  margin-bottom: 32px;
  color: #FFFFFF;
  opacity: 0.95;
}

.callout .btn--light {
  display: inline-block;
  background: #FCB60C;
  color: #FFFFFF;
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 19px;
  padding: 16px 40px;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(252, 182, 12, 0.3);
}

.callout .btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(252, 182, 12, 0.4);
  background: #FFA500;
}

@media (max-width: 768px) {
  .callout {
    margin: 48px 0;
  }
  
  .callout__inner {
    padding: 32px 24px;
    margin: 0 -20px;
    border-radius: 0;
  }
}

/* Future blog components will be added here */

/* Related Posts Section - Override existing styles */
.section--posts,
.section--related {
  padding: 60px 0 !important;
  margin-top: 0 !important;
  background: #F8F9FA;
}

/* Remove any extra padding from containers */
.section--posts .shell,
.section--related .shell {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.section--posts .section__head,
.section--related .section__head {
  margin-bottom: 48px;
  padding: 0 !important;
}

/* Article cards */
.articles .article {
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.articles .article:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Category badges */
.article__image .article__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #FE8B7B;
  color: #FFFFFF;
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 13px;
  padding: 6px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Different colors for different categories */
.article__tag:contains("Traffic School") {
  background: #48B0F7;
}

.article__tag:contains("Driving Laws") {
  background: #FCB60C;
}

/* Related Posts Section */
.section-related {
  padding: 60px 0 !important;
  background: #E8E8E8;
}

.section-related.padtop-100 {
  padding-top: 60px !important;
}

.section-related.padbottom-100 {
  padding-bottom: 60px !important;
}

.read-more-articles {
  text-align: center;
  margin-bottom: 32px;
  margin-top: 0;
}

.read-more-articles h3 {
  font-family: 'Work Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 32px !important;
  line-height: 38px !important;
  color: #282828 !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

/* Just style the existing layout without breaking it */
.articles-related {
  list-style: none;
  padding: 0;
}

.article-simple .article__category {
  font-family: 'Work Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  line-height: 13px !important;
  padding: 6px 12px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #FFFFFF !important;
}

@media (max-width: 768px) {
  .section-related {
    padding: 40px 0 !important;
  }
  
  .read-more-articles h3 {
    font-size: 24px !important;
  }
}

.related-posts-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.related-posts-title {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 38px;
  text-align: center;
  margin-bottom: 48px;
  color: #282828;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.related-post-card {
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.related-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.related-post-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #E8E8E8 0%, #D0D0D0 100%);
  position: relative;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #FE8B7B;
  color: #FFFFFF;
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 13px;
  padding: 6px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.related-post-content {
  padding: 24px;
}

.related-post-title {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: #282828;
  margin-bottom: 8px;
}

.related-post-date {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 18px;
  color: #707070;
}

@media (max-width: 768px) {
  .related-posts {
    margin-top: 60px;
    padding: 40px 0;
  }
  
  .related-posts-title {
    font-size: 24px;
    margin-bottom: 32px;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

