/* Standard pages: title + content, optional side image, access gate form. */

.page-article { padding: 54px 0; }

.page-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: start;
}

.has-side-image .page-row { grid-template-columns: 1fr 1fr; }

.page-title { margin-bottom: 20px; }

.page-main .entry-content { font-size: 17px; }

.page-side-image img { width: 100%; }

/* Sub-heads on the scholarship pages are typed in blue by the client. */
.page-main .entry-content h3 { color: var(--blue); }

/* WPForms containers inherit no extra spacing from the theme. */
.page-main .wpforms-container { margin-top: 0; }
.page-main .wpforms-field-content { padding: 20px 20px 0; background: var(--light); }

/* ── Access gate form ── */
#access-gate-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 40px;
    background: #f7f9fb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    text-align: center;
}

#access-gate-form h1 { font-size: 26px; margin-bottom: 12px; }
#access-gate-form p { margin-bottom: 20px; }

#access-gate-form input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #d8dee6;
    font-size: 16px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#access-gate-form input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(2, 82, 138, .15);
}

#access-gate-form button {
    width: 100%;
    padding: 14px;
    background: var(--blue);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

#access-gate-form button:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
}

.gate-error { color: #b00020; font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .page-article { padding: 40px 0; }
    .has-side-image .page-row { grid-template-columns: 1fr; gap: 30px; }
    .page-side-image { max-width: 420px; }
    #access-gate-form { padding: 28px 20px; }
}
