/**
 * Theme Name:     Backer Child
 * Author:         Themeum
 * Template:       backer
 * Text Domain:	   backer-child
 * Description:    Functional Crowdfunding and Fundraising WordPress Theme
 */

/******/
/* body {
  font-family: "Open Sans" !important;
} */

.um a.um-button,
.um a.um-button.um-disabled:active,
.um a.um-button.um-disabled:focus,
.um a.um-button.um-disabled:hover,
.um input[type="submit"].um-button,
.um input[type="submit"].um-button:focus {
  background-color: #e94d65 !important;
  color: white;
}
.um .um-button.um-alt,
.um input[type="submit"].um-button.um-alt {
  color: #666 !important;
}

.um .um-button.um-alt,
.um input[type="submit"].um-button.um-alt {
  background: #eee !important;
}
/* Add your custom styles here */
/* Campaign Form Styling */
.wpneo-form {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Form Title */
.wpneo-form .wpneo-single .wpneo-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

/* Form Fields */
.wpneo-form input[type="text"],
.wpneo-form input[type="number"],
.wpneo-form select,
.wpneo-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 5px;
}

/* Rich Text Editor */
.wp-editor-wrap {
  margin-bottom: 20px;
}

.wp-editor-tools {
  background: #f5f5f5;
  padding: 5px;
  border: 1px solid #ddd;
  border-bottom: none;
}

.wp-editor-container {
  border: 1px solid #ddd;
}

/* Editor Buttons */
.wp-editor-tools button {
  padding: 4px 8px !important;
  min-width: 30px;
  height: auto !important;
}

.quicktags-toolbar input {
  min-width: 32px !important;
  padding: 4px 8px !important;
  height: auto !important;
}

/* Form Sections */
.wpneo-single {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

/* Half-width Fields */
.wpneo-first-half,
.wpneo-second-half {
  width: 48%;
  display: inline-block;
  vertical-align: top;
}

.wpneo-first-half {
  margin-right: 3%;
}

/* Helper Text */
.wpneo-fields small {
  display: block;
  margin-top: 5px;
  color: #666;
  font-style: italic;
}

/* Form Buttons */
.wpneo-form-action {
  margin-top: 30px;
  text-align: center;
}

.wpneo-submit-campaign {
  background-color: #e94d65;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 15px;
}

.wpneo-cancel-campaign {
  background-color: #f5f5f5;
  color: #333;
  padding: 12px 25px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}

/* Image Upload Fields */
.wpneo-image-upload,
.wpneo-image-upload-btn {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
}

/* Reward Section */
.wpneo-reward-option {
  font-size: 18px;
  font-weight: 600;
  margin: 30px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e94d65;
}

.reward_group {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .wpneo-first-half,
  .wpneo-second-half {
    width: 100%;
    margin-right: 0;
  }

  .wpneo-form {
    padding: 10px;
  }
}

/*****************/
/* Campaign Card Container */
/* Card Container */

.themeum-campaign-post {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  margin-bottom: 30px;
}

.themeum-campaign-post:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

/* Image Container */
.themeum-campaign-img {
  position: relative;
  overflow: hidden;
}

.themeum-campaign-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.themeum-campaign-img:hover img {
  transform: scale(1.05);
}

/* Content Section */
.themeum-campaign-post-content {
  padding: 20px;
}

/* Title */
.entry-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.entry-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}

.entry-title a:hover {
  color: #3498db;
}

/* Author and Category */
.entry-author,
.entry-category {
  font-size: 0.875rem;
  color: #666;
  margin-right: 15px;
  display: inline-block !important;
}

.entry-author a,
.entry-category a {
  color: #3498db;
  text-decoration: none;
}

.entry-author a:hover,
.entry-category a:hover {
  text-decoration: underline;
}

/* Progress Bar Section */
.progressbar-content-wrapper {
  padding: 20px;
  background: #f8f9fa;
  margin-top: 15px;
}

/* Progress Bar Header */
.thm-progress-bar .lead {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 1rem;
}

