/* ========================================
   BLOG PAGE STYLES - AC Masters UAE
   Unique design for AC repair blog
   ======================================== */

/* Blog Hero Section */
.blog-hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.blog-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
}

.blog-hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  background-size: 100% 100%;
}

/* Breadcrumb */
.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.blog-breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: color 0.3s ease;
}

.blog-breadcrumb-link:hover {
  color: white;
}

.blog-breadcrumb-link img {
  opacity: 0.8;
  filter: brightness(0) invert(1);
}

.blog-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.blog-breadcrumb-current {
  color: #7dd3fc;
  font-size: 14px;
  font-weight: 500;
}

/* Hero Content */
.blog-hero-content {
  max-width: 800px;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 24px;
}

.blog-hero-badge img {
  filter: brightness(0) invert(1);
}

.blog-hero-badge span {
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.blog-hero-title {
  margin-bottom: 20px;
}

.blog-hero-title-main {
  display: block;
  font-size: 48px;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 8px;
}

.blog-hero-title-accent {
  display: block;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(90deg, #7dd3fc, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 650px;
}

/* Hero Stats */
.blog-hero-stats {
  display: flex;
  gap: 40px;
}

.blog-stat {
  display: flex;
  align-items: center;
  gap: 14px;
}

.blog-stat-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-stat-icon img {
  filter: brightness(0) invert(1);
}

.blog-stat-info {
  display: flex;
  flex-direction: column;
}

.blog-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: white;
}

.blog-stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Blog Main Content */
.blog-main {
  padding: 60px 0 80px;
  background: #f8fafc;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

/* Blog Card */
.blog-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
}

.blog-card-link {
  display: block;
  text-decoration: none;
}

.blog-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.08);
}

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-placeholder img {
  opacity: 0.5;
}

.blog-card-category {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(14, 165, 233, 0.95);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.blog-card-category img {
  filter: brightness(0) invert(1);
}

.blog-card-category span {
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.blog-card-content {
  padding: 24px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.blog-card-date,
.blog-card-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
}

.blog-card-date img,
.blog-card-time img {
  opacity: 0.6;
}

.blog-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #0c4a6e;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
  color: #0ea5e9;
}

.blog-card-excerpt {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.blog-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0ea5e9;
  transition: gap 0.3s ease;
}

.blog-card:hover .blog-card-more {
  gap: 12px;
}

.blog-card-more img {
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-more img {
  transform: translateX(4px);
}

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
}

.blog-pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: white;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0c4a6e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.blog-pagination-btn:hover {
  background: #0ea5e9;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

.blog-pagination-btn:hover img {
  filter: brightness(0) invert(1);
}

.blog-pagination-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-pagination-num {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.blog-pagination-num:hover {
  background: #e0f2fe;
  color: #0369a1;
}

.blog-pagination-active {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: white;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.blog-pagination-dots {
  color: #94a3b8;
  font-size: 14px;
  padding: 0 8px;
}

/* Popular Section */
.blog-popular {
  margin-bottom: 80px;
}

.blog-popular-header {
  text-align: center;
  margin-bottom: 40px;
}

.blog-popular-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 30px;
  margin-bottom: 16px;
}

.blog-popular-badge span {
  font-size: 13px;
  font-weight: 700;
  color: #b45309;
}

.blog-popular-title {
  font-size: 36px;
  font-weight: 800;
  color: #0c4a6e;
  margin-bottom: 12px;
}

.blog-popular-subtitle {
  font-size: 17px;
  color: #64748b;
}

.blog-popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-popular-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.blog-popular-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.12);
  border-color: #bae6fd;
}

.blog-popular-link {
  display: block;
  padding: 28px;
}

.blog-popular-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.blog-popular-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-popular-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fef3c7;
  border-radius: 20px;
}

.blog-popular-tag span {
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
}

.blog-popular-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #0c4a6e;
  line-height: 1.4;
  margin-bottom: 14px;
  transition: color 0.3s ease;
}

.blog-popular-card:hover .blog-popular-card-title {
  color: #0ea5e9;
}

.blog-popular-card-excerpt {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-popular-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.blog-popular-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}

.blog-popular-date img {
  opacity: 0.6;
}

.blog-popular-arrow {
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.blog-popular-card:hover .blog-popular-arrow {
  background: #0ea5e9;
}

.blog-popular-card:hover .blog-popular-arrow img {
  filter: brightness(0) invert(1);
}

/* CTA Section */
.blog-cta {
  position: relative;
  background: linear-gradient(135deg, #0c4a6e, #0369a1);
  border-radius: 30px;
  overflow: hidden;
  padding: 60px;
}

.blog-cta-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.blog-cta-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.blog-cta-circle-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
}

.blog-cta-circle-2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -80px;
}

