/* ============================================
   ULSE PAPYRUS — Auto Height, Realistic Mode
============================================ */

.ulse-papyrus {
    position: relative;
    margin: 40px auto;
    max-width: 1100px;
    overflow: visible; /* ensure background pseudo-element not clipped */
    z-index: 0; /* create stacking context so ::before sits behind content */

    /* Transparent base; single papyrus image handled via ::before */
    background: transparent;

    /* Text zone padding INSIDE the papyrus */
    padding: 140px 70px 120px;
    color: #3b2a1a;
    font-family: Georgia, serif;
    line-height: 1.85;

    /* Center inner flow */
    display: grid;
    place-items: center;
    text-align: center;
}

/* Single papyrus background layer */
.ulse-papyrus::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../img/papyrus2.webp');
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-position: top center;
    opacity: 1;
    pointer-events: none;
    z-index: -1; /* keep behind text */
}

/* Headings */
.ulse-papyrus h1,
.ulse-papyrus h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2b1c0e;
}

/* Paragraphs */
.ulse-papyrus p {
    margin-bottom: 18px;
    font-size: 19px;
}

/* Constrain text width inside the papyrus without shrinking the image */
.ulse-papyrus > * {
    max-width: 80%;
}
