/* ===============================
   Tirvu Custom Modern Theme
   =============================== */
body {
  font-family: "Poppins", sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(rgba(0, 120, 255, 0.6), rgba(0, 60, 140, 0.6)),
    url('https://images.unsplash.com/photo-1503264116251-35a269479413?auto=format&fit=crop&w=1600&q=80') center/cover fixed;
  color: #fff;
  padding: 140px 20px;
  text-align: center;
}

.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 700;
}

.hero-section p {
  font-size: 1.1rem;
  opacity: 0.95;
}

.hero-section .btn-primary {
  background-color: #fff;
  color: #0078ff;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}
.hero-section .btn-primary:hover {
  background-color: #e6f0ff;
  transform: translateY(-3px);
}

/* --- Search + Category --- */
.search-box {
  max-width: 650px;
  margin: -40px auto 50px;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  padding: 10px 15px;
}
.search-box input {
  border: none;
  box-shadow: none !important;
  outline: none;
}
.search-box button {
  border-radius: 50px;
}

/* --- Category Pills --- */
.nav-pills .nav-link {
  border-radius: 50px;
  padding: 8px 20px;
  margin: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
  background-color: #0078ff;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(0, 120, 255, 0.3);
}

/* --- Profile Cards --- */
.card {
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.card-img-top {
  height: 250px;
  object-fit: cover;
}
.card-body h5 {
  font-weight: 600;
}

/* --- About Section --- */
.about-section {
  background-color: #fff;
  padding: 80px 20px;
}
.about-section h2 {
  color: #0078ff;
  font-weight: 700;
}
.about-section p.lead {
  max-width: 700px;
  margin: 0 auto 40px;
  color: #666;
}
.about-section .card {
  border: none;
  text-align: center;
  padding: 25px;
}
.about-section .card h5 {
  color: #0078ff;
  font-weight: 600;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #0078ff, #0056c1);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}
.cta-section .btn-light {
  color: #0078ff;
  font-weight: 600;
  border-radius: 50px;
}

/* --- Footer --- */
footer {
  font-size: 0.95rem;
  background-color: #f8f9fa;
}


/* ===============================
   Profile Grid Modern Design
   =============================== */
.profile-grid {
  margin-top: 20px;
}

/* Each Profile Card */
.profile-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 360px;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Profile Image (Background) */
.profile-image {
  height: 100%; /* take full height of card */
  width: 100%;
  background-size: cover;
  background-position: center;
  transition: all 0.5s ease;
}

/* Hover zoom effect */
.profile-card:hover .profile-image {
  transform: scale(1.05);
  filter: brightness(0.6);
}

/* Overlay Details */
.profile-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(to top, rgba(0,120,255,0.85), rgba(0,120,255,0.3));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.profile-card:hover .profile-overlay {
  opacity: 1;
}

/* Text and Button */
.profile-overlay h5 {
  color: #fff;
  font-size: 1.25rem;
}
.profile-overlay p {
  color: #e0e0e0;
}
.profile-overlay .badge {
  background: #fff;
  color: #0078ff;
  font-weight: 600;
  border-radius: 30px;
  padding: 6px 12px;
}
.profile-overlay a.btn {
  border-radius: 30px;
  font-weight: 500;
  border-width: 2px;
  transition: all 0.3s ease;
}
.profile-overlay a.btn:hover {
  background: #fff;
  color: #0078ff !important;
}

.profile-card {
  height: 200px; /* fixed card height */
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Responsive */
@media (max-width: 767px) {
  .profile-card {
    height: 180px; /* slightly smaller on mobile */
  }
}

/* PROFILE GRID SMOOTH ANIMATION */
.profile-item {
  transition: opacity 0.4s ease, transform 0.3s ease;
}

/* (Optional: slight upward movement on hover) */
.profile-card:hover { transform: translateY(-4px); }