/*
 Theme Name:   Theratio Child
 Theme URI:    http://wpdemo.archiwp.com/theratio/
 Description:  Theratio Child Theme
 Author:       OceanThemes
 Author URI:   https://www.oceanthemes.site/
 Template:     theratio
 Version:      1.0.0
 Text Domain:  theratio-child
*/

/* ==========================================================================
   Custom styles migrated from parent theme
   ========================================================================== */

#site-footer .elementor-widget.elementor-widget-icon-list .elementor-icon-list-icon svg {
    margin: var(--e-icon-list-icon-margin, 0 calc(var(--e-icon-list-icon-size, 1em) * .25) 0 0);
}

/* Fix Gravity Forms checkboxes being styled like text inputs */
body .gform_wrapper input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: auto !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  padding: 0 !important;
  margin: 0 10px 0 0 !important;
  border: 1px solid #555 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  background: #000 !important;
  opacity: 1 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Align checkbox + label */
body .gform_wrapper .gfield_checkbox .gchoice {
  display: flex;
  align-items: center;
}

.gform-theme--framework input[type=checkbox]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *))::before {color: #FFFFFF00 !important;}
.gform-theme--framework input[type=checkbox]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)) { accent-color: #B48C74 !important;}

/* ==========================================================================
   Blog Page Filters Bar (Search & Category Dropdown)
   ========================================================================== */

.blog-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 45px;
  padding: 15px 0;
  border-bottom: 1px solid #eaeaea;
}

.blog-search-filter {
  flex: 1;
  min-width: 260px;
  max-width: 380px;
}

.blog-category-filter {
  min-width: 220px;
}

/* Category dropdown custom styling */
.post-categories-dropdown {
  width: 100%;
  height: 46px;
  padding: 0 18px;
  font-size: 14px;
  color: #1a1a1a;
  background-color: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 0;
  cursor: pointer;
  outline: none;
  appearance: auto;
  -webkit-appearance: auto;
  font-family: inherit;
  transition: all 0.3s ease;
}

.post-categories-dropdown:focus {
  border-color: #B48C74; /* Theme primary accent color */
}

.blog-grid .page-pagination {
    position: absolute;
    bottom: -30px;
    left: 50%;
    right: 50%;
    width: 100%;
    transform: translateX(-50%);
    max-width: 300px;
}

.related-posts{
  margin-bottom: 0 !important;
}

/* Responsive adjustments for filters */
@media (max-width: 767px) {
  .blog-filters-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .blog-search-filter,
  .blog-category-filter {
    max-width: 100%;
    width: 100%;
  }
}
