* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
} 
 

:root {
  --primary-purple: #2d1441;
  --light-purple: #f7f2fa;
}

@media (min-width: 1024px) and (max-width: 1440px) {
  html {
    zoom: 0.85; /* Works in Chromium-based browsers */
  }
}

@supports not (zoom: 1) {
  @media (min-width: 1024px) and (max-width: 1440px) {
    body {
      transform: scale(0.85);
      transform-origin: top left;
      width: 117.65%; /* compensate scaling to avoid right gap */
    }
  }
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 576px) {
  .work-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .we-content {
    flex: 1;
    text-align: justify;
    max-width: 100%;
    animation: slideIn 1s ease-out;
  }

  .social-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .purple-background {
    display: none;
  } 
  
  .article-card img {
    margin-bottom: 10px;
  } 

  .featured-article img {
    width: 100%;
    height: 100%;
  }

  .article-card {
    width: 100% !important;
  }

  .overlay-top-right {
    width: 150px;
    height: 150px;
  } 

  .we-content {
    flex: 1;
    text-align: justify;
    max-width: 100%;
    animation: slideIn 1s ease-out;
  }

  .main-image {
    width: 80%;
    height: auto;
  }

  .work-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .secondary-image {
    width: 50%;
    height: auto;
  }


  .work-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .work-item {
    text-align: center;
  }


  .featured-article .article-meta {
    bottom: -75px;
  }

  .resource-item {
    height: 100%;
    padding: 10px;
  }

  .resource-item img {
    width: 100%;
    margin-right: 1rem;
    border-radius: 30px;
  }

  .mailid {
    word-break: break-all;
  }

  .resource-content h3 {
    font-size: 1.3rem;
  }


  .search-box {
    flex-direction: column;
    width: 100%;
  } 

  .footer-nav {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .social-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 50px;
  }

  .we-content p {
    line-height: 1.5;
  }

  .service-content p {
    line-height: 1.6;
  }
}

@media (max-width: 992px) {
  .overlay-left {
    display: none;
  }

  .content {
    margin-top: 10px;
    height: 100%;
  }

  .certificate-link a:hover {
    color: #9b4f96;
  }
}
