.page-section-with-title {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
}

.page-section-with-title .title-area {
    flex: 0 0 auto;
    position: sticky;
    top: 100px;
    z-index: 1;
    height: fit-content;
}

.page-section-with-title .section-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: left;
    font-size: 8rem;
    margin: 0;
    color: gray;
    font-weight: 900;
    white-space: nowrap;
}

/* Content area */
.page-section-with-title .content-area {
    flex: 1 1 auto;
    max-width: 100%;
    max-width: -webkit-fill-available;
    overflow: hidden;
}


/* editor fix */
.title-area textarea {
    background: transparent;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    line-height: 1;
    overflow: hidden !important;
    resize: none;
    display: inline-block;
    box-sizing: content-box;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .page-section-with-title {
        flex-direction: column;
    }

    .page-section-with-title .section-title {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 4rem;
        margin-bottom: 1rem;
        white-space: normal;
    }

    .page-section-with-title .title-area {
        position: static;
    }
}
