/* ==========================================
BLOG HERO
========================================== */
.blog-hero {
  padding: 120px 0;
  background: linear-gradient(135deg, #f7faff, #eef4ff);
  text-align: center;
}

.blog-hero-content {
  max-width: 850px;
  margin: auto;
}

.blog-hero h1 {
  font-size: 52px;
  line-height: 1.2;
  margin: 25px 0;
}

.blog-hero p {
  font-size: 18px;
  color: #666;
  line-height: 1.7;
  max-width: 700px;
  margin: auto;
}

/* ==========================================
BLOG SEARCH
========================================== */
.blog-search {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-search input {
  width: 420px;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 16px;
  transition: 0.3s;
}

.blog-search input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.blog-search button {
  padding: 16px 25px;
  background: #2563eb;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.blog-search button:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.blog-search button i {
  margin-right: 8px;
}

/* ==========================================
FEATURED BLOG
========================================== */
.featured-blog {
  padding: 90px 0;
}

.featured-blog-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  background: #f8fafc;
  border-radius: 20px;
  padding: 40px;
  transition: 0.3s;
}

.featured-blog-box:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.featured-blog-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 15px;
  transition: 0.3s;
}

.featured-blog-image img:hover {
  transform: scale(1.02);
}

.featured-blog-content h2 {
  font-size: 38px;
  margin: 20px 0;
}

.featured-blog-content p {
  color: #666;
  line-height: 1.7;
  font-size: 17px;
}

.blog-meta {
  display: flex;
  gap: 30px;
  margin: 25px 0;
  color: #555;
}

.blog-meta i {
  margin-right: 8px;
  color: #2563eb;
}

.featured-blog-content .btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: #2563eb;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.featured-blog-content .btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.featured-blog-content .btn-primary i {
  margin-left: 8px;
  transition: 0.3s;
}

.featured-blog-content .btn-primary:hover i {
  transform: translateX(4px);
}

/* ==========================================
LATEST ARTICLES
========================================== */
.latest-blog {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #2563eb;
  background: #e8efff;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 38px;
  margin: 0 0 14px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: 0.35s;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.blog-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: 0.3s;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 25px;
}

.blog-content span {
  display: inline-block;
  color: #2563eb;
  font-size: 14px;
  font-weight: 600;
  background: #e8efff;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.blog-content h3 {
  font-size: 23px;
  margin: 15px 0;
  line-height: 1.3;
}

.blog-content p {
  color: #666;
  line-height: 1.6;
  font-size: 15px;
}

.blog-content a {
  display: inline-block;
  margin-top: 15px;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.blog-content a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ==========================================
BLOG CATEGORIES
========================================== */
.blog-categories {
  padding: 90px 0;
  background: #f8fafc;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 50px;
}

.category-card {
  background: white;
  padding: 35px 25px;
  text-align: center;
  border-radius: 15px;
  transition: 0.35s;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.category-card i {
  font-size: 35px;
  color: #2563eb;
  margin-bottom: 20px;
  transition: 0.3s;
}

.category-card:hover i {
  transform: scale(1.1);
}

.category-card h3 {
  margin-bottom: 15px;
  font-size: 20px;
}

.category-card p {
  color: #666;
  line-height: 1.6;
  font-size: 15px;
}

/* ==========================================
NEWSLETTER
========================================== */
.blog-newsletter {
  padding: 90px 0;
}

.newsletter-box {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  padding: 60px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.newsletter-box h2 {
  font-size: 40px;
  margin: 20px 0;
  position: relative;
  z-index: 1;
}

.newsletter-box p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 35px;
  position: relative;
  z-index: 1;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.newsletter-form input {
  width: 400px;
  padding: 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  transition: 0.3s;
}

.newsletter-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
  padding: 16px 30px;
  border: none;
  border-radius: 8px;
  background: white;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* ==========================================
SOCIALS
========================================== */
.socials {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.socials a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1e3c7a;
  color: white;
  transition: 0.3s;
  text-decoration: none;
}

.socials a:hover {
  background: #2457ff;
  transform: translateY(-6px);
}

/* ==========================================
RESPONSIVE - TABLETS
========================================== */
@media (max-width: 992px) {
  .featured-blog-box {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
  }

  .featured-blog-image img {
    height: 280px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-hero h1 {
    font-size: 40px;
  }

  .section-head h2 {
    font-size: 32px;
  }
}

/* ==========================================
RESPONSIVE - MOBILE
========================================== */
@media (max-width: 768px) {
  .blog-hero {
    padding: 60px 16px;
  }

  .blog-hero h1 {
    font-size: 28px;
  }

  .blog-hero p {
    font-size: 15px;
    padding: 0 16px;
  }

  .blog-search {
    flex-direction: column;
    align-items: center;
  }

  .blog-search input {
    width: 100%;
    padding: 14px;
    font-size: 15px;
  }

  .blog-search button {
    width: 100%;
    padding: 14px;
    font-size: 15px;
  }

  .featured-blog {
    padding: 60px 16px;
  }

  .featured-blog-box {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .featured-blog-image img {
    height: 200px;
  }

  .featured-blog-content h2 {
    font-size: 28px;
  }

  .featured-blog-content p {
    font-size: 15px;
  }

  .blog-meta {
    flex-direction: column;
    gap: 10px;
  }

  .featured-blog-content .btn-primary {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }

  .latest-blog {
    padding: 60px 16px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-image img {
    height: 180px;
  }

  .blog-content {
    padding: 20px;
  }

  .blog-content h3 {
    font-size: 20px;
  }

  .blog-content p {
    font-size: 14px;
  }

  .blog-categories {
    padding: 60px 16px;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .category-card {
    padding: 24px 16px;
  }

  .category-card i {
    font-size: 28px;
  }

  .category-card h3 {
    font-size: 18px;
  }

  .category-card p {
    font-size: 14px;
  }

  .blog-newsletter {
    padding: 60px 16px;
  }

  .newsletter-box {
    padding: 40px 24px;
    border-radius: 16px;
  }

  .newsletter-box h2 {
    font-size: 28px;
  }

  .newsletter-box p {
    font-size: 15px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    width: 100%;
    padding: 14px;
  }

  .newsletter-form button {
    width: 100%;
    padding: 14px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .section-head p {
    font-size: 15px;
  }
}

/* ==========================================
RESPONSIVE - SMALL PHONES
========================================== */
@media (max-width: 480px) {
  .blog-hero h1 {
    font-size: 24px;
  }

  .blog-hero p {
    font-size: 14px;
  }

  .featured-blog-content h2 {
    font-size: 24px;
  }

  .featured-blog-content p {
    font-size: 14px;
  }

  .blog-content h3 {
    font-size: 18px;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .category-card {
    padding: 20px 16px;
  }

  .newsletter-box h2 {
    font-size: 24px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .blog-search input {
    font-size: 14px;
    padding: 12px;
  }

  .blog-search button {
    font-size: 14px;
    padding: 12px;
  }

  .featured-blog-box {
    padding: 16px;
  }

  .featured-blog-image img {
    height: 160px;
  }
}
