/* =====================================================
   SCS Digital Marketing – blogs.css
   Custom CSS for Blogs Grid Page
   ===================================================== */

:root {
  --primary-pink: #ff2b38;
  --primary-hover: #cc0000;
  --primary-light: #fff0f1;
}

.blogs-section {
  padding: calc(var(--nav-h) + 20px) 0 45px;
  background-color: #ffffff;
}

.blogs-header {
  text-align: center;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.blogs-title {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.blogs-translate-btn {
  appearance: none;
  border: 1px solid rgba(255, 43, 56, 0.25);
  background: linear-gradient(180deg, #fff, #fff7f7);
  color: var(--primary-pink);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 43, 56, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blogs-translate-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 43, 56, 0.4);
  box-shadow: 0 10px 24px rgba(255, 43, 56, 0.12);
}

.blogs-translate-btn:focus-visible {
  outline: 2px solid rgba(255, 43, 56, 0.45);
  outline-offset: 2px;
}

/* 3-Column Grid */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Card layout */
.blog-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  padding: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.04);
}

/* Card image container */
.blog-card-img {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background-color: #f1f5f9;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-title {
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.45;
  margin-top: 12px;
  text-align: left;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--primary-pink);
}

/* Red CTA Card */
.blogs-cta-section {
  padding: 20px 0 40px;
}

.blogs-cta-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.blogs-cta-box {
  background: #ff2b38;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(255, 43, 56, 0.15);
}

.blogs-cta-box h2 {
  font-family: var(--font-main);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.blogs-cta-box h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.blogs-cta-box p {
  font-family: var(--font-main);
  max-width: 600px;
  margin: 0 auto 24px;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.95;
}

.blogs-cta-btn {
  display: inline-block;
  background-color: #ffffff;
  color: #ff2b38;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: .3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.blogs-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Responsiveness */
@media (max-width: 992px) {
  .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blogs-header {
    gap: 10px;
  }

  .blogs-grid {
    grid-template-columns: 1fr;
  }
  .blog-card-img {
    height: 180px;
  }
  .blogs-cta-box {
    padding: 40px 20px;
  }
}

/* =====================================================
   Blog Post Article Page Styles
   ===================================================== */
.article-section {
  padding: calc(var(--nav-h) + 30px) 0 60px;
  background-color: #ffffff;
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.back-to-blogs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-pink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.back-to-blogs:hover {
  color: var(--primary-hover);
}

.article-language-toggle {
  appearance: none;
  border: 1px solid rgba(255, 43, 56, 0.25);
  background: linear-gradient(180deg, #fff, #fff7f7);
  color: var(--primary-pink);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 43, 56, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  margin-left: 12px;
}

.article-language-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 43, 56, 0.4);
  box-shadow: 0 10px 24px rgba(255, 43, 56, 0.12);
}

.article-language-toggle:focus-visible {
  outline: 2px solid rgba(255, 43, 56, 0.45);
  outline-offset: 2px;
}

.article-title {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  font-weight: 800;
  color: #cc0000;
  line-height: 1.25;
  margin-bottom: 24px;
  text-align: left;
}

.article-hero-img {
  width: 100%;
  height: 380px;
  border-radius: 16px;
  margin-bottom: 35px;
  overflow: hidden;
  position: relative;
  background-color: #f1f5f9;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 16px;
  transition: transform 0.6s ease;
}

.article-hero-img:hover img {
  transform: scale(1.03);
}

.article-content {
  font-family: var(--font-main);
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.75;
  text-align: left;
}

.article-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #cc0000;
  margin-top: 36px;
  margin-bottom: 14px;
  line-height: 1.3;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul {
  margin-bottom: 24px;
  padding-left: 20px;
  list-style-type: disc;
}

.article-content li {
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .article-hero-img {
    height: 200px;
  }

  .article-language-toggle {
    margin-left: 0;
    margin-top: 10px;
  }
}

