* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

/* ============ Navbar ============ */
.navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: fixed;
  width: 100%;
  top: 20px;
  z-index: 1000;
  max-width: 70%;
  margin-left: 15%;
  
}
.nav-links{
  display: none;
}


.fas{
    color: #5e63ff;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  width: 100% !important;
}

.logo {
  color: #2f2f8e;
  font-weight: 700;
 
 
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #5e63ff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn {
  background: #5e63ff;
  color: #fff;
  border: none;
  padding: 0 15px;
  height: 40px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  margin-left: 20px;
  
}

/* ============ Blog Section ============ */
.container {
  width: 85%;
  margin: auto;
}

.section-header {
  text-align: center;
  margin: 60px 0 40px;
  display: flex;
}

.section-header h5 {
  color: #5e63ff;
  font-weight: 600;

}

.section-header h2 {
  font-size: 28px;
  margin: 10px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 30px;
}

.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: relative;
  height: 356px;
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hover-effect{
    position: relative;
    overflow: hidden;
}
.hover-effect::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(91, 115, 255, 0.55),
    rgba(91, 115, 255, 0.55)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

/* 🔹 hover effect — show gradient overlay and zoom image */
.hover-effect:hover::before {
  opacity: 1;
}

.hover-effect:hover img {
  transform: scale(1.05);
}

.blog-card .date {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #5e63ff;
  color: white;
  font-size: 14px;
  text-align: center;
  border-radius: 6px;
  padding: 6px 10px;
  font-weight: 500;
  z-index: 2;
}

.blog-card:hover .date{
    background-color: #fff;
    color: #5e63ff;
}

.blog-card h3 {
  margin: 15px;
  font-size: 18px;
  font-weight: 600;
}

.blog-card p {
  margin: 0 15px 20px;
  font-size: 14px;
  color: #555;
}

/* ============ Footer ============ */
footer {
  background: #181842;
  color: white;
  padding-top: 60px;
  margin-top: 80px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer-container h3, .footer-container h4 {
  margin-bottom: 15px;
}

.footer-container ul {
  list-style: none;
}

.footer-container li {
  margin: 8px 0;
  color: #c9c9ff;
  cursor: pointer;
}

.footer-container li:hover {
  color: white;
}

.social{
  display: flex;
  gap: 20px;
}
.footer-contact .social a {
  background: #fff;
  color: #181842;
  height: 40px;
  width: 40px;
  padding: 15px;
  border-radius: 50%;
  transition: 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;


}

.footer-contact .social i:hover {
  background: #5e63ff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom ul {
  display: flex;
  gap: 20px;
  list-style: none;
  color: #c9c9ff;
  font-size: 14px;
  
}
span{
    color: #5e63ff;
}
#active{
    color: #5e63ff;
}
.header-left {
  width: 50%;
  
}
.header-right{
  width: 50%;
  font-size: 1rem;


}
.f{
  color: white;
}


/* Hero text above overlay */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.1rem;
  color: #dcdcdc;
}

.hero {
  position: relative;
  height: 600px;
  background: linear-gradient(rgba(91, 115, 255, 0.55), rgba(91, 115, 255, 0.55)), url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Poppins", sans-serif;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(91, 115, 255, 0.4); /* soft blue shadow under hero */
}
.footer-bottom{
    background-color: rgb(1, 5, 35);
    width: 100%;
    height: auto;
}
.footer-bottom p{
    text-align: left;
    padding-left: 30px;
}
.footer-bottom ul li a{
    text-align: right;
    list-style: none;
    text-decoration: none;
    font-size: 20px;
    color: white;
}
.text{
  position: absolute;
  bottom: 0;
  background-color: white;
  width: 100%;
  max-width: 310px;
  left: 10px;
  z-index: 11;

}

.nav-toggle{
  display: none;
}
/*responsive*/
/* ================= Responsive Design ================= */

@media(max-width: 1000px){
  .nav-links {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    display: none;
  }

  .navbar{
    max-width: 100%;
    margin-left: 0;
  }

  .btn{
    display: none;
  }

  .nav-toggle{
    display: block;
  }
}

/* 📱 For tablets and small laptops (max-width: 992px) */
@media (max-width: 992px) {
  .navbar {
    width: 100%;
    margin: 0 auto;
    top: 0;
  }

  .nav-links {
    gap: 15px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .section-header {
    flex-direction: column;
    text-align: center;
  }

  .header-left,
  .header-right {
    width: 100%;
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .hero {
    min-height: 450px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
  
}

/* 📱 For mobile screens (max-width: 768px) */
@media (max-width: 768px) {
  /* Navbar mobile layout */
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  /* .nav-links {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    display: none;
  } */

  .nav-links.active {
    display: flex;
  }

  .nav-right {
    margin-top: 10px;
  }

  .navbar {
    width: 100%;
    margin: 0;
    top: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .hero {
    min-height: 380px;
    padding: 60px 20px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  /* Blog cards */
  .blog-card {
    height: auto;
  }

  .blog-card img {
    height: auto;
    width: 100%;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-bottom p {
    padding-left: 0;
  }
}

/* 📱 Extra small devices (max-width: 480px) */
@media (max-width: 480px) {
  .hero {
    min-height: 320px;
    padding: 40px 15px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .btn {
    width: auto;
    padding: 8px 18px;
  }

  .blog-card h3 {
    font-size: 16px;
  }

  .blog-card p {
    font-size: 13px;
  }
}
@media screen and(max-width:991){
  .nav-toggle{
    display: block;
    margin-right:20px ;

  }
  
}







