/* ===== BLOG PAGE STYLES ===== */

/* Hero Section */
.blog-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  background: linear-gradient(111deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 100%, rgba(237, 221, 83, 1) 100%);
  overflow: hidden;
  padding: 120px 0 80px;
}

.wave-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,160L48,144C96,128,192,96,288,106.7C384,117,480,171,576,165.3C672,160,768,96,864,96C960,96,1056,160,1152,165.3C1248,171,1344,117,1392,90.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
  animation: wave-animation 15s ease-in-out infinite;
}

@keyframes wave-animation {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-50px); }
}

.blog-hero .container {
  position: relative;
  z-index: 2;
}

.blog-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.blog-hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* Blog Search */
.blog-search {
  position: relative;
  max-width: 500px;
}

.blog-search i {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--primary-color);
}

.blog-search input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.5rem;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.blog-search input:focus {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Hero Illustration */
.hero-illustration {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-element {
  position: absolute;
  font-size: 4rem;
  animation: float-elements 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.2));
}

.el-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.el-2 {
  top: 20%;
  right: 15%;
  animation-delay: 0.5s;
}

.el-3 {
  bottom: 25%;
  left: 20%;
  animation-delay: 1s;
}

.el-4 {
  bottom: 15%;
  right: 10%;
  animation-delay: 1.5s;
}

@keyframes float-elements {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(10deg); }
}

/* Category Section */
.category-section {
  padding: 3rem 0;
  background: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.category-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-slider::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex-shrink: 0;
  padding: 0.8rem 1.8rem;
  background: linear-gradient(135deg, rgba(34, 193, 195, 0.08), rgba(253, 187, 45, 0.08));
  border: 2px solid rgba(34, 193, 195, 0.2);
  border-radius: 50px;
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-pill span {
  font-size: 1.3rem;
}

.category-pill:hover {
  background: linear-gradient(135deg, rgba(34, 193, 195, 0.15), rgba(253, 187, 45, 0.15));
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.category-pill.active {
  background: linear-gradient(111deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 100%, rgba(237, 221, 83, 1) 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(34, 193, 195, 0.4);
}

/* Featured Section */
.featured-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, white, #f7fafc);
}

.featured-badge {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.featured-post {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.featured-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.featured-image {
  position: relative;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-post:hover .featured-image img {
  transform: scale(1.1);
}

.featured-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

.featured-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.featured-category {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.featured-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.featured-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.featured-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-info strong {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}

.author-info span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.read-featured-btn {
  padding: 0.8rem 2rem;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.read-featured-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  color: white;
}

/* Blog Grid Section */
.blog-grid-section {
  padding: 80px 0;
  background: #f7fafc;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

/* Blog Post Card */
.blog-post-card {
  background: white;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.blog-post-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.post-image-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.post-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-post-card:hover .post-image-wrapper img {
  transform: scale(1.15) rotate(2deg);
}

.post-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1.2rem;
  background: white;
  color: var(--text-dark);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.cat-wellness { color: #667eea; }
.cat-nutrition { color: #28c76f; }
.cat-health { color: #ff6b6b; }
.cat-mental { color: #4facfe; }
.cat-lifestyle { color: #fa709a; }

.post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(102, 126, 234, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.blog-post-card:hover .post-overlay {
  opacity: 1;
}

.quick-read-btn {
  padding: 0.8rem 2rem;
  background: white;
  color: var(--primary-color);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.blog-post-card:hover .quick-read-btn {
  transform: translateY(0);
}

.post-content {
  padding: 2rem;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-content h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--text-dark);
}

.post-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.post-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.post-author span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.post-arrow {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.post-arrow:hover {
  transform: scale(1.15) rotate(45deg);
  color: white;
}

/* Load More Button */
.load-more-btn {
  padding: 1rem 3rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 auto;
}

.load-more-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.load-more-btn i {
  transition: transform 0.3s ease;
}

.load-more-btn:hover i {
  transform: translateY(5px);
}

/* Newsletter Section */
.newsletter-section {
  padding: 100px 0;
  background: white;
}

.newsletter-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 3rem;
  background: linear-gradient(111deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 100%, rgba(237, 221, 83, 1) 100%);
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(34, 193, 195, 0.4);
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 50%);
  animation: pulse-newsletter 8s ease-in-out infinite;
}

@keyframes pulse-newsletter {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.newsletter-card > * {
  position: relative;
  z-index: 1;
}

.newsletter-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.newsletter-card h2 {
  color: white;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.newsletter-card p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: 2px solid transparent;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
  border-color: #22C1C3;
}

.newsletter-form button {
  padding: 1rem 2.5rem;
  background: var(--text-dark);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.newsletter-note {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin: 0;
}

/* Filter Animation */
.blog-post-card.hide {
  display: none;
}

/* Responsive */
@media (max-width: 991.98px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .featured-image {
    min-height: 300px;
  }
  
  .featured-content {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    min-height: 60vh;
    padding: 100px 0 60px;
  }
  
  .blog-hero-title {
    font-size: 2rem;
  }
  
  .hero-illustration {
    height: 250px;
  }
  
  .floating-element {
    font-size: 2.5rem;
  }
  
  .category-slider {
    justify-content: flex-start;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-card {
    padding: 3rem 2rem;
  }
  
  .newsletter-card h2 {
    font-size: 2rem;
  }
}

/* ========== FOOTER SECTION ========== */
.footer-section {
  background: #1a202c;
  color: white;
  padding: 60px 0 30px;
}

.footer-brand h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: #22C1C3;
  color: white;
  transform: translateY(-3px);
}

.footer-contact h6,
.footer-links h6 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.footer-contact i {
  color: #22C1C3;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-link:hover {
  color: white;
  padding-left: 5px;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.footer-bottom {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  padding-top: 1rem;
  text-align: center;
}

.animate-fadeup {
  animation: fadeUp 0.6s ease-out;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
