:root {
    --scholarship-ink: #17213c;
    --scholarship-muted: #697386;
    --scholarship-blue: #2367b1;
    --scholarship-blue-dark: #16477e;
    --scholarship-teal: #39b7b2;
    --scholarship-line: #e5eaf0;
    --scholarship-bg: #f6f9fc;
    --scholarship-white: #fff
}

.scholarships-page {
    color: var(--scholarship-ink);
    font-family: Montserrat, Arial, sans-serif;
    background: #fff
}

.scholarship-hero {
    overflow: hidden;
    background: linear-gradient(110deg, #f3f8ff 0%, #f7fbff 58%, #eaf7f8 100%);
    position: relative
}

.scholarship-hero-inner {
    max-width: 1180px;
    margin: auto;
    min-height: 350px;
    padding: 70px 28px 62px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 30px
}

.scholarship-eyebrow {
    margin: 0 0 13px;
    color: var(--scholarship-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px
}

.scholarship-hero h1 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.12;
    letter-spacing: -1.6px;
    margin: 0;
    max-width: 650px;
    font-weight: 700;
    color: #17213c
}

.scholarship-hero h1 span {
    color: var(--scholarship-blue)
}

.scholarship-hero-text {
    max-width: 580px;
    color: #56647b;
    font-size: 15px;
    line-height: 1.85;
    margin: 20px 0 24px
}

.scholarship-hero-link {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    padding: 13px 20px;
    border-radius: 7px;
    text-decoration: none;
    background: var(--scholarship-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 20px #2367b126
}

.scholarship-hero-link:hover {
    background: var(--scholarship-blue-dark);
    color: #fff
}

.scholarship-hero-art {
    height: 245px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center
}

.hero-art-orbit {
    position: absolute;
    border: 1px solid #a9d6e0;
    border-radius: 50%;
    transform: rotate(-20deg)
}

.orbit-one {
    width: 340px;
    height: 180px
}

.orbit-two {
    width: 270px;
    height: 220px;
    transform: rotate(38deg);
    border-color: #c7d7f0
}

.hero-art-card {
    width: 178px;
    height: 202px;
    background: linear-gradient(145deg, #226bb8, #173d79);
    border-radius: 18px;
    box-shadow: 0 22px 40px #153e7333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transform: rotate(7deg);
    color: #fff
}

.hero-art-cap {
    font-size: 42px;
    color: #92e3dc
}

.hero-art-label {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 1.5px;
    text-align: center
}

.hero-art-star {
    font-size: 28px;
    color: #9fe4de
}

.hero-art-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--scholarship-teal)
}

.dot-one {
    width: 12px;
    height: 12px;
    top: 26px;
    left: 26%
}

.dot-two {
    width: 18px;
    height: 18px;
    right: 13%;
    top: 42px;
    background: #a3bff0
}

.dot-three {
    width: 9px;
    height: 9px;
    bottom: 24px;
    right: 22%
}

.scholarship-content {
    max-width: 1180px;
    margin: auto;
    padding: 60px 28px 70px
}

.scholarship-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px
}

.scholarship-section-heading h2 {
    font-size: clamp(26px, 3vw, 35px);
    line-height: 1.2;
    margin: 0 0 10px;
    color: var(--scholarship-ink);
    letter-spacing: -.6px
}

.scholarship-section-intro {
    font-size: 14px;
    line-height: 1.7;
    color: var(--scholarship-muted);
    margin: 0
}

.scholarship-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 95px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #edf7fb;
    color: var(--scholarship-blue)
}

.scholarship-count strong {
    font-size: 25px;
    line-height: 1.1
}

.scholarship-count span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-top: 5px
}

.scholarship-filters {
    display: grid;
    grid-template-columns: minmax(230px, 1.7fr) repeat(3, minmax(140px, 1fr)) auto;
    gap: 12px;
    align-items: end;
    background: #fff;
    border: 1px solid var(--scholarship-line);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 7px 24px #17213c08;
    margin-bottom: 26px
}

.scholarship-search-wrap {
    position: relative;
    display: block
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    line-height: 1;
    color: #75839a
}

.scholarship-search-wrap input,
.filter-control select {
    height: 46px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dce3ec;
    border-radius: 7px;
    background: #fff;
    color: var(--scholarship-ink);
    font-family: inherit;
    font-size: 12px;
    outline: none
}

.scholarship-search-wrap input {
    padding: 0 12px 0 42px
}

.scholarship-search-wrap input:focus,
.filter-control select:focus {
    border-color: var(--scholarship-blue);
    box-shadow: 0 0 0 3px #2367b11a
}

.filter-control {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.filter-control span {
    font-size: 13.5px;
    color: #647087;
    font-weight: 700
}

.filter-control select {
    padding: 0 10px
}

.clear-filters {
    border: 0;
    background: transparent;
    color: var(--scholarship-blue);
    font-family: inherit;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    padding: 13px 6px
}

.clear-filters:hover {
    text-decoration: underline
}

.scholarship-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px
}

