:root {
  --primary-color: #6c63ff;
  --secondary-color: #ff6584;
  --hover-gradient: linear-gradient(90deg, #6c63ff, #ff6584);
  --text-dark: #2d2d2d;
  --text-light: #f8f9fa;
  --bg-light: #f3f5f9;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-light);
  scroll-behavior: smooth;
}

.navbar {
  background: var(--hover-gradient);
  padding: 0.8rem 1rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: white !important;
  font-size: 1.5rem;
  letter-spacing: 1px;
}
.navbar-brand i {
  font-size: 1.7rem;
  color: white;
}
.nav-link {
  color: white !important;
  font-weight: 500;
  position: relative;
  transition: 0.4s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: 0.4s;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 8px 14px;
}
.search-form {
  max-width: 250px;
}

.search-input {
  border-radius: 50px 0 0 50px;
  padding: 0.5rem 1rem;
  transition: 0.3s ease;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(255, 77, 109, 0.5);
  border-color: #ff4d6d;
}

.search-btn {
  border-radius: 0 50px 50px 0;
  background-color: #ff4d6d;
  color: #fff;
  transition: 0.3s ease;
}

.search-btn:hover {
  background-color: #ff6f8e;
  transform: scale(1.05);
}

.hero {
  background: url("images/bg-1.jpg") center/cover no-repeat;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(47, 45, 45, 0.45);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 15px;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
}
.hero p {
  font-size: 1.2rem;
}

.filter-btn {
  background: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  margin: 0.4rem;
  border-radius: 30px;
  padding: 8px 18px;
  font-weight: 500;
  transition: 0.4s ease;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--hover-gradient);
  color: white;
  box-shadow: 0 0 15px rgba(108, 99, 255, 0.4);
}

.blog-card {
  overflow: hidden;
  border: none;
  transition: 0.4s;
  background: white;
  border-radius: 10px;
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.blog-img {
  position: relative;
}
.blog-img img {
  height: 230px;
  width: 100%;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.overlay-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--hover-gradient);
  color: white;
  padding: 5px 12px;
  font-size: 0.8rem;
  border-radius: 20px;
}
.overlay-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 20px;
}

.blog-card .card-body h5 {
  font-weight: 600;
  color: var(--text-dark);
}
.blog-card .card-text {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

.read-more-btn {
  background: var(--hover-gradient);
  color: white;
  border: none;
  padding: 7px 14px;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: 0.3s ease;
}
.read-more-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.05);
}

#about {
  background: white;
  padding: 80px 0;
}
#about h2 {
  font-weight: 700;
  color: var(--text-dark);
}
#about p {
  color: #555;
  line-height: 1.7;
}
.about-img {
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

#contact {
  background: var(--bg-light);
  padding: 80px 0;
  color: var(--text-dark);
  margin-bottom: 0;
}

#contact h2 {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

#contact p {
  margin-bottom: 30px;
}

.contact-box {
  border-radius: 15px;
  background: #fff;
}

.contact-form .form-control {
  border-radius: 10px;
  padding: 12px 18px;
  border: 1px solid #ddd;
  font-size: 1rem;
  transition: 0.3s;
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(108, 99, 255, 0.2);
}

.contact-form .btn {
  background: var(--hover-gradient);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  transition: 0.3s ease;
}

.contact-form .btn:hover {
  background: var(--secondary-color);
  transform: scale(1.05);
}

footer {
  background: var(--hover-gradient) !important;
  padding: 1.8rem 0;
  color: white !important;
  position: relative;
  z-index: 1;
}

footer i {
  font-size: 1.3rem;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: 0.3s;
}

footer i:hover {
  transform: scale(1.2);
  color: var(--secondary-color);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .filter-btn {
    padding: 6px 14px;
  }
  .search-bar-section {
    justify-content: center;
  }

  .search-bar-section .input-group {
    max-width: 90%;
  }
}
