/*
 * %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 *
 * Template Name: Sog Sewa HTML Template   
 * Template URI:  
 * Description:  
 * Author: dahalrojan
 * Author URI: https://dahalrojan.com
 * Version: 1.2
 *
 * %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 */
:root {
    --button-color: #008080;
    --primary-color: #232f3e;
    --price-color: #ee4b2b;
}

.tm-heroslider-images {
    overflow: hidden;
}
.tm-products-slider,
.tm-services-slider {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}
.tm-products-slider .col,
.tm-services-slider .col {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.tm-product,
.tm-service.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.tm-product-top {
    flex-shrink: 0;
}
.tm-product-bottom {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.tm-brandlogo-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
.tm-brandlogo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}
.tm-brandlogo img {
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.tm-services-area .slick-next {
    right: -50px;
}

.tm-services-area .slick-prev {
    left: -40px;
}

/* Hide number input arrows for all browsers */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

/* Make only active product rating stars yellow */
.tm-ratingbox .is-active .ion-ios-star,
.tm-ratingbox .is-active .ion-ios-star-half {
    color: #ffc107 !important;
}

/* Modern Service Card Styles */
.modern-service-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1.5px 4px rgba(0, 0, 0, 0.03);
    transition: transform 0.18s, box-shadow 0.18s;
    overflow: hidden;
    background: #fff;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.modern-service-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.06);
}
.service-img-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
    margin: 0;
    padding: 0;
    transition: transform 0.25s;
}
.modern-service-card:hover .service-img {
    transform: scale(1.06);
}
.badge-price {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #ff3c3c; /* Theme red color */
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.35em 0.85em;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(255, 60, 60, 0.13);
}
.star-rating i {
    color: #ffd700;
    font-size: 1.1em;
    margin-right: 1px;
}
.star-rating i.ion-ios-star-outline {
    opacity: 0.4;
}
.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333;
}
.truncate-3-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.service-card-link {
    text-decoration: none !important;
}

/* Category Card Hover Styles */
.category-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.category-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-count {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* GOOGLE OAUTH LOGIN */
.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: WHITE;
    background-image: none;
    border: 1px solid #747775;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #1f1f1f;
    cursor: pointer;
    font-family: "Roboto", arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color 0.218s, border-color 0.218s,
        box-shadow 0.218s;
    transition: background-color 0.218s, border-color 0.218s, box-shadow 0.218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
    height: 20px;
    margin-right: 12px;
    min-width: 20px;
    width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
    -webkit-align-items: center;
    align-items: center;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    height: 100%;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
    -webkit-flex-grow: 1;
    flex-grow: 1;
    font-family: "Roboto", arial, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
    -webkit-transition: opacity 0.218s;
    transition: opacity 0.218s;
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.gsi-material-button:disabled {
    cursor: default;
    background-color: #ffffff61;
    border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
    opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
    opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
    background-color: #303030;
    opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
    -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
        0 1px 3px 1px rgba(60, 64, 67, 0.15);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
        0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
    background-color: #303030;
    opacity: 8%;
}

.tm-header-logo {
    max-width: 120px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.widget-info-logo {
    max-width: 120px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.max-w-9 {
    max-width: 9%;
}

@media only screen and (max-width: 992px) {
    .max-w-9 {
        max-width: 50%;
    }
}
@media only screen and (max-width: 767px) {
    .max-w-9 {
        max-width: 25%;
    }
}

.modern-search-form {
    display: flex;
    align-items: center;
    height: 38px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 0px;
}

.modern-search-form .search-input {
    border: none;
    padding: 0 15px;
    height: 100%;
    flex-grow: 1;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.modern-search-form .search-input::placeholder {
    color: #888;
}

.modern-search-form .search-button {
    background-color: var(--button-color);
    color: #fff;
    border: none;
    height: 100%;
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.modern-search-form .search-button:hover {
    background-color: darken(var(--button-color), 10%); /* Darken on hover */
}

.modern-search-form .search-button i {
    font-size: 18px;
}