.scholarship-card {
    border: 1px solid var(--scholarship-line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    /* display: grid; */
    grid-template-columns: 145px minmax(0, 1fr);
    min-height: 260px;
    box-shadow: 0 5px 22px #17213c07;
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 10px 8px 10px 0 rgba(0, 0, 0, 0.18);
}

.scholarship-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px #17213c13
}

.scholarship-card-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(145deg, #e3f2fa, #d8e5f8 55%, #e7f5f2);
    min-height: 100%
}

.scholarship-card:nth-child(4n+2) .scholarship-card-visual {
    background: linear-gradient(145deg, #f1f0e8, #d8e6dd)
}

.scholarship-card:nth-child(4n+3) .scholarship-card-visual {
    background: linear-gradient(145deg, #e8e5fa, #dce6f8)
}

.scholarship-card:nth-child(4n+4) .scholarship-card-visual {
    background: linear-gradient(145deg, #f7e9df, #e9e3f4)
}

.scholarship-card-monogram {
    width: 76px;
    height: 76px;
    border: 1px solid #ffffffa6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #245d91;
    background: #ffffff8c;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1px
}

.scholarship-location {
    position: absolute;
    bottom: 10px;
    left: 8px;
    right: 8px;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    color: #34516a;
    background: #ffffffc9;
    border-radius: 5px;
    padding: 6px 4px
}
.scholarship-location-belowtitle {
    font-size: 11px;
    font-weight: 700;
    color: #34516a;
    border-radius: 5px;
    padding: 0px 0px 10px 0px
}

.scholarship-card-body {
    padding: 19px 18px 15px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #a1f4e5;
    height: stretch;
}

.scholarship-card-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    color: #6c7b91;
    text-transform: uppercase;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .6px
}

.scholarship-arrow {
    font-size: 18px;
    color: #8b9bb0
}

.scholarship-card h3 {
    font-size: 19px;
    line-height: 1.35;
    margin: 9px 0 5px 0px;
    color: #2367b1;
    font-weight: 600
}

.scholarship-card-summary {
    font-size: 13px;
    line-height: 1.7;
    color: #000;
    margin: 0 0 12px
}

.scholarship-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.scholarship-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    padding: 5px 7px;
    background: #edf6fc;
    color: #2367a8;
    font-size: 9px;
    font-weight: 700
}

.scholarship-suitable {
    font-size: 12.5px;
    line-height: 1.6;
    color: #000;
    margin: 13px 0 14px
}

.scholarship-suitable strong {
    color: #293650
}

.scholarship-card-footer {
    margin-top: auto;
    border-top: 1px solid #edf0f4;
    padding-top: 12px
}

.scholarship-detail-button {
    border: 0;
    background: transparent;
    color: var(--scholarship-blue);
    padding: 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer
}

.scholarship-detail-button span {
    margin-left: 5px
}

.scholarship-detail-button:hover {
    text-decoration: underline
}

.scholarship-disclaimer {
    margin: 26px 0 0;
    padding: 13px 16px;
    border-left: 3px solid #6fcac5;
    background: #f5fbfb;
    color: #68788a;
    font-size: 11px;
    line-height: 1.7
}

.scholarship-loading,
.scholarship-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 55px 20px;
    border: 1px dashed #d8e1eb;
    border-radius: 12px;
    color: #6a778a
}

.scholarship-empty h3 {
    margin: 10px 0;
    color: var(--scholarship-ink)
}

.scholarship-empty p {
    font-size: 13px
}

.empty-icon {
    font-size: 35px;
    color: #8aa2bd
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.scholarship-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px
}

.scholarship-modal.is-open {
    display: flex
}

.scholarship-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 25, 45, .64);
    backdrop-filter: blur(3px)
}

.scholarship-modal-panel {
    position: relative;
    z-index: 1;
    width: min(650px, 100%);
    max-height: min(86vh, 900px);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 34px 36px 30px;
    box-shadow: 0 25px 80px #06152d4d;
    animation: modalIn .18s ease-out
}

.scholarship-modal-close {
    position: absolute;
    right: 15px;
    top: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f0f4f8;
    color: #31425b;
    font-size: 26px;
    line-height: 1;
    cursor: pointer
}

.scholarship-modal-panel h2 {
    font-size: 29px;
    line-height: 1.25;
    color: var(--scholarship-ink);
    margin: 0 40px 6px 0
}

.modal-location {
    color: #758198;
    font-size: 12px;
    margin: 0 0 24px
}

.modal-section {
    margin: 22px 0
}

.modal-section h3 {
    font-size: 13px;
    margin: 0 0 8px;
    color: #26354e
}

.modal-section p,
.modal-highlight p {
    font-size: 12px;
    line-height: 1.8;
    color: #5f6b7f;
    margin: 0
}

