/* ==========================================================================
   The Noor Pursuit Grant — landing page
   ========================================================================== */

.page-grant .page-content {
    background-color: #E2D6C4;
}

.grant-page-hero {
    position: relative;
    padding: clamp(48px, 6vw, 88px) 0 clamp(28px, 3.5vw, 40px);
    text-align: center;
    overflow: hidden;
}

.grant-page-hero::before {
    content: '';
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    width: min(520px, 90vw);
    height: 190px;
    background: radial-gradient(ellipse at center, rgba(245, 81, 28, 0.2) 0%, transparent 72%);
    pointer-events: none;
}

.grant-page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
}

.grant-page-hero__eyebrow {
    font-family: var(--font-nav);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #757575;
    margin-bottom: clamp(16px, 2vw, 24px);
}

.grant-page-hero__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(34px, 4.8vw, 68px);
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #181818;
    margin-bottom: clamp(14px, 1.8vw, 20px);
}

.grant-page-hero__title-line {
    display: block;
}

.grant-page-hero__tagline {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(16px, 1.35vw, 22px);
    line-height: 1.55;
    color: #181818;
    margin-bottom: clamp(18px, 2.2vw, 24px);
}

.grant-page-hero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 44px;
    padding: 0 18px;
    background-color: #F5511C;
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: var(--btn-shadow);
}

.grant-page-body {
    padding-bottom: clamp(64px, 8vw, 100px);
}

.grant-page-intro {
    padding: clamp(28px, 3.5vw, 44px) 0;
    border-top: 1px solid rgba(245, 81, 28, 0.42);
}

.grant-page-intro__inner {
    max-width: 760px;
    margin: 0 auto;
}

.grant-page-intro__subtitle {
    font-family: var(--font-nav);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #757575;
    margin-bottom: 10px;
}

.grant-page-intro__title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 400;
    line-height: 1.08;
    text-transform: uppercase;
    color: #181818;
    margin-bottom: clamp(18px, 2.2vw, 26px);
}

.grant-page-intro__text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.85;
    letter-spacing: 0.02em;
    color: #5A5A5A;
    margin-bottom: 1.15em;
}

.grant-page-intro__text:last-child {
    margin-bottom: 0;
}

.grant-page-details {
    padding: clamp(28px, 3.5vw, 44px) 0;
}

.grant-page-details__inner {
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(240, 235, 227, 0.55);
    border: 1px solid rgba(206, 196, 180, 0.55);
    border-top-left-radius: 24px;
    border-bottom-right-radius: 24px;
    padding: clamp(28px, 3.5vw, 40px);
}

.grant-page-details__header {
    text-align: center;
    margin-bottom: clamp(24px, 3vw, 32px);
}

.grant-page-details__eyebrow {
    font-family: var(--font-nav);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #757575;
    margin-bottom: 10px;
}

.grant-page-details__title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 400;
    line-height: 1.05;
    text-transform: uppercase;
    color: #181818;
}

.grant-page-details__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
}

.grant-page-details__item {
    background-color: rgba(255, 255, 255, 0.45);
    border: 1px solid #CEC4B4;
    border-top-left-radius: 14px;
    border-bottom-right-radius: 14px;
    padding: clamp(16px, 2vw, 20px);
}

.grant-page-details__label {
    font-family: var(--font-nav);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #757575;
    margin-bottom: 8px;
}

.grant-page-details__value {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.65;
    color: #181818;
}

.grant-page-question {
    padding: clamp(12px, 2vw, 20px) 0 clamp(28px, 3.5vw, 44px);
}

.grant-page-question__inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid rgba(245, 81, 28, 0.4);
    border-top-left-radius: 24px;
    border-bottom-right-radius: 24px;
    background-color: rgba(240, 235, 227, 0.45);
}

.grant-page-question__eyebrow {
    font-family: var(--font-nav);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #757575;
    margin-bottom: 12px;
}

.grant-page-question__text {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.35;
    color: #181818;
}

/* Timeline — mirrors scholarship timeline patterns */
.grant-page-timeline {
    padding: clamp(28px, 3.5vw, 44px) 0;
}

.grant-page-timeline__inner {
    max-width: 900px;
    margin: 0 auto;
}

.grant-page-timeline__header {
    text-align: center;
    margin-bottom: clamp(28px, 3.5vw, 40px);
}

.grant-page-timeline__eyebrow {
    font-family: var(--font-nav);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #757575;
    margin-bottom: 10px;
}

.grant-page-timeline__title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 3.8vw, 52px);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    color: #181818;
}

.grant-page-timeline__list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.grant-page-timeline__list::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(to bottom, #F5511C, rgba(245, 81, 28, 0.25));
}

.grant-page-timeline__item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: clamp(16px, 2vw, 24px);
    padding: clamp(14px, 1.8vw, 20px) 0;
}

.grant-page-timeline__marker {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
}

.grant-page-timeline__step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #F5511C;
    background-color: #F0EBE3;
    font-family: var(--font-nav);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #181818;
}

.grant-page-timeline__item--current .grant-page-timeline__step {
    background-color: #181818;
    border-color: #181818;
    color: #E2D6C4;
}

.grant-page-timeline__item--complete .grant-page-timeline__step {
    background-color: rgba(245, 81, 28, 0.18);
}

