/*
Theme Name: Divi Child
Version: 2.0
Description: Divi Child Theme for JoshHall.co
Author: Josh Hall
Template: Divi
Author URL: https://joshhall.co
*/
 
@import url("../Divi/style.css");

/*-------My Theme Customizations------- */

.restaurant-website-button a.et_pb_button:hover {
  background-color: #38a7de !important; /* force your hover background */
  color: #ffffff !important;            /* force your hover text color */
  border-color: #38a7de !important;     /* optional: match border on hover */
}

.sushi-detail-section {
  margin-bottom: 80px; /* add more space between sections */
}

.sushi-detail-section h3 {
  font-size: 1.3em;
  margin-bottom: 0.4em;
  color: #333;
}

.sushi-search-results {
  flex: 0 0 60%;
  max-width: 60%;
  padding: 0 20px;
  background: #fff; /* subtle gray background for entire search area */
}

.sushi-search-heading {
  font-size: 4em;
  margin-bottom: 10px;
  margin-top: 10px;
  color: #333;
  text-align: center;
  text-decoration: bold;
}

.sushi-results-list {
  margin-top: 10px;
  list-style: none;
  padding: 0;
}

.sushi-results-list li:nth-child(odd) {
  background-color: #f3f3f3; /* white for first, third, etc. */
}

.sushi-results-list li:nth-child(even) {
  background-color: #f4f4f4; /* light gray for second, fourth, etc. */
}

.sushi-result-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border-bottom: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px; /* optional: rounded corners */
}

.sushi-result-thumb {
  flex: 0 0 150px; /* width for featured image */
}

.sushi-result-thumb img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.sushi-result-thumb img:hover {
  transform: scale(1.05);
}

.sushi-result-details {
  flex: 1; /* remaining space for text */
}

.sushi-result-item h2 {
  font-size: 1.4em;
  margin-bottom: 5px;
}

.sushi-result-item h2 a {
  color: #333;
  text-decoration: none;
}

.sushi-result-item h2 a:hover {
  color: #38a7de;
  text-decoration: underline;
}

.sushi-result-address {
  font-size: 1.1em;
  color: #666;
}

.sushi-pagination {
  text-align: center;
  margin-top: 20px;
}

.sushi-pagination .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  color: #333;
  text-decoration: none;
}

.sushi-pagination .page-numbers.current,
.sushi-pagination .page-numbers:hover {
  background: #38a7de;
  color: #fff;
  border-color: #38a7de;
}

.sushi-result-item h2 a:hover {
  color: #8bc34a !important; /* your green hover color */
  text-decoration: underline;
}

.sushi-sidebar,
.sushi-sidebar * {
  writing-mode: initial !important;
  transform: none !important;
  width: auto !important;
  max-width: 40% !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  display: block !important;
  text-align: left !important;
  flex: 0 0 40%;
  min-width: 300px; /* ensures reasonable minimum size */
}

.sushi-sidebar .widget,
.sushi-sidebar .widget * {
  width: auto !important;
  max-width: 100% !important;
  word-wrap: normal !important;
  white-space: normal !important;
  display: block !important;
}

.sushi-sidebar .widget-title {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.sushi-sidebar {
  flex: 0 0 40%;
  max-width: 40%;
  min-width: 300px; /* ensures reasonable minimum size */
  background: #ffffff; /* keep sidebar white */
}

.sushi-search-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  max-width: 1200px;
  margin-top: 80px;
  margin: 0 auto;
  align-items: flex-start;
  width: 100%;
  padding-bottom: 60px;
  
}

