/*
	Theme Name: Autohub
    Theme URI: https://themeforest.net/user/gnodesign/portfolio/
    Description: Autohub is a Clean and Professional Automotive, Car Dealer & Rental WordPress Directory Theme. 
    Author: Gnodesign
	Author URI: https://themeforest.net/user/gnodesign/
    Version: 1.1.9
	License: ThemeForest
    License URI: https://themeforest.net/licenses
    Text Domain: autohub
    Domain Path: /lang/
*/


/*------------------------------------------------------------------

[Table of contents]

1.  DEFAULT TYPOGRAPHY
2.  GENERAL TAG STYLES
3.  ALIGNMENTS
4.  CAPTIONS
5.  GALLERIES
6.  WIDGETS

-------------------------------------------------------------------*/


/* --------------------------------------
    1. Default Typography
-------------------------------------- */

h1.logo {
    margin: 0;
}

.h1,
.h2,
.h3,
h1,
h2,
h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.h4,
.h5,
.h6,
h4,
h5,
h6 {
    margin: 10px 0;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #1f1f1f;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
    font-family: inherit;
}

a:hover h1,
a:hover h2,
a:hover h3,
a:hover h4,
a:hover h5,
a:hover h6 {
    color: inherit;
}

a,
a h1,
a h2,
a h3,
a h4,
a h5,
a h6 {
    -webkit-transition: all .2s ease;
    -moz-transition: all .2s ease;
    -ms-transition: all .2s ease;
    -o-transition: all .2s ease;
    transition: all .2s ease;
}

a,
a:hover {
    color: var(--autohub-primary);
}

a:hover,
a:focus,
a:visited {
    text-decoration: none !important;
    outline: none !important;
}

label {
    font-weight:  500;
}

p {
    margin-bottom: 1.7em;
    margin-top: 0;
}


/* --------------------------------------
    2. General Tag Styles
-------------------------------------- */

* {
    outline: none;
}

html,
body {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0 !important;
}

body {
    overflow-x: hidden;
    color: #948a99;
    background: var(--autohub-body-bg);
}

body.mfp-zoom-out-cur {
    overflow: hidden;
}

body > .wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--autohub-body-wrapper);
    overflow: hidden;
}

main,
section {
    position: relative;
}

