/**
 * Tech Repair Templates Styles
 */

/* Common Styles */
.tech-repair-single-issue,
.tech-repair-single-device,
.tech-repair-archive-header {
    margin-bottom: 30px;
}

.tech-repair-label {
    font-weight: 600;
    margin-right: 5px;
}

/* Archive Header */
.tech-repair-archive-header {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 30px;
    display: none;
}

.tech-repair-archive-title {
    margin-top: 0;
    margin-bottom: 15px;
}

.tech-repair-archive-description p:last-child {
    margin-bottom: 0;
}

/* Device Meta */
.tech-repair-device-meta, .tech-repair-issue-meta {
    margin-bottom: 20px;
    font-size: 17px;
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.tech-repair-model,
.tech-repair-year,
.tech-repair-difficulty,
.tech-repair-time,
.tech-repair-device-categories,
.tech-repair-issue-types {
    margin-bottom: 10px;
}

/* Difficulty Rating */
.tech-repair-difficulty-icons {
    display: inline-block;
}

.tech-repair-difficulty-active {
    color: #007bff;
}

.tech-repair-difficulty-inactive {
    color: #e0e0e0;
}

.tech-repair-difficulty .fa-wrench {
    margin-right: 2px;
}

.tech-repair-difficulty-text {
    font-size: 0.9em;
    color: #fff;
    opacity: 0.9;
    margin-left: 5px;
}

/* Archive Item Difficulty */
.tech-repair-archive-item .tech-repair-difficulty {
    margin-top: 10px;
}

.tech-repair-archive-item .tech-repair-difficulty .fa {
    font-size: 0.9em;
}

/* Pricing Table */
.tech-repair-pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.tech-repair-pricing-table th,
.tech-repair-pricing-table td {
    padding: 12px 15px;
    border: 1px solid #e9ecef;
    text-align: left;
}

.tech-repair-pricing-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.tech-repair-pricing-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Grids */
.tech-repair-devices-grid,
.tech-repair-issues-grid,
.tech-repair-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tech-entry-title{
    margin-bottom: 30px;
    font-size: 2.4em;
}

.tech-repair-issues h2 , .tech-repair-compatible-devices h2, .tech-repair-devices h2{
    padding-bottom: 25px;
    font-size: 2em;
    margin: 0;
}

.tech-repair-compatible-devices h2{
     font-size: 1.7em;
}

.tech-repair-device-issues h3{
   padding-bottom: 25px;
    font-size: 2em;
}

.tech-repair-compatible-devices h3 , .tech-repair-pricing h3{
    margin-top: 0;
    font-size: 1.4em;
    padding-bottom: 15px;
}

.tech-repair-pricing h3{
    padding-top: 30px;
}

.tech-entry-content{
    border: 1px solid #eee;
    padding: 20px 40px;
}


.tech-repair-compatible-devices{
    border: 1px solid #eee;
    padding: 40px;
    margin-top: -5px;
    background: #fff;
}

.tech-repair-issue-title a{
    color: #222;
}

/* Cards */
.tech-repair-device-card,
.tech-repair-issue-card,
.tech-repair-subcategory-card {
    background-color: #fff;
    border-radius: 0;
    padding: 25px;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-repair-device-card:hover,
.tech-repair-issue-card:hover,
.tech-repair-subcategory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tech-repair-device-thumbnail {
    margin-bottom: 15px;
}

.tech-repair-device-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.tech-repair-device-title,
.tech-repair-issue-title,
.tech-repair-subcategory-title {
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.4;
    font-size: 22px;
}

.tech-repair-device-excerpt,
.tech-repair-issue-excerpt,
.tech-repair-subcategory-description {
    margin-bottom: 15px;
    color: #6c757d;
}

/* Links */
.tech-repair-device-link,
.tech-repair-issue-link,
.tech-repair-subcategory-link {
    display: inline-block;
    color: #222;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    border-bottom: 1px solid;
}



/* Lists */
.tech-repair-devices-list,
.tech-repair-related-list,
.tech-repair-categories-list,
.tech-repair-issue-types-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tech-repair-devices-list, 
.tech-repair-inner-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
    /* Стили для скроллбара */
    scrollbar-width: thin;
    scrollbar-color: #ddd #f5f5f5;
}

/* Стили для скроллбара в WebKit браузерах (Chrome, Safari) */
.tech-repair-devices-list::-webkit-scrollbar,
.tech-repair-inner-tabs::-webkit-scrollbar {
    width: 8px;
}

.tech-repair-devices-list::-webkit-scrollbar-track,
.tech-repair-inner-tabs::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.tech-repair-devices-list::-webkit-scrollbar-thumb,
.tech-repair-inner-tabs::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 4px;
    border: 2px solid #f5f5f5;
}

.tech-repair-devices-list::-webkit-scrollbar-thumb:hover,
.tech-repair-inner-tabs::-webkit-scrollbar-thumb:hover {
    background-color: #ccc;
}