@media (max-width: 767px) {
  .sushi-search-container {
    margin-top: 20px;
    flex-direction: column;
  }
  .sushi-search-results,
  .sushi-sidebar {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.sushi-search-form {
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 20px auto; /* centers and adds space below */
}

.sushi-search-form input[type="search"] {
  flex: 1;
  padding: 15px 20px;
  font-size: 1.2em;
  border: 2px solid #ddd;
  border-radius: 8px 0 0 8px;
  outline: none;
}

.sushi-search-form button {
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: bold; /* makes the text bold */
  border: 2px solid #E53935;
  background-color: #E53935;
  color: #ffffff;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.sushi-search-form button:hover {
  background-color: #ffffff;
  color: #E53935;
  border-color: #E53935;
}

.state-link {
  display: inline-block;
  margin: 2px 4px;
  padding: 5px 7px;
  background-color: #E53935;
  color: #ffffff;
  text-decoration: none;
  border-radius: 3px;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease;
}

.state-link:hover {
  background-color: #8BC34A;
  color: #fff;
}

.back-to-cities {
  margin: 20px 0;
}

.back-to-cities a {
  color: #8BC34A;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.back-to-cities a:hover {
  color: #E53935;
  text-decoration: underline;
}

.city-letter-filter {
  margin: 20px 0;
  text-align: center;
}

.city-letter, .city-letter-reset {
  display: inline-block;
  margin: 2px;
  padding: 8px 12px;
  background-color: #8BC34A;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.city-letter:hover, .city-letter-reset:hover {
  background-color: #E53935;
}

.browse-cities li a {
  color: #E53935; /* your desired color */
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.browse-cities li a:hover {
  color: #8bc34a; /* hover color */
  text-decoration: underline;
}

.browse-states {
  max-width: 1200px;
  margin: 40px auto 40px auto; /* adds top & bottom spacing */
  text-align: center;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.browse-state-heading {
  font-size: 2em;
  margin: 40px 0 20px 0; /* more space above & below */
  text-align: center;
}

.state-link.selected {
  background-color: #8bc34a; /* different color for selected state */
  color: #fff;
  border: 2px solid #689f38; /* optional: subtle border for selected */
}

/* Ninja Forms Styling */
.nf-form-layout {
  background: #ffffff;
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-family: inherit;
}

.nf-form-title h3 {
  font-size: 2em;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

.nf-field-label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
  color: #333;
}

.nf-field-element input[type="text"],
.nf-field-element input[type="email"],
.nf-field-element input[type="tel"],
.nf-field-element input[type="url"],
.nf-field-element textarea,
.nf-field-element select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  background-color: #fafafa;
  transition: border-color 0.2s ease-in-out;
}

.nf-field-element input:focus,
.nf-field-element textarea:focus,
.nf-field-element select:focus {
  border-color: #38a7de;
  outline: none;
  background-color: #fff;
}

.nf-error {
  color: #e53935;
  font-size: 14px;
  margin-top: 5px;
}

.nf-form-cont .nf-next-button,
.nf-form-cont .nf-submit{
  background-color: #E53935;
  color: #fff;
  font-weight: bold;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nf-form-cont .nf-next-button:hover,
.nf-form-cont .nf-submit:hover {
  background-color: #2a8cbf;
}

/* Adjust form layout spacing */
.nf-form-fields-required,
.nf-after-field,
.nf-before-form-content {
  display: none; /* Hides the 'Fields marked * are required' and other extras */
}

.nf-field {
  margin-bottom: 25px;
}

#footer-info {
  color: #ffffff !important;
}

#footer-info a {
  color: #ffffff !important;
  text-decoration: underline !important;
}

#footer-info a:hover {
  color: #8BC34A !important; /* Optional: hover color */
}

.single-post .et_pb_title_container h1 {
  display: none !important;
}

.single-post .et_pb_title_container {
  margin: 0;
  padding: 0;
}

/* --- Blog Post Styling --- */

/* Page Title (h1) */
.single-post h1,
.et_pb_post h1 {
  font-size: 3rem;
  color: #333;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

/* Subheadings (h2) */
.single-post h2 {
  font-size: 2rem;
  color: #E53935;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #E53935;
  padding-bottom: 10px;
}

/* Smaller headings (h3) */
.single-post h3 {
  font-size: 1.5rem;
  color: #8BC34A;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Paragraph text */
.single-post p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 20px;
}

/* Links */
.single-post a {
  color: #8BC34A;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.single-post a:hover {
  color: #E53935;
}

/* Blockquotes */
.single-post blockquote {
  font-style: italic;
  padding: 20px;
  background-color: #f9f9f9;
  border-left: 5px solid #8BC34A;
  margin: 20px 0;
  color: #555;
}

/* Lists */
.single-post ul,
.single-post ol {
  margin-left: 30px;
  margin-bottom: 20px;
  color: #444;
}

.single-post li {
  margin-bottom: 10px;
}

/* Images */
.single-post img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
}

.post-featured-image {
  margin-bottom: 30px;
  text-align: center;
}

.post-featured-image img {
  max-width: 30%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.post-title {
  font-size: 2.5em;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

.post-meta {
  text-align: center;
  color: #999;
  font-size: 0.9em;
  margin-bottom: 30px;
}

/* Style for Privacy Policy (ID: 3) and Terms & Conditions (ID: 20445) */
.page-id-3 main,
.page-id-20445 main,
.page-id-3 .et_pb_post,
.page-id-20445 .et_pb_post,
.page-id-3 .et_pb_text,
.page-id-20445 .et_pb_text {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  font-size: 17px;
  line-height: 1.75;
  color: #333;
}

.page-id-3 h1,
.page-id-20445 h1,
.page-id-3 h2,
.page-id-20445 h2 {
  color: #222;
  font-weight: 600;
  margin-top: 1.5em;
}

.page-id-3 ul,
.page-id-20445 ul {
  padding-left: 20px;
  list-style-type: disc;
}

/* Link styles for legal pages */
.page-id-3 a,
.page-id-20445 a {
  color: #8fc93a; /* Wasabi green */
  text-decoration: underline;
}

.page-id-3 a:hover,
.page-id-20445 a:hover {
  color: #e63946; /* Vibrant red */
  text-decoration: none;
}

/* Remove sidebar on Privacy and Terms pages */
.page-id-3 #sidebar,
.page-id-20445 #sidebar {
  display: none;
}

.page-id-3 #left-area,
.page-id-20445 #left-area {
  width: 100% !important;
}

/* Remove the vertical divider (likely right border of content or left border of sidebar) */
.page-id-3 #main-content .container:before,
.page-id-20445 #main-content .container:before {
  display: none !important;
}

