/* HobbyIdeas layout fixes
   - Owl-carousel nav arrows for the homepage sub-sliders and the top menu
   - Unified pagination styling
*/

/* Homepage sub-sliders (.stries_slider).
   These carousels are initialised with nav:true but carry no .owl-theme
   class, so the owl prev/next buttons are unstyled. Match the top banner
   slider: round white buttons on the left/right, vertically centred,
   using the blue arrow PNGs. */
.stries_slider {
  position: relative;
}

.stries_slider .owl-nav button.owl-prev,
.stries_slider .owl-nav button.owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px 26px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  outline: 0;
}

.stries_slider .owl-nav button.owl-prev {
  left: 12px;
  background-image: url('../images/prev_btn.png');
}

.stries_slider .owl-nav button.owl-next {
  right: 12px;
  background-image: url('../images/next_btn.png');
}

.stries_slider .owl-nav button.owl-prev.disabled,
.stries_slider .owl-nav button.owl-next.disabled {
  opacity: 0.35;
  cursor: default;
}

/* Top menu carousel (.menuslide) — visible on every page. */
.menuslide .owl-carousel .owl-nav button.owl-prev,
.menuslide .owl-carousel .owl-nav button.owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  outline: 0;
}

.menuslide .owl-carousel .owl-nav button.owl-prev {
  left: 4px;
  background-image: url('../images/prev_btn.png');
}

.menuslide .owl-carousel .owl-nav button.owl-next {
  right: 4px;
  background-image: url('../images/next_btn.png');
}

.menuslide .owl-carousel .owl-nav button.owl-prev.disabled,
.menuslide .owl-carousel .owl-nav button.owl-next.disabled {
  display: none;
}

/* Pagination.
   the_posts_pagination() renders .navigation.pagination .nav-links .page-numbers;
   CPT archives render .hi-pagination .page-numbers via paginate_links().
   Make the blog pagination match the .hi-pagination look already in main.css. */
.navigation.pagination {
  display: block;
}

.navigation.pagination .nav-links {
  text-align: center;
  padding: 30px 0;
}

.navigation.pagination .nav-links .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #555;
  font-size: 14px;
  text-decoration: none;
  background: #fff;
}

.navigation.pagination .nav-links a.page-numbers:hover,
.hi-pagination a.page-numbers:hover {
  border-color: #47bac1;
  color: #47bac1;
}

.navigation.pagination .nav-links .page-numbers.current {
  background: #47bac1;
  color: #fff;
  border-color: #47bac1;
}

/* story sliders: owl owns arrows now; hide dead slick .arrow buttons */
.stories .controls .arrows{display:none;}

/* --- Mobile / layout fixes --- */

/* Single post: .wrap has no horizontal padding, but Bootstrap .row uses
   margin:-15px to cancel container padding. Restore the standard gutters so
   the centered .col-lg-8 sits true-center instead of 15px left. */
.hi-single .row {
  margin-left: 0;
  margin-right: 0;
}

/* Blog + archive pagination. the_posts_pagination() here renders .nav-links
   directly inside .hi-grid (no .navigation.pagination wrapper), so it falls
   into the grid as a bare inline block. Pull it out to full width and style
   the page numbers to match the .hi-pagination look. */
.hi-grid .nav-links {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 0;
}

.hi-grid .nav-links .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #555;
  font-size: 14px;
  text-decoration: none;
  background: #fff;
}

.hi-grid .nav-links a.page-numbers:hover {
  border-color: #47bac1;
  color: #47bac1;
}

.hi-grid .nav-links .page-numbers.current {
  background: #47bac1;
  color: #fff;
  border-color: #47bac1;
}
/* Single post: style.css global reset floats every div (`div { float:left }`),
   which defeats .hi-single's `margin:0 auto` and pins it left. Un-float it. */
.hi-single {
  float: none;
}
