@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
   font-family: "Poppins", sans-serif;
}

body {
  background: #f8f9fa;
  line-height: 1.6;
  color: #333;
}
html {
  scroll-behavior: smooth;
}
.blogcontainer {
  max-width: 1350px;
  margin: 0 auto;
  padding: 40px 20px;
}


.blogs_container {
    display: block;
    margin-bottom: 0;
    margin-top:140px;
}

.blogs {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    background-color: #001d2c;
}
.blogs_container .blogs_img {
    background-image: url(./assets/home-about.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 500px;
    width: 100%;
    transition: filter 0.5s ease;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blogs_img:hover {
    filter: drop-shadow(0 8px 20px #90e0ef);
}

.hero-text {
    text-align: center;
    color: white;
    padding: 2rem;
    background-color: rgba(0, 29, 44, 0.7);
    border-radius: 15px;
    max-width: 800px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.explore-btn  {
    padding: 0.8rem 2rem;
    background-color: #03045e;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.explore-btn a{
    color: white;
    text-decoration: none;
}

.explore-btn:hover {
    background-color: #0077b6;
    transform: translateY(-2px);
}


/* article */
.article{
    display: flex;
    gap: 20px;
}


h2 {
  margin-top: 10px;
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: 700;
  color: #333;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
}


.card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
}



.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 120%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.card-title a {
  text-decoration: none;
  color: #0077b6;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}

.card-title a:hover {
  transform: translateY(-2px);
  color: #03045e;
}


.card-desc {
  font-size: 13px;
  color: #444;
  margin-bottom: 8px;
}

.card-footer {
  font-size: 12px;
  color: #555;
  display: flex;
  flex-direction: column; 
  gap: 2px;
  word-wrap: break-word;
}

.card-footer .author {
  color: #0056a5;
  text-decoration: none;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
}


/* Hamburger default (hidden on desktop) */
.hamburger {
  display: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* Responsive nav toggle */
@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 30px;
    height: auto;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 35px;
    right: 40px;
    z-index: 1100;
  }

  nav .center,
  nav .right {
    display: none;
    width: 100%;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-radius: 10px;
    margin-top: 20px;
  }

  nav .center.active,
  nav .right.active {
    display: flex;
  }

  nav .center ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  nav .center ul li a {
    margin: 10px 0;
  }

  nav .right {
    align-items: center;
    justify-content: center;
  }

  nav .right button {
    margin: 10px 0;
  }
}



/* footer  */

.footer {
  background-color: #f0f0f5;
  padding: 40px 20px 20px;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  border-top: 1px solid #ccc;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.footer-about, .footer-links, .footer-contact {
  flex: 1 1 300px;
  margin: 10px;
}

.footer h3, .footer h4 {
  color: #2a2a72;
  margin-bottom: 15px;
}

.footer p, .footer li {
  font-size: 15px;
  line-height: 1.6;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li a {
  color: #333;
  text-decoration: none;
}

.footer-links ul li a:hover {
  color: #007BFF;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 14px;
  color: #777;
}


@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-about, .footer-links, .footer-contact {
    width: 100%;
    margin-bottom: 20px;
  }

  .footer {
    text-align: left;
    padding: 30px 15px;
  }

  .footer-bottom {
    text-align: center;
  }
}








/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  padding: 0 80px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  align-items: center;
  width: 100%;
  max-width: 10000px;
  z-index: 1000;
  /* background-color: rgba(0, 0, 0, 0.6); */
  transition: .5s ease-in;
  /* flex-wrap: wrap; */
  background-color: rgba(116, 179, 246, 0.679);

}
nav:hover{
  background-color: rgba(0, 0, 0, 0.679);
}
nav .center ul {
  display: flex;
  list-style: none;
  background: rgba(255, 255, 255, 0.14);
  /* transparent background */
  backdrop-filter: blur(10px);
  border-radius: 30px;
  width: fit-content;
  height: fit-content;
}

nav .center ul li a {
  color: white;
  text-decoration: none;
  margin: 15px;
  font-size: 1em;
  font-weight: 400;
  text-transform: capitalize;
  display: inline-block;
  position: relative;
}

.center ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #fdfdfd;
  transition: width 0.3s ease;
}

.center ul li a:hover::after {
  width: 100%;
}

.left img{
  
  cursor: pointer;
  font-family:"Righteous";
  margin-top: 10px;
}

.left img:hover {
  text-shadow: 0 0 2px white;
  transition: 0.2s;
}
.right button{
  background-color: transparent;
  border: none;
  color: white;
  font-weight: 600;
  font-size: 1.2em;
  text-transform: capitalize;
cursor: pointer;

}

.right button:hover{
 
   color: rgb(0, 255, 255);

}

.right button:nth-child(2) {
  font-weight: 500;
  font-size: 1.2em;
  padding: 5px;
  margin-left: 15px;
  background-color: white;
  color: black;

  border: none;
  border-radius: 15px;
  width: 120px;
  height: fit-content;

  cursor: pointer;
  text-transform: capitalize;
}

.right button:nth-child(2):hover {
  background-color: rgb(0, 255, 255);
  color: rgb(0, 0, 0);
  transition: 0.5s;
}

