.blog-hero {
  position: relative;
  padding: 100px 0 200px;
}
.blog-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 115%;
  width: 100%;
  background-image: url(../images/svg/blog-bg.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
  margin-top: -140px;
}
.hero-blog img {
  width: 100%;
}

.container {
  position: relative;
  z-index: 2;
}

.featured-tag {
  color: #abdbff;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-title {
  color: #ffffff;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.blog-text {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.search-container {
  position: relative;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 14px 20px;
  padding-right: 120px;
  border: none;
  border-radius: 50px;
  background: rgb(255, 255, 255);
  backdrop-filter: blur(10px);
  color: #111827;
  font-size: 14px;
  outline: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 24px;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Responsive Fix: Stack input and button vertically on small screens */
@media (max-width: 480px) {
  .search-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .search-input {
    padding-right: 20px;
  }

  .search-btn {
    position: static;
    transform: none;
    width: 100%;
    text-align: center;
  }
}


.hero-illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
}

.floating-platform {
  background: linear-gradient(145deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 50%;
  width: 400px;
  height: 200px;
  position: relative;
  transform: perspective(600px) rotateX(15deg);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3),
    0 10px 20px rgba(139, 92, 246, 0.2);
}

.laptop-container {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
}

.laptop {
  width: 280px;
  height: 180px;
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 8px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: perspective(600px) rotateX(5deg) rotateY(-5deg);
}

.laptop-screen {
  width: 260px;
  height: 160px;
  background: #1e293b;
  border-radius: 4px;
  position: absolute;
  top: 10px;
  left: 10px;
  overflow: hidden;
}

.screen-content {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.screen-body {
  padding: 15px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.4;
}

.screen-lines {
  background: #334155;
  height: 2px;
  margin: 4px 0;
  border-radius: 1px;
}

.screen-lines:nth-child(1) {
  width: 100%;
}
.screen-lines:nth-child(2) {
  width: 85%;
}
.screen-lines:nth-child(3) {
  width: 92%;
}
.screen-lines:nth-child(4) {
  width: 78%;
}

.character {
  position: absolute;
  bottom: -30px;
  left: 180px;
}

.character-body {
  width: 60px;
  height: 80px;
  position: relative;
}

.character-head {
  width: 25px;
  height: 25px;
  background: #fbbf24;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.character-hair {
  width: 30px;
  height: 15px;
  background: #92400e;
  border-radius: 15px 15px 0 0;
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.character-shirt {
  width: 35px;
  height: 45px;
  background: linear-gradient(145deg, #06b6d4 0%, #0891b2 100%);
  border-radius: 8px;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-cube {
  position: absolute;
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, #10b981 0%, #059669 100%);
  border-radius: 8px;
  animation: float 3s ease-in-out infinite;
}

.cube-1 {
  top: 20%;
  right: 15%;
  animation-delay: 0s;
}

.cube-2 {
  top: 60%;
  right: 10%;
  animation-delay: 1s;
  background: linear-gradient(145deg, #8b5cf6 0%, #7c3aed 100%);
}

.coffee-cup {
  position: absolute;
  top: 15%;
  right: 25%;
  width: 35px;
  height: 40px;
}

.cup-body {
  width: 30px;
  height: 30px;
  background: linear-gradient(145deg, #dc2626 0%, #b91c1c 100%);
  border-radius: 0 0 8px 8px;
}

.cup-lid {
  width: 32px;
  height: 8px;
  background: #374151;
  border-radius: 50%;
  position: absolute;
  top: -4px;
  left: -1px;
}

.small-dots {
  position: absolute;
  bottom: 10%;
  right: 20%;
}

.dot {
  width: 12px;
  height: 12px;
  background: #a855f7;
  border-radius: 50%;
  margin: 8px 0;
  animation: pulse 2s ease-in-out infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.5s;
  width: 8px;
  height: 8px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-hero {
    padding: 40px 0;
    min-height: auto;
  }

  .blog-title {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .blog-text {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .search-container {
    max-width: 100%;
    margin-bottom: 16px;
  }

  .search-input {
    padding-right: 100px;
  }

  .floating-platform {
    width: 300px;
    height: 150px;
  }

  .laptop {
    width: 220px;
    height: 140px;
  }

  .laptop-screen {
    width: 200px;
    height: 120px;
  }

  .hero-illustration {
    height: 400px;
    margin-top: 40px;
  }

  .floating-cube {
    width: 30px;
    height: 30px;
  }

  .coffee-cup {
    width: 25px;
    height: 30px;
  }
}

@media (max-width: 576px) {
  .blog-title {
    font-size: 28px;
    margin-top: 60px;
  }

  .search-input {
    font-size: 12px;
    padding: 12px 16px;
    padding-right: 90px;
  }

  .search-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .floating-platform {
    width: 250px;
    height: 120px;
  }

  .laptop {
    width: 180px;
    height: 110px;
  }

  .laptop-screen {
    width: 160px;
    height: 90px;
  }
}

/* =====================================blog========================================= */
.section-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: #ffffff;
}

.section-title .highlight {
  background: linear-gradient(45deg, #2bd1e2, rgb(0, 191, 255));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  text-align: center;
  color: #9ca3af;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 4rem auto;
  font-weight: 400;
}

.article-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 212, 170, 0.15);
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-image {
  transform: scale(1.05);
}

.article-content {
  padding: 1.5rem;
}

.article-category {
  display: inline-block;
  background: linear-gradient(45deg, rgb(138, 43, 226), rgb(0, 191, 255));
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.article-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: #ffffff;
  transition: color 0.3s ease;
}

.article-card:hover .article-title {
  color: #18a7fb;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 500;
}

.article-views {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-views i {
  font-size: 0.8rem;
}

.tab-container {
  margin: 6rem 0 4rem 0;
}

.custom-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgb(255, 255, 255, 0.02);
  border: 1px solid rgb(0, 191, 255, 0.2);
  color: #9ca3af;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: capitalize;
}

.tab-btn:hover {
  background: rgb(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgb(0, 191, 255);
}

.tab-btn.active {
  background: linear-gradient(45deg, rgb(138, 43, 226), rgb(0, 191, 255));
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.view-all-btn {
  display: inline-block;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

.tab-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  display: none;
}

.tab-content.active {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }

  .custom-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .custom-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
  }

  .main-container {
    padding: 40px 0;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }

  .section-description {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  .article-content {
    padding: 1rem;
  }

  .article-title {
    font-size: 1rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-card {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-card:nth-child(1) {
  animation-delay: 0.1s;
}
.article-card:nth-child(2) {
  animation-delay: 0.2s;
}
.article-card:nth-child(3) {
  animation-delay: 0.3s;
}
.article-card:nth-child(4) {
  animation-delay: 0.4s;
}
.article-card:nth-child(5) {
  animation-delay: 0.5s;
}
.article-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Category specific colors */
.category-technology {
  background: linear-gradient(45deg, rgb(138, 43, 226), rgb(0, 191, 255));
}
/* .category-cloud { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
        .category-devops { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
        .category-web { background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%); }
        .category-security { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); } */
