/*
 Theme Name:   BuddyX Child
 Template:     buddyx
 Author:       Your Name
 Version:      1.0
*/

@import url("../buddyx/style.css");

.container {
  padding: 0 !important;
}

.main {
  margin: 0 auto;
}

#masthead.site-header {
  padding: 0 10px;
}

.front-title {
  text-align: center;
}

.front-title-padding-tb {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* HERO SECTION */

.hero-section {
  display: flex;
  width: 100% !important;
  height: 200px;
  min-height: 200px;
  color: #fff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
}

.hero-section {
  width: 100vw !important; /* Full viewport width */
  margin-left: calc(
    -50vw + 50%
  ); /* Centers the section by offsetting container padding */
  max-width: 100vw !important; /* No max width */
  position: relative; /* keep positioning context */
  display: flex;
  height: 100%;
  overflow: hidden;
  padding-bottom:20px;
}

.hero-left {
  flex: 1;
  background: url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=800&q=80")
    no-repeat center center/cover;  padding:30px;
}

.hero-right {
  flex: 1;
  background-color: #0a0a23; /* dark overlay color for readability */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem;
  box-sizing: border-box;
  padding:30px;
}

.hero-right h1 {
  font-size: 2rem;
  color: #fff;
}

.hero-right p {
  font-size: 1rem;
  max-width: 450px;
  color: #ddd;
}

.btn-cta {
  background-color: #ff5a5f;
  color: white;
  padding: 0.85rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  width: max-content;
  transition: background-color 0.3s ease;
}

.btn-cta:hover {
  background-color: #e0484c;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    height: auto;
  }

  .hero-left {
    min-height: 250px; /* Force visible height */
    height: 250px;
  }

  .hero-right {
    padding: 2rem;
  }

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

  .hero-right p {
    font-size: 1rem;
    max-width: 100%;
  }
}

/* GROUP GRID */

.group-grid {
  display: flex;
  flex-wrap: wrap; /* allow blocks to wrap to next line */
  justify-content: center; /* center blocks horizontally */
  align-items: stretch; /* make blocks in a row equal height */
  gap: 24px; /* horizontal and vertical spacing */
  margin: 20px 0;
  min-width: 100%; /* full width of the container */
  /*   border: solid 5px red; */
}

.group-box {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;

  /*  flex: 0 1 30%;  / / base width 30%, no grow, shrink if needed */
  max-width: 33.33%; /* max width is one third */
  min-width: 280px; /* minimum width so blocks don’t get too narrow */

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

/* Heading */
.group-box h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

/* Description */
.group-box p {
  flex-grow: 1;
  margin-bottom: 16px;
  color: #444;
}

/* Button */
.group-box .btn {
  padding: 10px 16px;
  background-color: #0073aa;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.group-box .btn:hover {
  background-color: #005177;
}

/* Responsive */
@media (max-width: 900px) {
  .group-box {
    flex: 0 1 45%;
    max-width: 45%;
  }
}

@media (max-width: 600px) {
  .group-box {
    flex: 0 1 90%;
    max-width: 90%;
  }
}

/* AVATAR */

.group-avatar {
  display: flex !important;
  justify-content: center !important;
  margin-bottom: 1rem !important; /* optional spacing */
}

.group-avatar img {
  border-radius: 50% !important;
  max-width: 100% !important;
  height: auto !important;
}

.group-box {
  text-align: center;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.group-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 2rem !important;
  justify-content: center !important;
}

.group-box {
  background-color: #fff !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.1) !important;
  padding: 1.5rem !important;
  width: 280px !important;
  text-align: center !important;
  transition: transform 0.2s ease !important;
}

.group-box:hover {
  transform: translateY(-5px) !important;
}

.group-avatar img {
  border-radius: 50% !important;
  margin-bottom: 1rem !important;
  max-width: 100% !important;
  height: auto !important;
}

.btn {
  display: inline-block !important;
  margin-top: 1rem !important;
  padding: 0.5rem 1.2rem !important;
  background-color: #0073e6 !important;
  color: white !important;
  text-decoration: none !important;
  border-radius: 4px !important;
  transition: background-color 0.3s ease !important;
}

.btn:hover {
  background-color: #005bb5 !important;
}

/* Hide buddy press group navigation */
/* #object-nav.groups-nav {
  display: none !important;
  visibility: hidden !important;
  height: 0;
  overflow: hidden;
} */

#nav-forum-groups-li,
#home-groups-li,
#knowledge-groups-li,
#workshop-groups-li {
  display: none !important;
  visibility: hidden !important;
  height: 0;
  overflow: hidden;
}

.current-menu-item > a {
  color: #fff;

  font-weight: bold;
}

.button.back-to-group {
  display: inline-block;
  margin-bottom: 1em;
  padding: 8px 14px;
  background-color: #21759b;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}
.button.back-to-group:hover {
  background-color: #1a5a78;
}

/** Button Loading More Groups **/

.clear {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
.clear:hover {
  background-color: #0056b3;
  cursor: pointer;
  color: #a9b3bf;
}