/* Custom CSS replacing Bootstrap */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  color: #888888;
  background-color: #060606;
}

/* Navbar Styles */
.navbar {
  position: relative;
  min-height: 50px;
  margin-bottom: 20px;
  background-color: #060606;
  border: 1px solid #282828;
  padding: 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.navbar-header {
  display: flex;
  align-items: center;
}

.navbar-brand {
  display: inline-block;
  height: 50px;
  padding: 15px 15px;
  font-size: 18px;
  line-height: 20px;
  color: #ffffff;
  text-decoration: none;
}

.navbar-brand:hover {
  color: #09ef4e;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Form Controls */
.form-control {
  display: block;
  width: 100%;
  height: 38px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #888888;
  background-color: #ffffff;
  border: 1px solid #282828;
  border-radius: 4px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  margin-bottom: 10px;
}

.form-control:focus {
  border-color: #66afe9;
  border:2px solid #09ef4e;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
}

#searchForm {
  display: flex; 
  gap: 8px; 
  align-items: center;
  width: 1160px;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  margin-bottom: 0;
  margin-top: 10px;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  padding: 8px 12px;
  font-size: 14px;
  text-decoration: none;
  line-height: 1.42857143;
  border-radius: 4px;
  background-color: #424242;
  border: 1px solid #424242;
  color: #ffffff;
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  color: #ffffff;
  background-color: #282828;
  border-color: #ff0213;
}

.btn:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

.btn-group {
  display: inline-flex;
  gap: 0;
  margin-bottom: 10px;
}

.btn-group .btn {
  margin: 0;
  border-radius: 0;
  /* margin-left: -1px; */
}

.btn-group .btn:first-child {
  border-radius: 4px 0 0 4px;
  margin-left: 0;
}

.btn-group .btn:last-child {
  border-radius: 0 4px 4px 0;
}

/* Jumbotron */
.jumbotron {
  padding: 50px 15px;
  padding-right: 130px;
  margin-bottom: 20px;
  margin-right: 10px;
  background-color: #151515;
  border-radius: 6px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jumbotron img {
    /* Ensure image fits within the container */
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* Ensures image covers the area without stretching */
}

.collage {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 400px;
  background-color: #151515;
  border-radius: 8px;
}

.collage img {
  position: absolute;
  width: 160px;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  border: 3px solid #282828;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease, z-index 0.3s ease;
}

.collage img:hover {
  opacity: 1 !important;
  transform: scale(1.08);
  z-index: 100 !important;
}

.collage img.featured {
  width: 240px;
  height: 290px;
  opacity: 1;
  z-index: 50;
}

/* Text Utilities */
.text-center {
  text-align: center;
}

/* Row and Columns */
.row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 0 0 20px 0;
  padding: 0;
}

.col-md-3,
.col-md-4,
.col-md-8,
[class*="col-"] {
  padding: 0;
}

/* I added this to overide the Agent */
hr {
    display: block;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    margin-inline-start: auto;
    margin-inline-end: auto;
    color: gray;
    unicode-bidi: isolate;
    overflow: hidden;
    border-style: inset;
    border-width: 1px;
}


#memberDetails {    
    padding-left: 5px;    
}

#memberDetailsHr {
    /* margin-top: 30px;
    margin-bottom: 30px; */
    border-color: gray;
}



/* Member detail layout */
#member .row {
  display: grid;
  gap: 30px;
  margin-bottom: 30px;
}

#member .row:first-child {
  grid-template-columns: 1fr 2fr;
}

#member .row:last-child {
  grid-template-columns: 1fr;
}


/* Well/Card Styles */
.well {
  min-height: 20px;
  padding: 30px;
  margin-bottom: 20px;
  background-color: #222222;
  border: 1px solid #282828;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
}

#member {
  padding: 40px;
  font-size: 16px;
}

.thumbnail {
  background-color: #282828;
  border: 1px solid #282828;
  border-radius: 4px;
  padding: 10px;
  max-width: 100%;
}

.list-group {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.list-group-item {
  padding: 12px 15px;
  background-color: #282828;
  border: 1px solid #1a1a1a;
  margin-bottom: 5px;
  border-radius: 3px;
  color: #ffffff;
}

.list-group-item:first-child {
  border-radius: 3px 3px 0 0;
}

.list-group-item:last-child {
  border-radius: 0 0 3px 3px;
  margin-bottom: 0;
}

.list-group-item strong {
  color: #2a9fd6;
}

#members img, #member img{
  width: 100%;
  height: auto;
  margin-bottom: 8px;
  border-radius: 3px;
}

#members h5 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #ffffff;
  font-weight: 600;
}


#members .well {
  display: flex;
  flex-direction: column;
}

#members .btn {
  width: 100%;
  margin-top: auto;
  padding: 6px 12px;
  font-size: 13px;
}

#member h4 {
  margin-top: 20px;
  margin-bottom: 15px;
  color: #e79e0b;
}

#member p {
  margin-bottom: 15px;
  line-height: 1.6;
}

#member .btn {
  margin-bottom: 20px;
}


/* Footer styling */
.site-footer {
  margin-top: auto; /* Pushes footer to the bottom of the flex container */
  width: 100%;
  text-align: center; /* Centers the text horizontally */
  padding: 20px 0;
  color: #f8f8f8;
}


/* Responsive Design */
@media(min-width:960px){
  .row {
    grid-template-columns: repeat(4, 1fr);
  }

  #members .col-md-3 .well{
    height: 390px;
    width: 265px;
  }
 
  #members .col-md-3 img{
    height: 270px;
  }

}

@media(max-width:959px) {
  .row {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}




/*  I added for Jumbotron  */

@media (max-width: 960px) {
    .jumbotron-wrapper {
        /* Reduce height for medium screens */
        height: 400px; 
    }
    /* Optionally resize the image specifically */
    .jumbotron img {
        /* Example of explicit height reduction */
        max-height: 350px; 
    }
}

/* For screens smaller than 768px (e.g., mobile devices) */
@media (max-width: 912px) {
  
    /* .jumbotron { */
        /* Further reduce height for small screens */
        /* height: 300px;  */
        /* Adjust padding or margin if needed for spacing */
        /* padding: 20px; */
    /* } */



    .jumbotron-wrapper {
        display: none; /* Hide the div on small screens */
    }

    /* Optionally resize the image specifically */
    .jumbotron img {
         /* Example of explicit height reduction */
        max-height: 250px; 
    }
}


/*  I added for the form's input field and buttons */

/* Media query for smaller screens (e.g., mobile phones) */
@media (max-width: 960px) {
  #searchForm {
    flex-direction: column; /* Stacks the items vertically */
    gap: 15px;              /* More space between stacked items */
    width: 100%;            /* Makes the form take the full width */
  }

  #searchText {
    width: 100%; /* Makes the input take the full width when stacked */
    box-sizing: border-box; /* Ensures padding/border are included in the width calculation */
  }

  .btn-group {
    /* Optional: Center the button group or make it full width */
    display: flex;
    justify-content: center;
    width: 100%;
  }
  
  .btn-group button {
      flex-grow: 1; /* Makes buttons in the group equal width */
  }
}