.tech-repair-devices-list li,
.tech-repair-related-list li,
.tech-repair-categories-list li,
.tech-repair-issue-types-list li {
    border-bottom: 1px solid #e9ecef;
}

.tech-repair-devices-list li a,
.tech-repair-related-list li a,
.tech-repair-categories-list li a,
.tech-repair-issue-types-list li a {
    display: block;
    padding: 10px 0;
    color: #495057;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tech-repair-devices-list li a:hover,
.tech-repair-related-list li a:hover,
.tech-repair-categories-list li a:hover,
.tech-repair-issue-types-list li a:hover {
    color: #007bff;
}

.tech-repair-categories-list li.current-cat a,
.tech-repair-issue-types-list li.current-type a {
    color: #007bff;
    font-weight: 600;
}

/* Search Container */
.tech-repair-search-container {
    background-color: #fff;
    border-radius: 0;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #eee;
    margin-top: 35px;
}

.tech-repair-search-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.tech-repair-search-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
}

.tech-repair-search-description p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Search Box */
.tech-repair-search-box {
    background-color: #2D363E;
    border-radius: 0;
    padding: 35px 35px 25px 35px;
    color: #fff;
}




.tech-repair-search-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.tech-repair-search-info i {
    color: #007bff;
    margin-right: 15px;
}

.tech-repair-search-text h3 {
    margin: 2px 0 8px 0;
    font-size: 22px;
    color: #fff;
}

.tech-repair-search-text p {
    margin: 0;
    color: #fff;
}

.tech-repair-search-form {
    position: relative;
    width: 100%;
}

.tech-repair-search-input-wrap {
    display: flex;
    position: relative;
}

.tech-repair-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e9ecef;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) inset;
}

.tech-repair-search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.tech-repair-search-submit {
    padding: 12px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 600;
}

.tech-repair-search-submit:hover {
    background-color: #0069d9;
}

.tech-repair-search-help {
    margin-top: 10px;
    font-size: 13px;
    color: #fff;
    text-align: right;
}

/* Archive Header (hidden) */
.tech-repair-archive-header {
    display: none;
}

/* Sidebar */
.tech-repair-sidebar {
    margin-bottom: 30px;
}

.tech-repair-sidebar .tech-repair-widget  , .tech-repair-sidebar .widget ,.tech-repair-sidebar  .tech-repair-issue-types ,.tech-repair-sidebar   .tech-repair-categories {
    background-color: #fff;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.tech-repair-sidebar h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

/* Comments */
.comment-respond {
    background-color: #fff;
    border-radius: 0;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid #eee;
}

.comment-reply-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.comment-form-comment label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.form-submit input[type="submit"] {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.form-submit input[type="submit"]:hover {
    background-color: #0069d9;
}

/* Issue Type Archive */
.tech-repair-issue-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

@media (min-width: 992px) {
    .tech-repair-issue-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .tech-repair-issue-types-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tech-repair-issue-type-card {
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eee;
}

.tech-repair-issue-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.tech-repair-issue-type-image {
    height: 150px;
    overflow: hidden;
}

.tech-repair-issue-type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tech-repair-issue-type-card:hover .tech-repair-issue-type-image img {
    transform: scale(1.05);
}

.tech-repair-issue-type-icon {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #ddd;
}

.tech-repair-issue-type-icon i {
    font-size: 3em;
}

.tech-repair-issue-type-no-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #ddd;
    overflow: hidden;
    position: relative;
}

.tech-repair-issue-type-no-image-text {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    color: #ddd;
    text-transform: uppercase;
}

.tech-repair-issue-type-content {
    padding: 20px;
}

.tech-repair-issue-type-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}

.tech-repair-issue-type-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tech-repair-issue-type-title a:hover {
    color: #007bff;
}

.tech-repair-issue-type-description {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 0.9em;
    line-height: 1.5;
}

.tech-repair-issue-type-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.tech-repair-issue-type-count {
    color: #6c757d;
    font-size: 0.9em;
}

.tech-repair-issue-type-link {
    color: #222;
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    transition: color 0.2s ease;
    border-bottom: 1px solid;
    text-transform: uppercase;
}



.tech-repair-no-results {
    background-color: #f8f9fa;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Breadcrumbs */
.tech-repair-breadcrumbs {
    margin-bottom: 20px;
    padding: 10px 0;
    font-size: 14px;
    color: #6c757d;
}

.tech-repair-breadcrumbs a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
    color: inherit !important;
}

.tech-repair-breadcrumbs a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.tech-repair-breadcrumbs span {
    color: #333;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .tech-repair-devices-grid,
    .tech-repair-issues-grid,
    .tech-repair-subcategories-grid {
        grid-template-columns: 1fr;
    }
}

/* Category Header Image */
.tech-repair-category-header-image {
    margin-bottom: 20px;
    text-align: center;
}

.tech-repair-category-header-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Subcategory Images */
.tech-repair-subcategory-image {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
}

.tech-repair-subcategory-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.tech-repair-subcategory-image img:hover {
    transform: scale(1.05);
}

/* Device Categories Grid */
.tech-repair-device-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.tech-repair-device-category-card {
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.tech-repair-device-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tech-repair-device-category-image {
    height: 280px;
    overflow: hidden;
}

.tech-repair-device-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tech-repair-device-category-card:hover .tech-repair-device-category-image img {
    transform: scale(1.05);
}

.tech-repair-device-category-icon {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #ddd;
    font-size: 2.5em;
    font-weight: bold;
}

.tech-repair-device-category-content {
    padding: 20px;
}

.tech-repair-device-category-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.tech-repair-device-category-title a {
    color: #333;
    text-decoration: none;
}

.tech-repair-device-category-title a:hover {
    color: #f44336;
}

.tech-repair-device-category-description {
    margin-bottom: 15px;
    color: #666;
    font-size: 1.2em;
}

.tech-repair-device-category-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.tech-repair-device-category-count {
    font-size: 14px;
    color: #666;
    background-color: #f8f9fa;
    padding: 5px 20px;
    border-radius: 0;
}

.tech-repair-device-category-link {
    color: #222;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
    border-bottom: 1px solid;
    text-transform: uppercase;

}



/* Статическая линия подчеркивания */
.tech-repair-device-category-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #ddd; /* Цвет фона подчеркивания */
}

/* Градиентная линия */
.tech-repair-device-category-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(to right, #f2480c, #f2480c);
  transition: width 0.5s ease;
  z-index: 1;
}

/* При наведении линия появляется */
.tech-repair-device-category-link:hover::after {
  width: 100%;
}



        

/* Devices Grid */
.tech-repair-devices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.col-md-12 .tech-repair-devices-grid {
    grid-template-columns: repeat(3, 1fr);
}


.tech-repair-device-card {
border: 1px solid #eee;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tech-repair-device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tech-repair-device-image {
    height: 160px;
    overflow: hidden;
}

.tech-repair-device-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tech-repair-device-card:hover .tech-repair-device-image img {
    transform: scale(1.05);
}

.tech-repair-device-icon {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    background-color: #f8f9fa;
    color: #ddd;
}

.tech-repair-device-content {
    padding: 25px;
}

.tech-repair-device-title {
    margin-top: 15px;
    margin-bottom: 0;
    font-size: 1.5em;
}

.tech-repair-device-title a {
    color: #333;
    text-decoration: none;
}

.tech-repair-device-title a:hover {
    color: #f44336;
}

.tech-repair-device-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.85em;
    margin-top: 0;
}