/* Progress Bar */
.progress {
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-bar-primary {
  background: linear-gradient(90deg, #3498db, #2980b9);
  transition: width 0.6s ease;
}

/* Goal Section */
.thm-funding-goal {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.9rem;
}

.thm-meta-desc,
.thm-meta-name {
  color: #666;
}

/* Price Amounts */
.woocommerce-Price-amount {
  font-weight: 600;
  /* color: #2c3e50; */
}

/* Location Section */
.themeum-campaign-location {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  font-size: 0.875rem;
  color: #666;
}

.themeum-campaign-location .fa {
  color: #e74c3c;
  margin-right: 5px;
}

/* Responsive Grid (already handled by Bootstrap classes) */
/* Optional additional responsive adjustments */
@media (max-width: 767px) {
  .themeum-campaign-post-content {
    padding: 15px;
  }

  .entry-title {
    font-size: 1.25rem;
  }

  .themeum-campaign-img img {
    height: 200px;
  }
}

/* Animation for Progress Bar */
@keyframes progressAnimation {
  0% {
    opacity: 0;
    width: 0;
  }
  100% {
    opacity: 1;
  }
}

.progress-bar-primary {
  animation: progressAnimation 1s ease-out forwards;
}

/* Set fixed height for the entire card */
.themeum-campaign-post {
  display: flex;
  flex-direction: column;
  height: 90%; /* Fill available space in grid */
  min-height: 500px; /* Minimum height for consistency */
}

/* Content wrapper */
.themeum-campaign-post-content {
  /* flex: 1;
  display: flex;
  flex-direction: column; */
  min-height: 150px;
}

/* Description paragraph */
.themeum-campaign-post-content p {
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6; /* Show maximum 3 lines */
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  max-height: 10em; /* 3 lines × 1.6 line height */
}

/* Keep the progress bar section at the bottom */
.progressbar-content-wrapper {
  margin-top: auto; /* Push to bottom of flex container */
}

/* Ensure image maintains consistent height */
.themeum-campaign-img {
  height: 250px; /* Fixed height for images */
  overflow: hidden;
}

.themeum-campaign-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Ensure consistent spacing */
.entry-title {
  margin-bottom: 10px;
  /* min-height: 2.8em;  */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Meta information (author, category) consistent height */
.entry-author,
.entry-category {
  /* display: inline-block;
  margin-bottom: 10px; */
}

/*****************/
/* Campaign Container */
.wpneo-list-details {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: "Open Sans";
  /* font-family: system-ui, -apple-system, sans-serif; */
}

/* Campaign Header */
.wpneo-campaign-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.wpneo-author-info {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Campaign Image/Video Container */
.wpneo-post-img {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Campaign Progress */
.campaign-funding-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.campaign-funding-info ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.funding-amount {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.info-text {
  color: #718096;
  font-size: 0.9rem;
}

/* Progress Bar */
.wpneo-raised-bar {
  margin: 2rem 0;
}

#neo-progressbar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

#neo-progressbar > div {
  height: 100%;
  background: #4299e1;
  transition: width 0.3s ease;
}

/* Donation Form */
.wpneo-single-sidebar {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin: 2rem 0;
}

.wpneo_donate_amount_field {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.wpneo_donate_button {
  width: 100%;
  padding: 1rem;
  background: #4299e1;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.wpneo_donate_button:hover {
  background: #3182ce;
}

/* Rewards Section */
.tab-rewards {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
}

.tab-rewards-wrapper {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.select_rewards_button {
  background: #48bb78;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.select_rewards_button:hover {
  background: #38a169;
}

/* Tabs Navigation */
.wpneo-tabs-menu {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid #e2e8f0;
  padding: 0;
  margin: 2rem 0;
  list-style: none;
}

.wpneo-tabs-menu li a {
  padding: 0.75rem 1.5rem;
  color: #718096;
  text-decoration: none;
  font-weight: 500;
  display: block;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

/* .wpneo-tabs-menu li.wpneo-current a {
  color: #4299e1;
  border-bottom-color: #4299e1;
} */

/* Responsive Design */
@media (max-width: 768px) {
  .wpneo-list-details {
    padding: 1rem;
  }

  .campaign-funding-info ul {
    grid-template-columns: 1fr;
  }

  .wpneo-campaign-title {
    font-size: 2rem;
  }
}

/****************/
/***Search*****/

/* Adjust search bar width and alignment */
.is-search-form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Style the dropdown results */
.is-search-results {
  position: absolute;
  z-index: 9999;
  max-height: 300px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Ensure dropdown stays within screen */
.is-search-results {
  left: auto;
  right: 0;
  transform: translateX(-10%);
}

/* Highlight search results */
.is-search-results a {
  display: block;
  padding: 10px;
  color: #333;
  text-decoration: none;
}
.is-search-results a:hover {
  background: #f4f4f4;
}

/****************/
/* Report Form */
/* General form container */
/* Style only the form with ID wpcf7-f2503-p2469-o1 */
.campaign-report-form {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Set up a two-column grid for the form fields */
.campaign-report-form form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 2%;
  margin-left: 2%;
}

/* Label styling */
.campaign-report-form .wpcf7-form-control-wrap label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 5px;
}

/* Input and textarea styling */
.campaign-report-form .wpcf7-form-control {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

/* Focus effect for inputs */
.campaign-report-form .wpcf7-form-control:focus {
  /* border-color: #0073e6; */
  outline: none;
}

/* Ensure the "Message" field spans the full width */
.campaign-report-form .wpcf7-form-control-wrap textarea {
  grid-column: span 2;
  resize: vertical;
  min-height: 150px;
  background-color: #fff;
}

/* Submit button styling */
.campaign-report-form .wpcf7-form-control.wpcf7-submit {
  /* background-color: #0073e6; */
  color: white;
  font-weight: bold;
  cursor: pointer;
  border: none;
  padding: 15px 20px;
  border-radius: 4px;
  transition: background-color 0.3s;
  grid-column: span 2; /* Make the button span both columns */
}

/* Submit button hover effect */
.campaign-report-form .wpcf7-form-control.wpcf7-submit:hover {
  /* background-color: #005bb5; */
}

/* Spinner styling */
.campaign-report-form .wpcf7-spinner {
  display: none; /* Hide spinner by default */
}

/* Response message container */
.campaign-report-form .wpcf7-response-output {
  margin-top: 20px;
  color: #28a745;
  font-size: 16px;
}

.campaign-report-form .report-form-title {
  display: none;
}

/* Make the form fields stack on smaller screens */
@media (max-width: 768px) {
  .campaign-report-form form {
    grid-template-columns: 1fr;
  }

  /* Make the submit button span full width on smaller screens */
  .campaign-report-form .wpcf7-form-control.wpcf7-submit {
    grid-column: span 2;
  }
}
