/* ==========================================
   BLOG PAGE STYLES - PREMIUM MODERN v2.0
   ========================================== */

:root {
  /* Dynamic Design Tokens */
  --hub-gold: #D4AF37;
  --hub-purple: #6A1B9A;
  --hub-bg-light: #fefcf9;
  --text-dark: #1a1a1a;
  --text-light: #444444;
  
  /* Modern HSL Gradients */
  --grad-premium: linear-gradient(135deg, hsl(325, 100%, 65%), hsl(42, 100%, 65%));
  --grad-hero: linear-gradient(to bottom, rgba(10, 10, 10, 0.4), rgba(10, 10, 10, 0.75));
  --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  
  /* Shadow Elevation */
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-premium: 0 25px 60px rgba(106, 27, 154, 0.15);
}

body {
  background-color: var(--hub-bg-light);
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
}

/* ==========================================
   HERO SECTION (Premium Hub Style)
   ========================================== */
.page-header {
  padding: 240px 0 180px;
  background: var(--grad-hero), url("../assets/Images/Cropped-images/Blog.png");
  background-size: cover;
  background-position: center 25%;
  background-attachment: scroll;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: white;
  margin-bottom: -100px;
  z-index: 1;
}

/* Floating Decorative Elements */
.page-header::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.1); }
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
}

.hero-subtitle {
  display: block;
  font-size: 0.5em;
  font-weight: 400;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-top: 12px;
  font-family: 'Poppins', sans-serif;
}

.page-header p {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 1.5rem auto 3rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  font-weight: 300;
}

/* Trust Chips - Modern Glass style */
.hero-features {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
}

.trust-chip:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.trust-chip i {
  color: #ffd700;
}

/* Hero Button */
.btn-hero-scroll {
  display: inline-block;
  padding: 1.4rem 3.5rem;
  background: var(--grad-premium);
  color: white;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 15px 35px rgba(255, 122, 142, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
  margin-top: 2rem;
}

.btn-hero-scroll:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 50px rgba(255, 122, 142, 0.6);
  color: white;
}

/* ==========================================
   BLOG GRID & CARDS
   ========================================== */
.blog-section {
  padding: 140px 0 100px;
  background-color: transparent;
  position: relative;
  z-index: 2;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 50px;
}

.blog-card {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(106, 27, 154, 0.1);
}

/* Card Image */
.blog-image {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.blog-image::after {
  content: 'Read More';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(106, 27, 154, 0.3);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.blog-card:hover .blog-image::after {
  opacity: 1;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card:hover .blog-image img {
  transform: scale(1.15);
}

/* Card Content */
.blog-content {
  padding: 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-category {
  display: inline-flex;
  padding: 8px 20px;
  background: rgba(106, 27, 154, 0.03);
  color: var(--hub-purple);
  border: 1px solid rgba(106, 27, 154, 0.12);
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  align-self: flex-start;
  transition: all 0.4s ease;
}

.blog-card:hover .blog-category {
  background: var(--hub-purple);
  color: white;
  transform: scale(1.05);
}

.blog-card h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 18px;
  color: var(--text-dark);
  font-size: 1.8rem;
  line-height: 1.3;
  transition: color 0.3s ease;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.blog-card:hover h3 {
  color: var(--hub-purple);
}

.blog-card p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 30px;
  flex: 1;
  font-weight: 400;
  opacity: 0.85;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 25px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  color: #777;
  font-size: 0.8rem;
  font-weight: 600;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--hub-gold);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 25px;
}

.read-more-btn::after {
  content: '\f178';
  font-family: 'Font Awesome 6 Free';
  transition: transform 0.4s ease;
}

.blog-card:hover .read-more-btn {
  color: var(--hub-purple);
}

.blog-card:hover .read-more-btn::after {
  transform: translateX(8px);
}

/* ==========================================
   NEWSLETTER - ULTRA MODERN
   ========================================== */
.newsletter-section {
  padding: 160px 0;
  background: url("../assets/Images/Service-images/Corousal1.png") center/cover no-repeat;
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(80, 20, 110, 0.7), rgba(200, 50, 100, 0.7));
  backdrop-filter: blur(4px);
  z-index: 1;
}

.newsletter-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: #fff;
  font-weight: 900;
  letter-spacing: -1px;
}

.newsletter-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3.5rem;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 0;
  background: white;
  padding: 8px;
  border-radius: 60px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.newsletter-form input {
  background: transparent;
  padding: 1rem 2.5rem;
  border: none;
  font-family: inherit;
  font-size: 1.1rem;
  flex: 1;
  color: #333;
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-form button {
  padding: 1rem 3.5rem;
  border-radius: 50px;
  background: var(--grad-premium);
  color: white;
  transition: all 0.4s ease;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.newsletter-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    padding: 0 30px;
  }
}

@media (max-width: 968px) {
  .page-header {
    padding: 200px 0 140px;
  }
  .page-header h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 160px 0 120px;
  }
  .page-header h1 {
    font-size: 2.8rem;
    padding: 0 20px;
    letter-spacing: -1px;
  }
  .page-header p {
    font-size: 1.1rem;
    padding: 0 30px;
  }
  .hero-features {
    gap: 1rem;
  }
  .trust-chip {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .newsletter-content h2 {
    font-size: 2.5rem;
  }
  .newsletter-form {
    flex-direction: column;
    background: transparent;
    padding: 0;
    gap: 15px;
    box-shadow: none;
  }
  .newsletter-form input {
    background: white;
    border-radius: 50px;
    padding: 1.2rem 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  .newsletter-form button {
    width: 100%;
    padding: 1.2rem;
  }
}

/* Animation Add-ons */
.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