.grant-page-timeline__card {
    background-color: #F0EBE3;
    border: 1px solid #CEC4B4;
    border-top-left-radius: 16px;
    border-bottom-right-radius: 16px;
    padding: clamp(18px, 2vw, 24px);
}

.grant-page-timeline__item--current .grant-page-timeline__card {
    border-color: #F5511C;
}

.grant-page-timeline__label {
    font-family: var(--font-serif);
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 400;
    line-height: 1.15;
    text-transform: uppercase;
    color: #181818;
    margin-bottom: 8px;
}

.grant-page-timeline__detail {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 14px;
    line-height: 1.7;
    color: #5A5A5A;
}

/* Application form — reuses contact form visual language */
.grant-page-apply {
    padding: clamp(28px, 3.5vw, 48px) 0 0;
}

.grant-page-apply__inner {
    max-width: 640px;
    margin: 0 auto;
}

.grant-page-apply__header {
    text-align: center;
    margin-bottom: clamp(22px, 2.8vw, 30px);
}

.grant-page-apply__eyebrow {
    font-family: var(--font-nav);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #757575;
    margin-bottom: 10px;
}

.grant-page-apply__title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 400;
    line-height: 1.05;
    text-transform: uppercase;
    color: #181818;
    margin-bottom: 12px;
}

.grant-page-apply__lead {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.7;
    color: #5A5A5A;
}

.grant-page-apply__notice {
    margin-bottom: 20px;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    border-top-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.grant-page-apply__notice--success {
    color: #2F4A3A;
    background-color: rgba(210, 228, 214, 0.65);
    border: 1px solid rgba(95, 138, 108, 0.35);
}

.grant-page-apply__notice--error {
    color: #5C2E24;
    background-color: rgba(240, 214, 206, 0.65);
    border: 1px solid rgba(160, 88, 72, 0.35);
}

.grant-page-apply__notice--info {
    color: #3A342C;
    background-color: rgba(240, 235, 227, 0.85);
    border: 1px solid rgba(206, 196, 180, 0.75);
}

.grant-page-form__wrap {
    position: relative;
    padding: clamp(28px, 3.5vw, 40px);
}

.grant-page-form__bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/partnering/partnering-form-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.42;
    border-top-left-radius: 28px;
    border-bottom-right-radius: 28px;
    pointer-events: none;
}

.grant-page-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.2vw, 22px);
}

.grant-page-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grant-page-form__label {
    font-family: var(--font-nav);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #121212;
}

.grant-page-form__hint {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 13px;
    line-height: 1.55;
    color: #5A5A5A;
}

.grant-page-form__required {
    color: #181818;
}

.grant-page-form__optional {
    letter-spacing: 0.04em;
    text-transform: none;
    color: #757575;
}

.grant-page-form__input,
.grant-page-form__textarea {
    width: 100%;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.5;
    color: #121212;
    background-color: rgba(255, 255, 255, 0.72);
    border: 1px solid #CEC4B4;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.grant-page-form__input::placeholder,
.grant-page-form__textarea::placeholder {
    color: #757575;
    opacity: 1;
}

.grant-page-form__input:focus,
.grant-page-form__textarea:focus {
    outline: none;
    border-color: #F5511C;
    box-shadow: 0 0 0 3px rgba(245, 81, 28, 0.12);
}

.grant-page-form__textarea {
    resize: vertical;
    min-height: 150px;
}

.grant-page-form__textarea--short {
    min-height: 88px;
}

.grant-page-form__input.is-invalid,
.grant-page-form__textarea.is-invalid {
    border-color: #A05848;
    box-shadow: 0 0 0 3px rgba(160, 88, 72, 0.12);
}

.grant-page-form__error {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 13px;
    line-height: 1.45;
    color: #A05848;
}

.grant-page-form__wordcount {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 12px;
    color: #757575;
    text-align: right;
}

.grant-page-form__wordcount.is-over {
    color: #A05848;
}

.grant-page-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.grant-page-form__submit-wrap {
    padding-top: 8px;
    text-align: center;
}

.grant-page-form__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 48px;
    padding: 0 28px;
    background-color: #F5511C;
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: var(--btn-shadow);
}

.grant-page-form__btn:hover,
.grant-page-form__btn:focus-visible {
    background-color: var(--color-brand-hover, #D94415);
    color: #FFFFFF;
}

.grant-page-form__btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
    box-shadow: var(--btn-shadow);
}

.grant-page-apply__closed {
    text-align: center;
    padding: clamp(28px, 3.5vw, 40px);
    background-color: rgba(240, 235, 227, 0.7);
    border: 1px solid rgba(245, 81, 28, 0.35);
    border-top-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.grant-page-apply__closed-title {
    font-family: var(--font-serif);
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 400;
    text-transform: uppercase;
    color: #181818;
    margin-bottom: 12px;
}

.grant-page-apply__closed-text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.7;
    color: #5A5A5A;
    max-width: 28em;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .grant-page-details__grid {
        grid-template-columns: 1fr;
    }

    .grant-page-timeline__list::before {
        left: 19px;
    }

    .grant-page-timeline__item {
        grid-template-columns: 40px 1fr;
    }

    .grant-page-timeline__step {
        width: 40px;
        height: 40px;
        font-size: 10px;
    }
}