/* Some Divi layouts also apply a left border to the sidebar wrapper */
.page-id-3 #sidebar,
.page-id-20445 #sidebar {
  border-left: none !important;
}

/* Reset padding if necessary to prevent awkward space */
.page-id-3 #content-area,
.page-id-20445 #content-area {
  padding-right: 0 !important;
}

/* Mobile menu hamburger icon (three lines) */
.mobile_menu_bar:before {
  color: #8fc93a !important; /* Wasabi green */
}

/* On hover */
.mobile_menu_bar:hover:before {
  color: #e63946 !important; /* Vibrant red */
}
.et_mobile_menu {
	border-top: 3px solid #e63946;
}

/* Blog post title links */
.et_pb_blog_grid .et_pb_post h2 a {
  color: #8fc93a !important; /* Wasabi green */
  text-decoration: none;
}

.et_pb_blog_grid .et_pb_post h2 a:hover {
  color: #e63946 !important; /* Vibrant red */
  text-decoration: underline;
}

/* Meta info and read more links */
.et_pb_blog_grid .et_pb_post .post-meta,
.et_pb_blog_grid .et_pb_post .more-link {
  color: #8fc93a !important;
}

.et_pb_blog_grid .et_pb_post .more-link:hover {
  color: #e63946 !important;
}

/* Optional: adjust blog post heading */
.et_pb_blog_grid .et_pb_post h2 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
}
