/* Blog Index Page - Optimized CSS */
:root {
  --primary-color: #e61c72;
  --secondary-color: #b51358;
  --gradient: linear-gradient(135deg, #e61c72, #ff4d94);
  --text-color: #333;
  --light-text: #666;
  --lighter-text: #999;
  --background: #f8f9fa;
  --card-bg: #ffffff;
  --border-radius: 16px;
  --box-shadow: 0 10px 30px rgba(230, 28, 114, 0.08);
  --hover-shadow: 0 15px 35px rgba(230, 28, 114, 0.2);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section - Styled like Contact */
.blog-hero {
  background: linear-gradient(135deg, #e61c72 0%, #ff4d94 100%);
  padding: 3rem 0 3rem;
  margin-top: 0;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 80px;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="4"/></g></svg>') repeat;
  pointer-events: none;
}

.blog-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.2s;
}

.blog-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero p {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 700px;
  opacity: 0.9;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 35px;
  margin-bottom: 80px;
}

.blog-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  opacity: 0;
  animation: fadeInUp 0.6s forwards;
  animation-delay: calc(var(--card-index, 0) * 0.1s);
}

.blog-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(230, 28, 114, 0.15);
}

.blog-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-category {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--gradient);
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  display: flex;
  align-items: center;
  color: var(--lighter-text);
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.blog-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
  color: var(--primary-color);
}

.blog-excerpt {
  color: var(--light-text);
  margin-bottom: 25px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.blog-footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.read-more:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* SVG Icons */
.svg-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  vertical-align: middle;
}

.svg-icon.calendar {
  margin-right: 8px;
  color: var(--primary-color);
}

.svg-icon.arrow-right {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.read-more:hover .svg-icon.arrow-right {
  transform: translateX(5px);
}

.svg-icon.white {
  color: white;
}

.svg-icon.gold {
  color: #FFD700;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin: 60px 0;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border: none;
  font-size: 1.1rem;
}

.pagination a:hover {
  background: var(--gradient);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(230, 28, 114, 0.25);
}

.pagination .active {
  background: var(--gradient);
  color: white;
  box-shadow: 0 10px 25px rgba(230, 28, 114, 0.25);
}

/* CTA Section */
.cta-section {
  position: relative;
  margin-bottom: 100px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  z-index: 1;
  overflow: hidden;
}

.cta-background::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
  animation: rotate 30s infinite linear;
}

.cta-content {
  position: relative;
  z-index: 2;
  padding: 80px 40px;
  text-align: center;
  color: white;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 30px;
  backdrop-filter: blur(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-badge .svg-icon {
  margin-right: 8px;
}

.cta-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 30px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  display: inline-block;
}

.cta-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: white;
  border-radius: 2px;
}

.cta-description {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.7;
  opacity: 0.9;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  padding: 12px 25px;
  border-radius: 50px;
  backdrop-filter: blur(5px);
  font-weight: 500;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-btn .svg-icon {
  margin-right: 12px;
}

.cta-btn-primary {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cta-btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.cta-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  text-decoration: none;
}

.cta-clients {
  margin-top: 50px;
  text-align: center;
}

.cta-clients-title {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 20px;
  letter-spacing: 1px;
  font-weight: 600;
}

.cta-clients-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-client {
  opacity: 0.9;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: 500;
}

.cta-client:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.cta-client-stars {
  text-decoration: none;
  color: white;
  display: inline-flex;
  align-items: center;
}

.stars {
  display: flex;
  margin-right: 5px;
}

.cta-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  .cta-title {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .blog-hero h1 {
    font-size: 2.8rem;
  }
  .blog-hero p {
    font-size: 1.1rem;
  }
  .cta-title {
    font-size: 2.5rem;
  }
  .cta-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 3rem 0 2rem;
  }
  .blog-hero h1 {
    font-size: 2rem;
  }
  .blog-hero p {
    font-size: 1rem;
  }
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
  }
  .cta-content {
    padding: 60px 20px;
  }
  .cta-title {
    font-size: 2rem;
  }
  .cta-description {
    font-size: 1rem;
  }
  .cta-feature {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .cta-btn {
    width: 100%;
    padding: 15px 20px;
  }
  .cta-clients-logos {
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .blog-hero {
    padding: 60px 0 40px;
  }
  .blog-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.875rem;
  }
  .blog-hero h1 {
    font-size: 1.75rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .pagination a,
  .pagination span {
    width: 40px;
    height: 40px;
  }
  .cta-title {
    font-size: 1.8rem;
  }
  .cta-features {
    flex-direction: column;
    gap: 15px;
  }
}

/* Optimizations for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
