.main-header {
    position: relative;
    min-height: 60vh;
    background-image: url("../images/header-bg.35b1e58847aa.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

/* Subtle divider between homepage sections */
.section-divider {
    width: 100%;
    height: 1px;
    margin: 3rem auto;
    border: 0;
    background-image: linear-gradient(
        to right,
        transparent,
        var(--divider-strong) 15%,
        var(--divider-strong) 85%,
        transparent
    );
    opacity: 1;
}

/* Blog Post Detail */
.post-content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.post-content blockquote {
    border-left: 4px solid var(--accent-blue);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* Timeline / Milestones */
.timeline-horizontal-wrapper {
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
}

.timeline-track {
    display: flex;
    align-items: flex-start;
    white-space: nowrap;
}

.timeline-item {
    --timeline-badge-size: 48px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.timeline-card-wrapper {
    width: 300px;
    position: relative;
    padding-top: calc(var(--timeline-badge-size) + 0.85rem);
}

.timeline-logo-badge {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--timeline-badge-size);
    height: var(--timeline-badge-size);
    margin-left: calc(var(--timeline-badge-size) / -2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: var(--text-on-gradient);
    border: 2px solid var(--bg-primary);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.timeline-date {
    display: block;
    line-height: 1.35;
    white-space: normal;
}

.timeline-logo-badge i {
    font-size: 1.25rem;
    line-height: 1;
}

.timeline-logo-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.timeline-card {
    margin-top: 0.25rem;
}

.timeline-connector {
    width: 64px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-connector-line {
    width: 100%;
    height: 2px;
    background: var(--border-color);
}

.timeline-connector-node {
    position: absolute;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 0 2px var(--bg-primary);
}

/* Featured latest blog post */
.featured-post-image {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
    object-position: 50% 20%;
    border-top-left-radius: var(--bs-card-border-radius, 0.375rem);
    border-bottom-left-radius: var(--bs-card-border-radius, 0.375rem);
}

.featured-post-text {
    max-width: 60ch;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-track {
        white-space: normal;
    }

    .timeline-card-wrapper {
        width: 280px;
    }

    .timeline-connector {
        width: 40px;
    }

    .featured-post-image {
        max-height: 220px;
        border-top-right-radius: var(--bs-card-border-radius, 0.375rem);
        border-bottom-left-radius: 0;
    }
}

.credly-badge-grid {
  display: flex;
  flex-wrap: wrap; /* Allows badges to wrap to the next line on smaller screens */
  gap: 2rem;      /* Controls the spacing between cards (adjust as needed) */
  justify-content: center; /* Centers the badges horizontally (optional) */
}