* { 
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100%;
  background-color: #f1f1f1;
  font-family: Arial, sans-serif;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: blueviolet;
  padding: 20px 30px 0 30px;
}

header h1 {
  color: white;
  font-size: 35px;
}

header .links {
  font-size: 25px;
  padding-bottom: 10px;
  margin-right: 30px;
  display: flex;
  justify-content: flex-end;
  gap: 100px;
}

header a {
  text-decoration: none;
  color: white;
}

header a:hover {
  color: black;
  transition: 0.3s;
}

main {
  flex: 1;
}

main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Intro Section */
.intro {
  text-align: center;
  background: white;
  padding: 25px;
  margin: 15px 50px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(1,1,1,1.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.intro:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.intro h2 {
  color: blueviolet;
  margin-bottom: 20px;
}

/* Blog Cards */
.blog-card {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  background: white;
  padding: 15px;
  margin: 25px 50px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(1,1,1,1.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.blog-card img {
  max-width: 20%;
  border-radius: 5px;
  height: auto;
  margin: 10px;
}

.cnt {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 10px;
}
#a{color: rgb(128, 128, 128); 
  text-align: center; 
  font-size: 18px;
  text-decoration:none;
  margin-top: 20px;
  margin-bottom: 20px;
}
#a:hover{
  color:black;
}
/* Footer */
footer {
  background-color: blueviolet;
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 18px;
}

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

@keyframes fadeInDown {
  from {
    transform: translateY(-40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ====================
   Media Queries
==================== */

/* Tablets */
@media (max-width: 768px) {
  header h1 {
    font-size: 30px;
  }

  header .links {
    font-size: 18px;
    gap: 40px;
    margin-right: 5px;
    flex-wrap: wrap;
  }

  .intro,
  .blog-card {
    margin: 15px 20px;
    font-size: 15px;
  }

  .blog-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .blog-card img {
    max-width: 70%;
  }

  .cnt {
    align-items: center;
  }
}

/* Mobiles */
@media (max-width: 480px) {
  header h1 {
    font-size: 24px;
  }

  .intro h2 {
    font-size: 20px;
  }

  .blog-card {
    flex-direction: column;
    margin: 15px 10px;
    padding: 12px;
  }

  .blog-card img {
    max-width: 100%;
  }

  .cnt {
    gap: 15px;
  }

  footer {
    font-size: 10px;
    padding: 8px;
  }
}
