/* Troubleshooting Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(rgba(15, 48, 87, 0.8), rgba(15, 48, 87, 0.9)), url('https://images.unsplash.com/photo-1586281380349-632531db7ed4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Troubleshooting Page Layout */
.troubleshooting-page {
    padding: 60px 0;
}

/* Search Section */
.search-section {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    text-align: center;
}

.search-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--dark-blue);
    font-size: 1.8rem;
}

.search-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.search-form button {
    padding: 14px 25px;
}

/* Issue Categories */
.issue-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.category-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.category-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.category-card h3 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.category-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.category-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-card ul li:last-child {
    border-bottom: none;
}

.category-card ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.category-card ul li a:hover {
    color: var(--primary-color);
}

.category-card .btn {
    margin-top: auto;
    align-self: center;
}

/* Troubleshooting Sections */
.troubleshooting-section {
    margin-bottom: 60px;
}

.troubleshooting-section h2 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

/* Issue Cards */
.issue-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.issue-header {
    background-color: var(--light-gray);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.issue-header h3 {
    margin: 0;
    color: var(--dark-blue);
    font-size: 1.4rem;
}

.printer-types {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
}

.issue-content {
    padding: 25px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
}

.issue-image {
    border-radius: 6px;
    overflow: hidden;
}

.issue-image img {
    width: 100%;
    height: auto;
    display: block;
}

.issue-description p {
    margin-top: 0;
    line-height: 1.6;
}

.solution-steps h4,
.prevention-tips h4 {
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.solution-steps ol,
.solution-steps ul {
    padding-left: 20px;
}

.solution-steps li {
    margin-bottom: 10px;
}

.solution-steps ul li {
    margin-bottom: 5px;
}

.prevention-tips {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.prevention-tips ul {
    padding-left: 20px;
}

.video-tutorial {
    padding: 0 25px 25px;
}

.video-tutorial h4 {
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.video-thumbnail {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.play-button:hover {
    background-color: var(--primary-color);
}

.play-button i {
    font-size: 1.4rem;
}

.quick-solution {
    padding: 20px 25px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.quick-solution h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.quick-solution p {
    margin-bottom: 15px;
}

/* Diagnostic Tool */
.diagnostic-tool {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 300px;
    overflow: hidden;
    margin-bottom: 60px;
}

.diagnostic-content {
    padding: 40px;
}

.diagnostic-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.diagnostic-content p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.diagnostic-content .btn {
    background-color: var(--white);
    color: var(--primary-color);
}

.diagnostic-content .btn:hover {
    background-color: #f0f0f0;
}

.diagnostic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Error Code Table */
.common-error-codes {
    margin-bottom: 60px;
}

.common-error-codes h2 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 25px;
}

.error-code-table {
    overflow-x: auto;
    margin-bottom: 20px;
}

.error-code-table table {
    width: 100%;
    border-collapse: collapse;
}

.error-code-table th {
    background-color: var(--dark-blue);
    color: var(--white);
    text-align: left;
    padding: 15px;
}

.error-code-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.error-code-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.error-code-table a {
    color: var(--primary-color);
    text-decoration: none;
}

.error-code-table a:hover {
    text-decoration: underline;
}

.view-more {
    text-align: center;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(45deg, var(--primary-color), #0088cc);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 0;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-content .btn {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 14px 30px;
    font-size: 1.1rem;
}

.cta-content .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .issue-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .issue-content {
        grid-template-columns: 1fr;
    }
    
    .diagnostic-tool {
        grid-template-columns: 1fr;
    }
    
    .diagnostic-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form button {
        width: 100%;
    }
    
    .issue-categories {
        grid-template-columns: 1fr;
    }
    
    .issue-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Info, Warning and Tip Boxes */
.info-box, .warning-box, .tip-box {
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid;
    border-radius: 4px;
}

.info-box {
    background-color: #e8f4fd;
    border-color: #4a9be6;
}

.warning-box {
    background-color: #fff6e6;
    border-color: #ffc107;
}

.tip-box {
    background-color: #e8f8ef;
    border-color: #28a745;
}

.info-box h4, .warning-box h4, .tip-box h4 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.info-box h4 i {
    color: #4a9be6;
}

.warning-box h4 i {
    color: #ffc107;
}

.tip-box h4 i {
    color: #28a745;
}