.modal-highlight {
    padding: 16px 18px;
    border-radius: 10px;
    background: #f0f8fc;
    border-left: 3px solid var(--scholarship-teal)
}

.modal-highlight-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #2367a8;
    margin-bottom: 8px
}

.scholarship-field-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px
}

.scholarship-field-chip {
    padding: 6px 9px;
    border: 1px solid #dfe8f0;
    border-radius: 5px;
    color: #56647b;
    font-size: 10px
}

.modal-actions {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--scholarship-line)
}

.scholarship-primary-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 17px;
    background: var(--scholarship-blue);
    border-radius: 7px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700
}

.scholarship-primary-link:hover {
    background: var(--scholarship-blue-dark);
    color: #fff
}

.modal-actions>p {
    font-size: 10px;
    line-height: 1.7;
    color: #7c8797;
    margin: 12px 0 0
}

.modal-open {
    overflow: hidden
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.99)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

@media(max-width:1050px) {
    .scholarship-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .scholarship-search-wrap {
        grid-column: 1/-1
    }

    .clear-filters {
        justify-self: start
    }

    .scholarship-results {
        grid-template-columns: 1fr 1fr
    }

    .scholarship-card {
        grid-template-columns: 115px minmax(0, 1fr)
    }
}

@media(max-width:700px) {
    .scholarship-hero-inner {
        grid-template-columns: 1fr;
        padding: 46px 22px 36px;
        min-height: 0
    }

    .scholarship-hero-art {
        height: 180px;
        grid-row: 1
    }

    .hero-art-card {
        width: 125px;
        height: 145px
    }

    .hero-art-cap {
        font-size: 30px
    }

    .hero-art-label {
        font-size: 11px
    }

    .orbit-one {
        width: 270px;
        height: 140px
    }

    .orbit-two {
        width: 220px;
        height: 175px
    }

    .scholarship-hero h1 {
        font-size: 35px;
        letter-spacing: -.8px
    }

    .scholarship-hero-text {
        font-size: 13px
    }

    .scholarship-content {
        padding: 42px 16px 48px
    }

    .scholarship-section-heading {
        align-items: start
    }

    .scholarship-count {
        min-width: 68px;
        padding: 25px
    }

    .scholarship-section-heading h2 {
        font-size: 26px
    }

    .scholarship-section-intro {
        font-size: 12px
    }

    .scholarship-filters {
        grid-template-columns: 1fr 1fr;
        padding: 12px;
        gap: 10px
    }

    .scholarship-search-wrap {
        grid-column: 1/-1
    }

    .scholarship-results {
        grid-template-columns: 1fr;
        gap: 15px
    }

    .scholarship-card {
        grid-template-columns: 105px minmax(0, 1fr);
        min-height: 0
    }

    .scholarship-card-body {
        padding: 15px 13px;
        background: #a1f4e5
    }

    .scholarship-card h3 {
        font-size: 16px
    }

    .scholarship-card-summary {
        font-size: 11px
    }

    .scholarship-card-monogram {
        width: 58px;
        height: 58px;
        font-size: 20px
    }

    .scholarship-modal {
        padding: 12px
    }

    .scholarship-modal-panel {
        padding: 30px 20px 22px;
        border-radius: 13px
    }

    .scholarship-modal-panel h2 {
        font-size: 23px
    }

    .scholarship-location {
        font-size: 8px
    }

    .scholarship-suitable {
        font-size: 10px
    }
}

@media(max-width:390px) {
    .scholarship-card {
        grid-template-columns: 1fr
    }

    .scholarship-card-visual {
        min-height: 105px
    }

    .scholarship-card-monogram {
        width: 55px;
        height: 55px
    }

    .scholarship-location {
        left: auto;
        right: 8px;
        bottom: 8px;
        width: max-content
    }

    .scholarship-filters {
        grid-template-columns: 1fr
    }

    .scholarship-search-wrap {
        grid-column: auto
    }
}
.deadline-filter {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 14px 0;
}

.deadline-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  user-select: none;
}

.deadline-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-dot {
  width: 16px;
  height: 16px;
  border: 2px solid #777;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.deadline-radio input:checked + .radio-dot {
  border-color: #1769c2;
}

.deadline-radio input:checked + .radio-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1769c2;
}

.deadline-radio:hover .radio-dot {
  border-color: #1769c2;
}

.deadline-radio input:focus-visible + .radio-dot {
  outline: 2px solid rgba(23, 105, 194, 0.3);
  outline-offset: 2px;
}


.deadline-red {
  background-color: #ffdddd;
  color: #d00000;
  border: 1px solid #d00000;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  font-weight: 600;
}

.deadline-yellow {
  background-color: #ffd445;
  color: #856404;
  border: 1px solid #ffc107;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  font-weight: 600;
}
.deadline-red-passed {
  background-color: #ffdddd;
  color: #d00000;
  border: 1px solid #d00000;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  font-weight: 600;
  text-decoration: line-through;
}

