/* ============================================
   CONFIDENCEBUILDINGS.COM CUSTOM CSS
   Troubleshooting Blog Brand Colors
   ============================================ */

/* Global link colors */
a {
    color: #0d1f35;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #f0c040;
    text-decoration: underline;
}

/* Headings accent border */
h1, h2, h3 {
    color: #0d1f35;
}

h2 {
    border-left: 4px solid #f0c040;
    padding-left: 15px;
}

/* Button styling */
.button, 
.wp-block-button__link,
input[type="submit"] {
    background-color: #0d1f35;
    color: #f0c040;
    border-radius: 40px;
    padding: 12px 25px;
    border: 1px solid #f0c040;
    transition: all 0.3s ease;
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
    background-color: #f0c040;
    color: #0d1f35;
    cursor: pointer;
}

/* Code blocks styling */
pre, code {
    background-color: #0d1f35;
    color: #f0c040;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

/* Alert / Note boxes */
.alert-box,
.note-box,
.callout {
    background: #f0c04010;
    border-left: 4px solid #f0c040;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th {
    background-color: #0d1f35;
    color: #f0c040;
    padding: 12px;
    text-align: left;
}

td {
    border: 1px solid #ddd;
    padding: 10px;
}

/* Category and tag badges */
.category-badge,
.tag-badge {
    background: #f0c04020;
    color: #0d1f35;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    display: inline-block;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Mobile menu improvements */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .button, 
    .wp-block-button__link {
        display: inline-block;
        text-align: center;
    }
}

/* Reading progress bar (optional) */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: #f0c040;
    z-index: 9999;
    transition: width 0.2s ease;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0d1f35;
    color: #f0c040;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background: #f0c040;
    color: #0d1f35;
}