* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body, html {
    height: 100%;
    font-family: Arial, sans-serif;
    color: white;
    position: relative;
    overflow-x: hidden;
  }

  .hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .background-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: -1;
  }
  
  .hero-content {
    z-index: 2;
    padding: 20px;


  }
  
  .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid white;
  animation: typing 3s steps(30, end), blink-caret 0.7s step-end infinite;
    animation: typing 3s steps(30, end), blink-caret 0.7s step-end infinite;
  }

  @keyframes typing {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
  }
  
  @keyframes blink-caret {
    from, to {
      border-color: transparent;
    }
    50% {
      border-color: white;
    }
  }

  
  
  .hero-content p {
    margin-bottom: 10px;
  }
  
  .btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: transparent;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
  }
  
  .btn:hover {
    background: white;
    color: black;
  }
  

  .blog-section {
  padding: 80px 20px;
  background-color: #f9fbfb;
  text-align: center;
}

.blog-section h2 {
  font-size: 2.5rem;
  color: #333;
  font-family: Georgia, serif;

}

hr {
  width: 10%;
  margin: 0 auto;
  margin-bottom: 50px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.blog-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  text-align: left;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-content {
  padding: 15px;
}

.blog-content h3 {
  margin: 10px 0;
  font-size: 1.1rem;
  color: #333;

}



.blog-content small {
  display: block;
  margin-bottom: 10px;
  color: #999;
  font-size: 0.8rem;
}

.text-card {
  padding: 20px;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
}

.blog-section {
  padding: 80px 20px;
  background-color: #f9fbfb;
  text-align: center;
}

.blog-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #333;
  
}

.masonry-grid {
  column-count: 3;
  column-gap: 30px;
  margin-left: 100px;
  margin-right: 100px;
}

.masonry-card {
  background: white;
  display: inline-block;
  margin: 0 0 20px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.masonry-card:hover {
  transform: translateY(-5px);
}

.masonry-card img {
  width: 100%;
  height: auto;
  display: block;
}

.masonry-card img:hover {
  transform: scale(1.05);
}

.card-content {
  padding: 15px;
  text-align: left;
}

.card-content h3 {
  margin: 10px 0;
  font-size: 1.5rem;
  color: #333;
  font-family: Georgia, serif;

}
.card-content h3:hover {
  color: #5a9bd4;
}

h3 a {
  text-decoration: none;
  color: inherit;
}

.card-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}

.quote-card {
  padding: 30px 20px;
  font-style: italic;
  font-size: 1.5rem;
  color: #555;
  background: #fdfdfd;
}

.quote-card h1{
  font-family: Georgia, serif;
  line-height: 140%;
}

a video {
  width: 100%;
  height: 40%;
  display: block;
}

.quote{
  font-weight: 900;
  font-size: 1.5em; 
}

/* === Responsive Media Queries === */
@media (max-width: 1024px) {
  .masonry-grid {
    column-count: 2;
    margin: 0 50px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .masonry-grid {
    column-count: 1;
    margin: 0 20px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .quote-card {
    font-size: 1.2rem;
  }

  .card-content h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .quote {
    font-size: 1.2em;
  }

  .blog-section h2 {
    font-size: 2rem;
  }
}