.main1-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
}

.header-section {
  text-align: center;
  margin-bottom: 60px;
}

.main-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 20px;
  line-height: 1.2;
}

.main-title .highlight {
  color: #4f46e5;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.subtitle {
  color: #64748b;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 16px;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 12px;
  line-height: 1.4;
  height: 70px; /* Fixed height for exactly 2 lines */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-description {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 16px;
  height: 108px; /* Fixed height for exactly 4 lines */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
  font-size: 0.85rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
}

.meta-dot {
  width: 4px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 50%;
}

.author {
  font-weight: 500;
  color: #475569;
}

.date {
  color: #64748b;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .main-container {
    padding: 60px 20px;
  }

  .main-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .main-container {
    padding: 40px 16px;
  }

  .main-title {
    font-size: 2rem;
  }

  .card-content {
    padding: 20px;
  }

  .card-title {
    font-size: 1.2rem;
    height: 68px;
  }

  .card-description {
    height: 102px;
    font-size: 0.88rem;
  }

  .header-section {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 30px 12px;
  }

  .main-title {
    font-size: 1.8rem;
  }

  .card-content {
    padding: 18px;
  }

  .card-title {
    height: 64px;
    font-size: 1.1rem;
  }

  .card-description {
    height: 96px;
    font-size: 0.86rem;
  }

  .card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-card {
  animation: fadeInUp 0.6s ease forwards;
}

.blog-card:nth-child(2) {
  animation-delay: 0.1s;
}

.blog-card:nth-child(3) {
  animation-delay: 0.2s;
}
.banner-section {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40vh;
  background: #f5f5f5;
}
.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #4286f4, #6fb1fc);
  border-radius: 16px;
  padding: 40px 50px;
  color: white;
  max-width: 1400px;
  width: 90%;
  box-sizing: border-box;
}

.banner-left h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

.banner-right {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}

.banner-right-text {
  max-width: 200px;
  font-size: 0.85rem;
  color: #e3e7ee;
}

.banner-right-text strong {
  color: white;
  font-size: 0.95rem;
}

.icon-box {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.icon-box svg {
  width: 40px;
  height: 40px;
  stroke: white;
}

/* Responsive */
@media (max-width: 768px) {
  .banner {
    flex-direction: column;
    text-align: center;
    margin-bottom: 75px;
    margin-inline: 20px;
  }
  .banner-right {
    flex-direction: column;
    margin-top: 20px;
  }
  .banner-left h1 {
    font-size: 2rem;
  }
  .icon-box {
    width: 90px;
    height: 90px;
  }
}
@media (max-width: 480px) {
  .banner {
    padding: 20px 15px;
    gap: 20px;
  }

  .banner-left h1 {
    font-size: 1.5rem;
  }

  .banner-left p {
    font-size: 0.9rem;
  }

  .banner-right {
    gap: 12px;
  }

  .icon-box {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
  }
}

.footer {
  position: relative;
  overflow: hidden;
  background: #000004;
  padding: 72px 6% 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Large background text */
.footer .bg-text {
  position: absolute;
  left: 0;
  top: 8px;
  width: 100%;
  text-align: left;
  font-weight: 800;
  font-size: clamp(72px, 16vw, 260px);
  letter-spacing: -3px;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  padding-left: 6%;
}

/* inner container (content) */
.footer-inner {
  position: relative; /* so content sits above bg-text */
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Left column: logo + description + social icons */
.footer-left {
  max-width: 360px;
  min-width: 220px;
  flex: 1 1 360px;
}

.footer-left p {
  color: var(--muted-2);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 18px 0;
  color: #c0c0c0;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  text-decoration: none;
  color: #c0c0c0;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, background 0.18s ease;
  font-size: 14px;
  border: 0.5px solid #fff;
}
.social-icons a:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #2d6bff, #4ea1ff);
}

/* Links columns */
.footer-links {
  flex: 0 1 220px;
  min-width: 180px;
}
.footer-links h4 {
  margin: 0 0 12px 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}
.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c0c0c0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--muted-2);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.14s ease;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-links a:hover {
  color: #4ea1ff;
  text-decoration: underline;
  font-weight: 700;
}

/* Divider */
.footer .divider {
  margin: 30px auto 18px;
  width: 88%;
  max-width: 1400px;
  height: 1px;
  background: #c0c0c0;
  border: none;
  position: relative;
  z-index: 1;
}

/* bottom row (copyright & small links) */
.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 6%;
  color: var(--muted-2);
  font-size: 0.9rem;
}
.footer-bottom .copyright {
  margin: 8px 0;
  color: #c0c0c0;
  display: flex;
  justify-content: center;
}

.follow h2 {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 12px;
}
/* Responsive adjustments */
@media (max-width: 880px) {
  .footer-inner {
    gap: 20px;
    padding-bottom: 8px;
  }
  .footer-left {
    flex: 1 1 100%;
    max-width: none;
  }
  .footer-links {
    flex: 1 1 45%;
    min-width: 160px;
  }
  .footer .bg-text {
    font-size: clamp(56px, 22vw, 160px);
    padding-left: 6%;
    opacity: 0.025;
  }
}

@media (max-width: 560px) {
  .footer {
    padding: 40px 5% 26px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-links {
    width: 100%;
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-direction: column;
  }
  .footer-links h4 {
    font-size: 0.95rem;
  }
  .footer .bg-text {
    display: none;
  } /* hide huge background on small phones for readability */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 5%;
  }
}