a,
button,
input {
    outline: none !important;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="phone"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 10px 20px;
    color: #666;
    border: 1px solid #e3e3e3;
    height: auto;
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-box-shadow: 0 2px 5px rgba(0,0,0,.08);
    -moz-box-shadow: 0 2px 5px rgba(0,0,0,.08);
    box-shadow: 0 2px 5px rgba(0,0,0,.08);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration {
    -webkit-appearance: none;
}

select {
    background: #fff;
    background: linear-gradient(45deg, transparent 50%, #948a99 50%), linear-gradient(135deg, #948a99 50%, transparent 50%), #fff;
    background-position: calc(100% - 19px) calc(1em + 5px), calc(100% - 15px) calc(1em + 5px), 100% 0;
    background-size: 5px 5px, 5px 5px, 0;
    background-repeat: no-repeat;
}

textarea {
    max-width: 100%;
    min-height: 200px;
}

::-webkit-input-placeholder {
    opacity: 1;
    color: #948a99;
}

::-moz-placeholder {
    opacity: 1;
    color: #948a99;
}

:-ms-input-placeholder {
    opacity: 1;
    color: #948a99;
}

:-moz-placeholder {
    opacity: 1;
    color: #948a99;
}

::-webkit-file-upload-button {
    cursor: pointer;
}

ul {
    margin: 0;
}

li {
    margin-bottom: 5px;
}

img {
    max-width: 100%;
    height: auto;
    -moz-user-select: none;
    /* These user-select properties are inheritable, used to prevent text selection */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* From IE10 only */
    -webkit-user-drag: none;
    /* Prevents dragging of images/divs etc */
}

embed,
iframe,
object {
    max-width: 100%;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    border-width: 1px 0 0 1px;
}

caption,
td,
th {
    padding: 0;
    font-weight: normal;
    text-align: left;
}

table,
th,
td {
    border: 1px solid #e3e3e3;
}

th {
    border-width: 0 1px 1px 0;
    font-weight: 700;
}

td {
    border-width: 0 1px 1px 0;
}

th,
td {
    padding: 0.4375em;
}

dl {
    margin: 0 0 1.75em;
}

dt {
    font-weight: 700;
}

dd {
    margin: 0 0 1.75em;
}

blockquote:before {
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    position: relative;
    font-size: 35px;
    line-height: 35px;
    float: left;
    margin-right: 30px;
    color: var(--autohub-primary);
}

blockquote cite {
    font-weight: 600;
    color: #252525;
    margin-top: 10px;
    display: block;
}

hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid rgba(0,0,0,.1);
}

pre {
    font-size: 14px;
    margin: 20px 0;
    padding: 20px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Protected post - button */
form.post-password-form label {
    margin-right: 10px;
}

form.post-password-form input[type=submit] {
    position: relative;
    cursor: pointer;
    outline: none;
    background: var(--autohub-primary);
    color: #fff;
    min-width: 160px;
    text-align: center;
    border: 0;
    padding: 15px 25px;
    line-height: 1;
    z-index: 1;
    overflow: hidden;
    text-transform: capitalize;
    box-sizing: border-box;
    -webkit-border-radius: .25rem;
    -moz-border-radius: .25rem;
    border-radius: .25rem;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -ms-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

form.post-password-form input[type=submit]:hover {
    -webkit-transform: translate3d(0, -3px, 0);
    -moz-transform: translate3d(0, -3px, 0);
    -ms-transform: translate3d(0, -3px, 0);
    -o-transform: translate3d(0, -3px, 0);
    transform: translate3d(0, -3px, 0);
    -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
    -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
}

/* --------------------------------------
    3. Alignments
-------------------------------------- */
.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Gutenber Support for alignfull */
.alignfull {
    max-width: 100vw;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    text-align: center;
}

.alignfull img {
    width: 100%;
}

/* --------------------------------------
    4. Captions
-------------------------------------- */
.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text,
figure.image-right figcaption,
figure.image-left figcaption,
.wp-caption-text {
    background-color: #eee;
    padding: 10px 20px;
}

.wp-caption-text {
    background-color: #fff;
    margin: 0 !important;
}

/* --------------------------------------
    5. Galleries
-------------------------------------- */
.gallery {
    margin-left: -0.5em;
    margin-right: -0.5em;
}

.gallery:after {
    display: table;
    content: "";
    clear: both;
}

.gallery-item {
    margin: 0;
    float: left;
    padding: 5px;
    position: relative;
}

.gallery-item img {
    width: auto;
}

.gallery-columns-1 .gallery-item {
    width: 100%;
    float: none;
}

.gallery-columns-2 .gallery-item {
    width: 50%
}

.gallery-columns-3 .gallery-item {
    width: 33.3333%
}

.gallery-columns-4 .gallery-item {
    width: 25%
}

.gallery-columns-5 .gallery-item {
    width: 20%
}

.gallery-columns-6 .gallery-item {
    width: 16.6667%
}

.gallery-columns-7 .gallery-item {
    width: 14.2857%
}

.gallery-columns-8 .gallery-item {
    width: 12.5%
}

.gallery-columns-9 .gallery-item {
    width: 11.1111%
}

.gallery-columns-2 .gallery-item:nth-child(2n+1),
.gallery-columns-3 .gallery-item:nth-child(3n+1),
.gallery-columns-4 .gallery-item:nth-child(4n+1),
.gallery-columns-5 .gallery-item:nth-child(5n+1),
.gallery-columns-6 .gallery-item:nth-child(6n+1),
.gallery-columns-7 .gallery-item:nth-child(7n+1),
.gallery-columns-8 .gallery-item:nth-child(8n+1),
.gallery-columns-9 .gallery-item:nth-child(9n+1) {
    clear: left;
}

.gallery-item .gallery-caption {
    position: absolute;
    display: block;
    font-weight: 400;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    padding: 10px;
    font-size: 12px;
    max-height: 50%;
    text-align: left;
    opacity: 0;
    bottom: 5px;
    left: 5px;
    right: 5px;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* --------------------------------------
    6. Widgets
-------------------------------------- */

aside.widget {
    margin-top: 50px;
}

aside.widget:first-child {
    margin-top: 0;
}

aside.widget a {
    color: #252525;
}

aside.widget a:hover {
    color: var(--autohub-primary);
}

.widget .widget-title {
    margin: 0;
    padding-bottom: 20px;
}

.widget ul {
    padding: 0;
    list-style: none;
}

.widget_archive li,
.widget_categories li,
.widget_product_categories li,
.widget_recent_entries li,
.widget_recent_comments li,
.widget_pages li,
.widget_meta li {
    padding: 5px 0;
    margin: 0;
}

.widget_archive li a,
.widget_categories li a,
.widget_product_categories li a,
.widget_recent_entries a,
.widget_recent_entries li a,
.widget_recent_comments li a,
.widget_pages li a,
.widget_nav_menu li a,
.widget_nav_menu .menu ul > li > a,
.widget_meta li a {
    text-transform: capitalize;
}

.widget_archive li:last-child,
.widget_categories li:last-child,
.widget_product_categories li a:last-child,
.widget_recent_entries li:last-child,
.widget_recent_comments li:last-child,
.widget_pages li:last-child,
.widget_meta li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.widget_categories li ul,
.widget_pages li ul,
.widget_archive li ul,
.widget_nav_menu li ul {
    margin-left: 15px;
    margin-bottom:  5px;
}

.widget ul li li {
    padding-left: 1em;
}

/* Search Widget */
.autohub-main-search,
.widget_product_search .woocommerce-product-search {
    position: relative;
}

.autohub-main-search .search-submit,
.widget_product_search .woocommerce-product-search .shop-search-submit {
    position: absolute;
    top: 0px;
    right: 0;
    bottom: 0;
    padding: 0 15px;
    border: 0;
    border-radius: 0 3px 3px 0;
    background: var(--autohub-primary);
    color: #fff;
}

/* Recent Posts Widget */
.widget_recent_entries .widget-blog-post {
    clear: both;
    border: 0;
    padding: 0;
}

.widget_recent_entries .widget-blog-post .post-thumbnail {
    width: 65px;
    height: 65px;
    overflow: hidden;
    position: relative;
    float: left;
    margin: 0 20px 20px 0;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    -webkit-box-shadow: 0 5px 25px rgba(0, 0, 0, .1);
    -moz-box-shadow: 0 5px 25px rgba(0, 0, 0, .1);
    box-shadow: 0 5px 25px rgba(0, 0, 0, .1);
}

.widget_recent_entries .widget-blog-post .post-thumbnail img {
    max-width: none;
    width: auto;
    height: 100%;
    position: absolute;
    left: -50%;
    -webkit-transition: all .6s ease;
    -moz-transition: all .6s ease;
    -ms-transition: all .6s ease;
    -o-transition: all .6s ease;
    transition: all .6s ease;
}

.widget_recent_entries .widget-blog-post .post-thumbnail img.post-no-thumb {
    left: 0;
}

.widget_recent_entries .widget-blog-post .post-info {
    padding-top: 10px;
}

.widget_recent_entries .widget-blog-post .post-info a {
    display: block;
}

.widget_recent_entries .widget-blog-post .post-info span {
    font-style: italic;
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud a,
.widget_product_tag_cloud .tagcloud a {
    color: #252525;
    font-size: 14px !important;
    background: #fff;
    border: 1px solid #e3e3e3;
    padding: 7px 15px;
    line-height: 45px;
    text-transform: capitalize;
    margin-right: 5px;
    white-space: nowrap;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}

.widget_tag_cloud .tagcloud a:hover, 
.widget_product_tag_cloud .tagcloud a:hover {
    background: var(--autohub-primary);
    color: #fff !important;
    border: 1px solid transparent;
}

/* Calendar Widget */
.widget_calendar table#wp-calendar {
    width: 100%;
}

.widget_calendar table#wp-calendar caption {
    margin-bottom: 10px;
}

.widget_calendar table#wp-calendar th,
.widget_calendar table#wp-calendar td {
    text-align: center;
}

.widget_calendar table#wp-calendar th {
    color: #999;
}

.widget_calendar table#wp-calendar td {
    color: #777;
}