@font-face {
    font-family: 'OpenDyslexic';
    src: url('OpenDyslexic-Regular.woff2') format('woff2'), url('OpenDyslexic-Regular.woff') format('woff'), url('OpenDyslexic-Regular.ttf') format('truetype'), url('OpenDyslexic-Regular.svg#OpenDyslexic-Regular') format('svg'), url('OpenDyslexic-Regular.eot'); /* fallback */
    font-weight: normal;
    font-style: normal;
}

/* ===== Base layout ===== */

body {
    margin: 0;
    font-family: 'OpenDyslexic', Arial, Helvetica, sans-serif;
    background-color: #fffbe6;
    color: #222;
    padding-top: 0;              /* or adjust if you later use a fixed header */
}

/* Layout for all main content pages */
#maincontent {
    padding: 2rem 1rem;
}

/* Match the width and alignment of index.php content */
#maincontent .container {
    max-width: 900px;
    margin: 0 auto;
}

/* Headings style */
#maincontent h1,
#maincontent h2 {   
    text-align: center;
}

/* Body text and lists under headings */
#maincontent p,
#maincontent ul {
    text-align: left;
}

/* Extra: give some top margin so it clears any fixed/overlay elements if needed */
body {
    padding-top: 0;              /* or adjust if you later use a fixed header */
}

/* Left sidebar menu */

.sidebar {
    position: fixed;
    top: 25px; /* you can change this if you ever want the menu higher/lower */
    left: 8%;
    width: 240px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.17);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    padding: 30px 20px 40px;
    height: auto;
    z-index: 10;
}

.logo img {
    width: 150px;
    height: auto;
    margin-top: 10px;
    margin-bottom: 2px;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

    .nav-links li {
        margin: 0.15rem 0;
    }

    .nav-links a {
        text-decoration: none;
        color: #0645ad;
        font-size: 18px;
        font-weight: normal;
        transition: color 0.3s;
    }

        .nav-links a:hover {
            color: #0b0080;
            text-decoration: underline;
        }

.cta {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 16px;
    background-color: #ffa500;
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

    .cta:hover {
        background-color: #ff9500;
    }

/* ===== Main content area ===== */

.content {
    margin-left: 400px;
    margin-right: 8%;
    padding: 0px 40px 30px 40px; /* <-- 10px from very top */
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.main-container {
    background: #fffbe6;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0 auto;
    max-width: 1000px;
    box-shadow: none;
    position: relative;
    top: 0;
}

/* (global heading color removed) */

/* ===== Features / hero area ===== */

#features {
    padding: 0;
    background: transparent;
    text-align: center;
    margin-top: 5px;
}

/* #features h2 styling removed */

    #features p {
        text-align: left;
        margin: 0;
        font-weight: normal;
        font-size: 16px;
        margin-bottom: 1.5em;
    }

/* ===== User strip & buttons ===== */

.user-strip {
    text-align: center;
    margin-top: 5px;
    margin-bottom: 0px;
}

    .user-strip p {
        margin-top: 2px;
        background: #fff2cc;
        display: inline-block;
        padding: 0px 20px;
        border-radius: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        font-size: 18px;
        font-weight: bold;
    }

.user-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

    .user-buttons a {
        display: block;
        text-decoration: none;
        color: #333;
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 6px;
        padding: 8px 12px;
        width: 260px;
        text-align: center;
        font-weight: bold;
        transition: background 0.3s, color 0.3s;
    }

        .user-buttons a:hover {
            background: #ffefcc;
            color: #000;
        }

/* ===== Footer ===== */

footer {
    background: #fffbe6;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
    border-top: 1px solid #ccc;
}

/* ===== Benefits grid ===== */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    margin-top: 1rem;
}

.benefit-box {
    background: #fff2cc;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: 480px;
    transition: transform 0.2s ease;
}

    .benefit-box:hover {
        transform: translateY(-3px);
    }

    .benefit-box h3 {
        margin-top: 0;
        font-size: 1.2rem;
        color: #222;
    }

    .benefit-box p {
        font-size: 1rem;
        line-height: 1.5;
        margin-top: 0.5rem;
        text-align: justify; /* added */
    }

.videos-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.videocard {
    background: #fff2cc;
    padding: 1rem;
    border-radius: 10px;
}

/* Center the video and limit width to ~400px while keeping it responsive */
.videowrap {
    display: flex;
    justify-content: center;
}

.videowrap video {
    max-width: 400px;  /* target width */
    width: 100%;       /* scale down on smaller screens */
    height: auto;
    display: block;
}

.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #000;
    color: #fff;
    z-index: 1000;
    transform: translateY(-200%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Screen reader only text - visually hidden but accessible to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