.blog-cta-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}

.blog-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  margin-bottom: 20px;
}

.blog-cta-badge img {
  filter: brightness(0) invert(1);
}

.blog-cta-badge span {
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.blog-cta-title {
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  line-height: 1.2;
}

.blog-cta-text {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 28px;
}

.blog-cta-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.blog-cta-feature {
  display: flex;
  align-items: center;
  gap: 10px;
}



.blog-cta-feature span {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.blog-cta-card {
  background: white;
  border-radius: 24px;
  padding: 36px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.blog-cta-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.blog-cta-card-label {
  display: block;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 8px;
}

.blog-cta-phone {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #0ea5e9;
  transition: color 0.3s ease;
}

.blog-cta-phone:hover {
  color: #0369a1;
}

.blog-cta-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.blog-cta-divider::before,
.blog-cta-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.blog-cta-divider span {
  font-size: 14px;
  color: #94a3b8;
}

.blog-cta-card-text {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
}

.blog-cta-form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  transition: all 0.3s ease;
}

.blog-cta-form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.35);
}

.blog-cta-form-btn img {
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.blog-cta-form-btn:hover img {
  transform: translateX(4px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets */
@media (max-width: 1024px) {
  .blog-hero {
    padding: 120px 0 60px;
  }

  .blog-hero-title-main {
    font-size: 40px;
  }

  .blog-hero-title-accent {
    font-size: 26px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .blog-popular-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .blog-cta {
    padding: 50px 40px;
  }

  .blog-cta-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blog-cta-title {
    font-size: 30px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .blog-hero {
    padding: 110px 0 50px;
  }

  .blog-hero-title-main {
    font-size: 32px;
  }

  .blog-hero-title-accent {
    font-size: 22px;
  }

  .blog-hero-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .blog-hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .blog-stat {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-card-image {
    height: 200px;
  }

  .blog-card-title {
    font-size: 18px;
  }

  .blog-pagination {
    flex-wrap: wrap;
    gap: 12px;
  }

  .blog-pagination-btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  .blog-pagination-num {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .blog-popular-header {
    margin-bottom: 30px;
  }

  .blog-popular-title {
    font-size: 28px;
  }

  .blog-popular-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-popular-link {
    padding: 24px;
  }

  .blog-cta {
    padding: 40px 24px;
    border-radius: 20px;
  }

  .blog-cta-title {
    font-size: 26px;
  }

  .blog-cta-text {
    font-size: 15px;
  }

  .blog-cta-features {
    gap: 14px;
  }

  .blog-cta-feature span {
    font-size: 14px;
  }

  .blog-cta-card {
    padding: 28px 24px;
  }

  .blog-cta-phone {
    font-size: 24px;
  }
}

/* Small Mobile */
@media (max-width: 425px) {
  .blog-hero {
    padding: 100px 0 40px;
  }

  .blog-hero-badge {
    padding: 6px 12px;
  }

  .blog-hero-badge span {
    font-size: 12px;
  }

  .blog-hero-title-main {
    font-size: 28px;
  }

  .blog-hero-title-accent {
    font-size: 20px;
  }

  .blog-hero-subtitle {
    font-size: 15px;
  }

  .blog-stat-icon {
    width: 46px;
    height: 46px;
  }

  .blog-stat-num {
    font-size: 20px;
  }

  .blog-stat-label {
    font-size: 13px;
  }

  .blog-card-content {
    padding: 20px;
  }

  .blog-card-title {
    font-size: 17px;
  }

  .blog-card-excerpt {
    font-size: 14px;
  }

  .blog-popular-title {
    font-size: 24px;
  }

  .blog-popular-card-title {
    font-size: 18px;
  }

  .blog-cta-title {
    font-size: 22px;
  }

  .blog-cta-card-icon {
    width: 70px;
    height: 70px;
  }

  .blog-cta-phone {
    font-size: 22px;
  }
}

/* Very Small Mobile */
@media (max-width: 375px) {
  .blog-hero-title-main {
    font-size: 26px;
  }

  .blog-hero-title-accent {
    font-size: 18px;
  }

  .blog-card-image {
    height: 180px;
  }

  .blog-popular-icon {
    width: 50px;
    height: 50px;
  }

  .blog-cta {
    padding: 30px 20px;
  }

  .blog-cta-title {
    font-size: 20px;
  }

  .blog-cta-card {
    padding: 24px 20px;
  }

  .blog-cta-form-btn {
    padding: 14px 20px;
    font-size: 15px;
  }
}
