/* Global Imports */
@import url('inc/bootstrap-handler.css');
@import url('inc/ajax-search.css');
@import url('header.css');
@import url('section-animations.css');

/* Variables */
:root {
    --space: 120px;
    --title-margin: 60px;
    --border-color: #dee2e6;

    /* Backdrop Filters */
    --backdrop-background: rgba(255, 255, 255, 0.8);
    --backdrop-filter: saturate(180%) blur(20px);
    --dark-backdrop-background: rgba(0, 0, 0, 0.8);
    --dark-backdrop-filter: saturate(180%) blur(20px);

    /* Colors */
    --dark-container: #1b1b1b;
    --dark-container2: #1e1f20;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
    line-height: 1.4;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.nav-link {
    color: var(--primary-color);
    display: flex !important;
}

.nav-link:hover {
    color: inherit;
}

small {
    font-size: smaller !important;
}

.mw-sm {
    max-width: 1000px;
}

.breadcrumb-item a {
    color: var(--primary-color);
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-doa {
    background-color: var(--primary-color);
    color: white;
}

.btn-doa:hover {
    background-color: var(--primary-color);
    color: white;
    opacity: .9;
}

.btn-doa-outline {
    background-color: #f5f5f5;
    color: #212529 !important;
    border: 1px solid var(--bs-border-color-translucent);
}

.btn-doa-outline:hover,
.btn-doa-outline:focus,
.btn-doa-outline.active {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

.saturn-next,
.saturn-prev {
    padding: 8px 12px !important;
    border-radius: var(--b-radius, 12px);
    background-color: #f5f5f5 !important;
    color: #212529;
    transition: background 0.3s ease;
}

.saturn-next:hover,
.saturn-prev:hover {
    background-color: var(--primary-color, #007bff) !important;
    color: #fff !important;
}

/* Header & Footer */
header,
footer {
    background-color: var(--backdrop-background);
    backdrop-filter: var(--backdrop-filter);
    -webkit-backdrop-filter: var(--dark-backdrop-filter);
}

/* Layout */
.mini-container {
    max-width: 800px !important;
}

.sticky {
    position: sticky;
    top: 68px;
}

/* spacing */
section,
.vertical-space {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.vertical-space-inside {
    padding: var(--space) 0;
}

.s-title {
    margin-bottom: 60px;
}

.sub-title {
    font-weight: normal;
}

.sm-text {
    font-size: 14px;
}

.font-large {
    font-size: 72px;
}

.footer-widgets {
    margin: calc(var(--space) / 2) 0;
}

.footer-widgets img {
    height: 50px !important;
}

main section:first-child:not(:only-child) {
    margin-top: calc(var(--space) / 2) !important;
}

/* Overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9;
    display: none;
    transition: 0.7s;
}

/* Preloader */
#preloader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    margin-left: 20px;
    position: relative;
    cursor: pointer;
}

.user-profile img {
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
}

.user-profile .user-name {
    /* font-size: 14px; */
    font-weight: 700;
}

/* User Menu */
.user-menu {
    position: absolute;
    background-color: white;
    /* box-shadow: 0 0 16px rgba(0, 0, 0, 0.2); */
    left: -6px;
    top: 32px;
    z-index: 10;
    min-width: 225px;
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.user-profile:hover .user-menu,
.user-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.user-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-menu li {
    /* color: #242429; */
    font-size: 14px;
    text-transform: capitalize;
    padding: 10px 15px;
    font-weight: 500;
    display: block;
    border-bottom: 1px solid var(--bs-border-color);
    text-align: left;
    transition: background 0.2s ease-in-out;
}

.user-menu li:first-child {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.user-menu li:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.user-menu li:hover {
    background: #f8f9fa;
}

.user-menu li a:hover {
    color: inherit !important;
}

.user-menu li i {
    margin-right: 7px;
}

/* Page Styles */
.page-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    z-index: 0;
    text-align: center;
}

.banner-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    padding: calc(var(--space) / 2) 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    z-index: 0;
}

.banner-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.banner-bg h2 {
    font-weight: bold;
}

.banner-bg {
    font-size: 20px;
}

.single-hero {
    color: white;
    padding: var(--space) 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.single-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.single-hero .container {
    position: relative;
    z-index: 2;
}

.single-content {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.single-content img {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.single-content iframe {
    border-radius: var(--border-radius) !important;
    max-width: 100% !important;
}

.single-content a {
    color: var(--primary-color);
}

.single-content a:hover {
    text-decoration: underline;
}

/* Icons */
i {
    vertical-align: middle;
}

.r-360::before {
    animation: rotate360 0.7s ease forwards;
}

@keyframes rotate360 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Projects */
.hover-card {
    overflow: hidden;
}

.image-container {
    position: relative;
}

.image-container img {
    height: 180px;
    object-fit: cover;
}

.post-type-archive-portfolio .image-container img {
    object-fit: contain;
    padding: 30px;
}

.hover-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 15px;
}

.hover-card:hover .hover-overlay {
    opacity: 1;
}

.card-img-placeholder {
    width: 100%;
    height: 200px;
    background-color: #212529;
}

/* Hidden Elements */
.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* selection */
::-moz-selection {
    color: white;
    background: var(--primary-color);
}

::selection {
    color: white;
    background: var(--primary-color);
}

/* Footer */
.footer-widgets {
    margin: calc(var(--space) / 2) 0;
}

/* Miscellaneous */
.bigger-font {
    font-size: 1.2rem;
}

.group {
    margin-bottom: 10px;
}

.header-login {
    align-items: center;
    margin-left: 20px;
}

#dark-mode-toggle {
    border: 0;
    background-color: unset;
}

#dark-mode-toggle i::before {
    display: block;
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--bs-border-color);
    z-index: 0;
}

.stepper .step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.stepper .step .circle {
    width: 40px;
    height: 40px;
    background-color: #dee2e6;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    color: #495057;
    font-weight: bold;
    outline: 10px solid white;
}

.stepper .step.active .circle {
    background-color: var(--primary-color);
    color: #fff;
}

.stepper .step.active .step-title {
    font-weight: bold;
}

.stepper .step.completed .circle {
    position: relative;
}

.stepper .step.completed .circle:before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('/wp-content/themes/webrent-client/assets/img/check-circle.svg');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    right: -10px;
    top: -10px;
    filter: invert(56%) sepia(100%) saturate(500%) hue-rotate(90deg);
}

.stepper .step-title {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* end of stepper */

.wr-packages p {
    margin-bottom: 8px;
}

.wr-packages i {
    margin-right: 8px;
}

.img-invert {
    transition: 0.7s;
}

.step-section {
    margin-top: calc(var(--space) / 4);
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 20px;
}

.stepper-item {
    transition: all 0.3s ease;
    z-index: 1;
    border-radius: 25px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    background-color: #ffffff;
    border: 10px solid rgb(248, 249, 250);
}

.stepper-item.active {
    font-weight: bold;
    /*font-size: 1.2rem;*/
}

.stepper-item.completed {
    color: #66ba66;
}


.stepper-item.completed:after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('/wp-content/themes/webrent-client/assets/img/check-circle.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 8px;
    vertical-align: middle;
    filter: invert(60%) sepia(61%) saturate(335%) hue-rotate(71deg) brightness(95%) contrast(92%);
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: multiply;
    position: relative;
    z-index: 0;
}

.parallax>.container {
    position: relative;
    z-index: 2;
    padding: 100px 15px;
    /* adjust spacing */
    text-align: center;
    color: #fff;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

textarea {
    max-height: 500px;
}

tbody,
td,
tfoot,
th,
thead,
tr {
    border-color: var(--bs-border-color) !important;
}

.rounded {
    border-radius: var(--border-radius) !important;
}

.trans {
    transition: 0.7s;
}

.category-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 12px;
    font-weight: bold;
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.saturn-masonry {
    transition: height 0.3s ease;
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.saturn-masonry .grid-item {
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform;
    padding: 0 !important;
    box-sizing: border-box;
}

.post-type-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 12px;
    font-weight: bold;
}