.tech-repair-device-model,
.tech-repair-device-year {
    background-color: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
}

.tech-repair-label {
    font-weight: 600;
    margin-right: 5px;
}

.tech-repair-device-excerpt {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.tech-repair-device-excerpt p {
    margin: 0;
}

.tech-repair-device-link {
    display: inline-block;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: color 0.3s ease;
    border-bottom: 1px solid;
    text-transform: uppercase;
}



.tech-repair-section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5f5f5;
    color: #333;
}


.tech-entry-header {
    background: #2D363E;
    padding: 14px;
    margin-bottom: 20px;
    margin-top: 10px;
    border-top: 2px solid #eee;
    color: #fff;
}


.tech-entry-header *{
    margin-bottom: 0;
}


.tech-entry-header a{
    color: #fff;
}


.tech-repair-order-button{
    width: 100%;
    text-transform: uppercase;
}


.col-sticky{
    position: sticky;
    top: 50px;

}



.tech-entry-content h1{
    font-size: 1.7em;
}

.tech-entry-content h2{
    font-size: 1.6em;
}
.tech-entry-content h3{
    font-size: 1.5em;
}
.tech-entry-content h4{
    font-size: 1.4em;
}
.tech-entry-content h5{
    font-size: 1.3em;
}
.tech-entry-content h6{
    font-size: 1.2em;
}

/* No Image Containers */
.tech-repair-category-header-noimage {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tech-repair-category-header-text {
    font-size: 2.5em;
    font-weight: bold;
    color: #ddd;
    text-align: center;
}

.tech-repair-subcategory-no-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #ddd;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.tech-repair-subcategory-no-image-text {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    color: #ddd;
    text-transform: uppercase;
}

.tech-repair-subcategory-no-image a {
    font-size: 1.8em;
    font-weight: bold;
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.tech-repair-subcategory-no-image a:hover {
    color: #ccc;
    background-color: #f0f0f0;
}

.tech-repair-device-category-icon {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #ddd;
    font-size: 2.5em;
    font-weight: bold;
}

.tech-repair-device-icon {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #ddd;
    font-size: 2em;
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .tech-repair-devices-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .tech-repair-device-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-repair-devices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tech-repair-device-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-repair-devices-grid {
        grid-template-columns: 1fr;
    }
}



body .tech-repair-view-all-products {
    text-align: center !important;
    margin-top: 10px !important;
    border-top: 1px solid #eee;
    padding-top: 30px;
}


body .tech-repair-view-all-link {
    width: 100%;
    padding: 12px !important;
}
