/* ============================================ */
/* TITLE BLOCK STYLES */
/* ============================================ */

.title-block {
    margin-bottom: 2rem;
}

/* Subtitle row with green line */
.title-subtitle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Left alignment (default) */
.title-subtitle.left {
    justify-content: flex-start;
}

/* Center alignment */
.title-subtitle.center {
    justify-content: center;
}

/* Right alignment */
.title-subtitle.right {
    justify-content: flex-end;
}

/* When centered, add line on both sides */
.title-subtitle.center .green-line:first-child {
    display: flex;
}

.title-subtitle.center .green-line:last-child {
    display: flex;
    width: 2.5rem;
    height: 2px;
    background: linear-gradient(90deg, #2f744c, #234d35);
}

/* Hide the second line by default */
.title-subtitle .green-line:last-child {
    display: none;
}

/* Show second line only when center alignment has both lines */
.title-subtitle.center {
    gap: 0.75rem;
}

.title-subtitle .green-line {
    width: 2.5rem;
    height: 2px;
    background: linear-gradient(90deg, #2f744c, #234d35);
    flex-shrink: 0;
}

.title-subtitle span {
    color: #2f744c;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Main title */
.title-block h2 {
    font-size: 2.25rem;
    color: hsl(215, 55%, 14%);
    margin-bottom: 1.5rem;
    line-height: 1.25;
    text-transform: unset !important;
}

/* Title alignment */
.title-block h2.left {
    text-align: left;
}

.title-block h2.center {
    text-align: center;
}

.title-block h2.right {
    text-align: right;
}

/* Italic title */
.title-block em {
    font-style: italic;
}

/* Responsive */
@media (min-width: 48rem) {
    .title-block h2 {
        font-size: 3rem;
    }
}
