/* Hero section with blackboard */


/* ==========================================================================
   2. HERO & BLACKBOARD
   - This section styles the large "blackboard" banner at the top of some pages.
   ========================================================================== */

.hero-blackboard {
    width: 100%;
    min-height: 280px; /* Keep strong visual presence while allowing content to fit. */
    height: auto;
    background-image: url('/assets/images/blackboard.jpg');
    background-repeat: no-repeat;
    background-position: center 46%;
    background-size: cover !important;
    background-color: #0f1412;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0.6rem 0.8rem 0.5rem;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.9); /* Creates a vignette effect. */
    overflow: hidden; /* Prevents content from spilling out. */
    margin-top: 0 !important;
    margin-bottom: 0.25rem;
}

.hero-blackboard .blackboard-content,
.hero-blackboard .typewriter-area {
    width: min(100%, 900px);
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
}


.hero-blackboard .typewriter-area {
    min-height: 0;
    margin-bottom: 0;
}


/* "Chalk" style text for headings on the blackboard. */
.chalk-text {
    font-family: 'Architects Daughter', cursive;
    color: rgba(227, 98, 98, 0.95); /* Off-white for a realistic chalk look. */
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 0.35rem;
    padding-top: 0 !important;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3), 0 0 10px rgba(255,255,255,0.1); /* Glow effect. */
    transform: rotate(-0.5deg); /* Slight rotation for a hand-written feel. */
}


/* "Chalk" style for body text on the blackboard. */
.chalk-body {
    font-family: 'Architects Daughter', cursive;
    color: rgba(230, 230, 230, 0.85);
    font-size: 1.4rem;
    white-space: normal;
    line-height: 1.4;
    margin-top: 0;
    max-width: 880px;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.2);
    letter-spacing: 0.5px;
}

.chalk-red {
   color: rgba(240, 144, 144, 0.85);
}

/* Area for the typewriter effect in the hero section. */
.typewriter-area {
    flex-grow: 1; /* Takes up all available middle space. */
    margin-top: 10px;
    min-height: 300px;
}


/* Responsive adjustments for the blackboard on smaller screens. */
@media screen and (max-width: 768px) {
    .hero-blackboard {
        background-position: center 42%;
        padding-top: 0.45rem;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .chalk-text {
        font-size: 1.4rem;
        line-height: 1.2;
        padding-top: 0px;
        padding-bottom: 0.1rem;
        margin-bottom: 0px;
    }

    .chalk-body {
        font-size: 1.2rem;
        line-height: 1.2;
        word-break: break-word; /* Prevents text overflow. */
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
        hyphens: auto; /* Allows for better word breaking on small screens. */
    }
}

