.breadcrumb-container {
    width: 100%;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e1e4e8;
    padding: 12px 0;
    position: sticky;
    top: 70px; /* Height of the header */
    z-index: 999;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* The breadcrumb list itself */
.resources-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 15px;
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Vertically center items */
    white-space: nowrap; /* Prevent wrapping on small screens */
    overflow-x: auto; /* Allow horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    -ms-overflow-style: none;  /* Hide scrollbar on IE/Edge */
    scrollbar-width: none; /* Hide scrollbar on Firefox */
    box-sizing: border-box;
}

/* Hide scrollbar on Webkit browsers (Chrome, Safari) */
.resources-breadcrumb::-webkit-scrollbar {
    display: none;
}

/* Styling for individual breadcrumb items (links and the current page span) */
.resources-breadcrumb > * {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* Styling for breadcrumb links */
.resources-breadcrumb a {
    color: #0366d6;
    font-weight: 500;
    transition: color 0.2s ease;
}

.resources-breadcrumb a:hover {
    text-decoration: underline;
    color: #005cc5;
}

/* Styling for the current page (last item, typically a span) */
.resources-breadcrumb > *:last-child {
    color: #24292e;
    font-weight: 600; /* Make the current page title slightly bolder */
    cursor: default;
}

/* Separator styling using a robust selector */
.resources-breadcrumb > *:not(:last-child)::after {
    content: '›';
    margin: 0 0.6em;
    color: #6a737d;
    font-size: 1.2em; /* Make the separator slightly larger */
    line-height: 1;
}

/* Mobile responsive styles */
@media (max-width: 767px) {
    .breadcrumb-container {
        top: 60px; /* Adjust for smaller mobile header */
        padding: 10px 0;
    }
    
    .resources-breadcrumb {
        padding: 0 15px;
        font-size: 14px;
    }
}
/* --- End of Breadcrumb Styles --- */


/* Add margin to main content to account for sticky breadcrumb */
main {
    padding-top: 20px;
}

/* Section spacing in resources */
.tools-section,
.examples-section {
    margin-bottom: 4rem;
}

/* Modernized Tool Card Styles */
.tool-card {
    display: flex; /* Use flexbox for layout */
    align-items: flex-start; /* Align items to the top */
    gap: 1.5rem; /* Space between icon and content */
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.tool-card-icon {
    flex-shrink: 0; /* Prevent icon from shrinking */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef; /* Lighter, more neutral background for the icon area */
    border-radius: 8px;
    font-size: 1.8rem; /* Placeholder for icon font size */
    color: #0366d6; /* Icon color, consistent with links */
}

.tool-card-content {
    flex-grow: 1; /* Allow content to take remaining space */
}

.tool-card-content h2 {
    color: #2c3e50;
    margin-top: 0; /* Remove top margin as icon provides visual spacing */
    margin-bottom: 1rem;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.tool-card p {
    color: #555e68;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tool-card .tool-prerequisites {
    background-color: #f8f9fa; /* Slightly different background for prerequisites */
    border-left: 4px solid #0366d6; /* Accent border */
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 4px 4px 0;
}

.tool-card .tool-prerequisites h3 {
    margin-top: 0;
    font-size: 1rem;
    color: #24292e;
}

.tool-card .tool-prerequisites ul {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.tool-card .tool-prerequisites li {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.3rem;
}

.tool-card .btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    margin-top: 1rem;
}

.tool-card .btn:hover {
    background-color: #2980b9;
    text-decoration: none;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease-in-out 0.1s;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox.active img {
    transform: scale(1);
    opacity: 1;
}

/* Example card styles */
.example-image-container {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.example-image-container:hover {
    transform: scale(1.02);
}

.example-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.example-info {
    padding: 1.5rem;
}

.example-title {
    margin: 0 0 0.5rem 0;
    color: #24292e;
    font-size: 1.1rem;
}

.example-description {
    margin: 0 0 1rem 0;
    color: #586069;
    font-size: 0.95rem;
    line-height: 1.5;
}

.example-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #586069;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-group label {
    font-weight: 500;
    color: #24292e;
}

.filter-group select {
    padding: 0.4rem 0.8rem;
    border: 1px solid #d1d5da;
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.9rem;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 0;
    color: #586069;
    font-size: 1.1rem;
}

.examples-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.example-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}