* {
    box-sizing: border-box;
}

:root {
    --blue-50: #f7fcff;
    --blue-100: #edf8ff;
    --blue-150: #e2f3ff;
    --blue-200: #d3ecff;
    --blue-300: #b8dfff;
    --blue-400: #91caf1;
    --blue-500: #63b1e2;
    --blue-600: #3c92c9;
    --blue-700: #2875a8;
    --blue-800: #205e87;

    --navy: #2f526b;
    --navy-dark: #203e54;

    --text: #405f76;
    --muted: #7890a2;

    --white: #ffffff;
    --border: #d6eaf7;

    --green-50: #edfff7;
    --green-500: #4da982;

    --orange-50: #fff8e9;
    --orange-500: #c78c34;

    --red-50: #fff3f5;
    --red-500: #d56f7d;

    --shadow:
        0 10px 28px rgba(84, 151, 194, .10);

    --shadow-hover:
        0 17px 36px rgba(70, 145, 190, .15);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);

    background:
        linear-gradient(
            180deg,
            #eaf7ff 0,
            #f7fcff 300px,
            #f6fbff 100%
        );
}

a {
    color: var(--blue-700);
    text-decoration: none;
}

a:hover {
    color: var(--blue-600);
}


/* =========================================================
   HEADER
   ========================================================= */

.top {
    min-height: 64px;

    padding: 15px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: var(--navy);

    background:
        rgba(242, 250, 255, .95);

    border-bottom:
        1px solid rgba(184, 221, 245, .9);

    box-shadow:
        0 4px 20px rgba(80, 150, 195, .08);

    backdrop-filter: blur(12px);
}

.top strong {
    color: var(--navy-dark);

    font-size: 19px;
    letter-spacing: -.2px;
}

.top nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top a {
    margin: 0;

    padding: 8px 11px;

    color: var(--blue-700);

    border-radius: 9px;
}

.top a:hover {
    background: var(--blue-150);
}


/* =========================================================
   GENERAL LAYOUT
   ========================================================= */

.wrap {
    max-width: 1450px;

    margin: 24px auto;

    padding: 0 18px;
}

.layout {
    display: grid;

    grid-template-columns:
        300px minmax(0, 1fr);

    gap: 20px;

    align-items: start;
}

.card,
.item {
    background:
        rgba(255, 255, 255, .96);

    border:
        1px solid var(--border);

    border-radius: 17px;

    box-shadow: var(--shadow);
}

.card {
    padding: 18px;

    margin-bottom: 17px;
}

.muted {
    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   FORM ELEMENTS
   ========================================================= */

.input,
textarea,
select {
    width: 100%;

    padding: 11px 12px;

    color: var(--text);

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius: 11px;

    outline: none;
}

.input:focus,
textarea:focus,
select:focus {
    border-color: var(--blue-400);

    box-shadow:
        0 0 0 3px rgba(145, 202, 241, .18);
}

textarea {
    min-height: 130px;

    font-family: monospace;
}

select {
    cursor: pointer;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 10px 14px;

    color: #ffffff !important;

    background: var(--blue-500);

    border: 0;

    border-radius: 10px;

    font-size: 13px;
    font-weight: bold;

    cursor: pointer;

    box-shadow:
        0 5px 13px rgba(61, 148, 204, .18);

    transition:
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.btn:hover {
    color: #ffffff !important;

    background: var(--blue-600);

    transform: translateY(-1px);

    box-shadow:
        0 7px 15px rgba(61, 148, 204, .22);
}

.btn.gray {
    color: var(--blue-700) !important;

    background: var(--blue-100);

    box-shadow: none;
}

.btn.gray:hover {
    color: var(--blue-800) !important;

    background: var(--blue-200);
}

.btn.red {
    background: var(--red-500);
}


/* =========================================================
   FILTER SIDEBAR
   ========================================================= */

.filters {
    position: sticky;

    top: 15px;

    padding: 19px;
}

.filter-heading h3 {
    margin: 0 0 4px;

    color: var(--navy-dark);

    font-size: 18px;
}

.filter-heading p {
    margin: 0 0 15px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.45;
}

.search-input {
    margin-bottom: 12px;

    background: var(--blue-50);
}

.month-filter {
    margin-bottom: 12px;

    padding: 12px;

    background: var(--blue-50);

    border:
        1px solid var(--blue-150);

    border-radius: 12px;
}

.month-label {
    display: block;

    margin-bottom: 7px;

    color: var(--navy);

    font-size: 12px;
    font-weight: bold;
}

.month-fields {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 95px;

    gap: 7px;
}

.month-fields select {
    padding: 9px 10px;

    font-size: 12px;
}

.filters details {
    padding: 10px 0;

    border-top:
        1px solid var(--border);
}

.filters details:last-of-type {
    border-bottom:
        1px solid var(--border);
}

.filters summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    color: var(--navy);

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;

    user-select: none;
}

.summary-count {
    min-width: 25px;

    padding: 3px 7px;

    text-align: center;

    color: var(--blue-700);

    background: var(--blue-150);

    border-radius: 99px;

    font-size: 11px;
}

.checks {
    max-height: 230px;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 8px 4px 2px;
}

.quick {
    margin-bottom: 10px;

    padding: 10px;

    background: var(--blue-50);

    border-radius: 10px;
}

.quick label,
.checks label {
    display: flex;
    align-items: flex-start;
    gap: 7px;

    margin: 7px 0;

    font-size: 13px;
    line-height: 1.35;

    cursor: pointer;
}

.checks input,
.quick input {
    flex: 0 0 auto;

    margin-top: 2px;

    accent-color: var(--blue-500);
}

.all-option {
    margin-bottom: 9px !important;

    padding-bottom: 9px;

    color: var(--blue-700);

    border-bottom:
        1px dashed var(--border);

    font-weight: bold;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 15px;
}


/* =========================================================
   LISTING GRID
   ========================================================= */

.grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}

.item {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 100%;

    padding: 19px;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.item:hover {
    transform: translateY(-2px);

    border-color: var(--blue-300);

    box-shadow: var(--shadow-hover);
}

.admin-id {
    position: absolute;

    top: 10px;
    right: 12px;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   CARD COUNTRY
   ========================================================= */

.location-line {
    width: 100%;

    margin: 0 0 8px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.country-combined-link {
    width: fit-content;

    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;

    padding: 6px 10px;

    color: var(--blue-700);

    background: var(--blue-100);

    border:
        1px solid var(--blue-200);

    border-radius: 99px;

    font-size: 12px;
    font-weight: bold;

    transition:
        background .18s ease,
        border-color .18s ease;
}

.country-combined-link:hover {
    color: var(--blue-800);

    background: var(--blue-150);

    border-color: var(--blue-300);
}

.country-name {
    line-height: 1.25;
}

.country-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    min-width: 24px;
    height: 18px;

    line-height: 1;
}

.flag-image {
    display: block;

    width: 24px;
    height: 18px;

    object-fit: cover;

    border:
        1px solid rgba(62, 112, 145, .10);

    border-radius: 3px;

    box-shadow:
        0 1px 3px rgba(50, 90, 120, .18);
}

.world-icon {
    display: inline-block;

    font-size: 17px;

    line-height: 18px;
}


/* =========================================================
   CARD TITLE
   ========================================================= */

.scholarship-title {
    margin: 5px 0 8px;

    font-size: 17px;
    line-height: 1.4;
}

.scholarship-title a {
    color: var(--blue-800);

    font-weight: 700;

    transition: color .18s ease;
}

.scholarship-title a:hover {
    color: var(--blue-500);

    text-decoration: underline;
}

.provider {
    margin: 0 0 10px;

    line-height: 1.45;
}


/* =========================================================
   EDUCATION LINKS
   ========================================================= */

.meta-row {
    margin: 8px 0 12px;
}

.meta-label {
    display: block;

    margin-bottom: 6px;

    color: var(--muted);

    font-size: 11px;
    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: .5px;
}

.education-links {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;
}

.education-link {
    display: inline-block;

    padding: 5px 9px;

    color: var(--blue-700);

    background: var(--blue-50);

    border:
        1px solid var(--blue-200);

    border-radius: 99px;

    font-size: 12px;

    transition:
        background .18s ease,
        border-color .18s ease;
}

.education-link:hover {
    color: var(--blue-800);

    background: var(--blue-150);

    border-color: var(--blue-300);
}


/* =========================================================
   CARD PERIOD
   ========================================================= */

.period-box {
    display: grid;

    gap: 8px;

    margin-top: auto;

    padding: 11px;

    background:
        linear-gradient(
            135deg,
            var(--blue-50),
            #ffffff
        );

    border:
        1px solid var(--blue-150);

    border-radius: 12px;
}

.period-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.period-icon {
    width: 24px;
    min-width: 24px;
    height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--blue-100);

    border-radius: 7px;

    font-size: 13px;
}

.period-item div {
    min-width: 0;
}

.period-item strong {
    display: block;

    color: var(--navy);

    font-size: 12px;
    line-height: 1.35;
}

.period-label {
    display: block;

    margin-bottom: 2px;

    color: var(--muted);

    font-size: 10px;
    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: .4px;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 13px;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.resultbar {
    display: flex;
    justify-content: space-between;
}

.pagination {
    margin-top: 18px;

    text-align: center;
}

.pagination a,
.pagination strong {
    display: inline-block;

    margin: 2px;

    padding: 8px 11px;

    border:
        1px solid var(--border);

    border-radius: 9px;
}

.pagination a {
    color: var(--blue-700);

    background: var(--white);
}

.pagination a:hover {
    background: var(--blue-100);
}

.pagination strong {
    color: #ffffff;

    background: var(--blue-500);

    border-color: var(--blue-500);
}


/* =========================================================
   BACKEND FORM
   ========================================================= */

.form-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 14px;
}

.field {
    margin-bottom: 13px;
}

.field label {
    display: block;

    margin-bottom: 5px;

    color: var(--navy);

    font-size: 12px;
    font-weight: bold;
}

.notice {
    margin-bottom: 14px;

    padding: 11px;

    color: #30725a;

    background: var(--green-50);

    border:
        1px solid #bcebd7;

    border-radius: 10px;
}

.login {
    max-width: 380px;

    margin: 80px auto;
}

.danger {
    border-color: #f4c5cc;

    background: #fff8f9;
}


/* =========================================================
   DETAIL PAGE
   ========================================================= */

.detail-shell {
    max-width: 1240px;

    margin: 0 auto 40px;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 14px;

    color: var(--muted);

    font-size: 12px;
}

.detail-breadcrumb a {
    color: var(--blue-700);
}

.detail-breadcrumb span:last-child {
    overflow: hidden;

    max-width: 600px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   DETAIL HERO
   ========================================================= */

.detail-hero {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 310px;

    gap: 22px;

    margin-bottom: 22px;

    padding: 28px;

    overflow: hidden;

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            #2e789f 0%,
            #4da2cf 56%,
            #85c9eb 100%
        );

    border:
        1px solid rgba(255, 255, 255, .35);

    border-radius: 22px;

    box-shadow:
        0 18px 42px rgba(49, 125, 167, .20);
}

.detail-hero::before {
    content: "";

    position: absolute;

    top: -80px;
    right: -60px;

    width: 260px;
    height: 260px;

    background:
        rgba(255, 255, 255, .11);

    border-radius: 50%;
}

.detail-hero::after {
    content: "";

    position: absolute;

    bottom: -95px;
    left: 28%;

    width: 210px;
    height: 210px;

    background:
        rgba(255, 255, 255, .07);

    border-radius: 50%;
}

.detail-hero-content,
.detail-summary-card {
    position: relative;

    z-index: 1;
}

.detail-hero-content {
    align-self: center;
}

.detail-eyebrow {
    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 13px;

    padding: 7px 11px;

    color: #eefaff;

    background:
        rgba(255, 255, 255, .14);

    border:
        1px solid rgba(255, 255, 255, .22);

    border-radius: 99px;

    font-size: 12px;
    font-weight: bold;
}

.detail-eyebrow-icon {
    font-size: 15px;
}

.detail-hero h1 {
    max-width: 850px;

    margin: 0 0 11px;

    color: #ffffff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -.4px;
}

.detail-provider {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0 0 17px;

    color:
        rgba(255, 255, 255, .88);

    font-size: 14px;
}

.detail-provider-icon {
    font-size: 17px;
}

.detail-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 11px;

    color: #ffffff;

    background:
        rgba(255, 255, 255, .15);

    border:
        1px solid rgba(255, 255, 255, .25);

    border-radius: 99px;

    font-size: 12px;
    font-weight: bold;
}

.detail-tag:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, .24);
}

.detail-country-tag .country-flag {
    width: 22px;
    min-width: 22px;
    height: 16px;
}

.detail-country-tag .flag-image {
    width: 22px;
    height: 16px;
}


/* =========================================================
   DETAIL SUMMARY
   ========================================================= */

.detail-summary-card {
    align-self: start;

    padding: 18px;

    color: var(--text);

    background:
        rgba(255, 255, 255, .95);

    border:
        1px solid rgba(255, 255, 255, .72);

    border-radius: 16px;

    box-shadow:
        0 12px 28px rgba(32, 91, 122, .15);
}

.detail-summary-title {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 14px;

    padding-bottom: 11px;

    color: var(--navy-dark);

    border-bottom:
        1px solid var(--blue-150);
}

.detail-summary-title span {
    font-size: 18px;
}

.detail-summary-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 12px;
}

.summary-icon {
    width: 24px;

    text-align: center;

    font-size: 10px;
}

.detail-summary-row small {
    display: block;

    margin-bottom: 3px;

    color: var(--muted);

    font-size: 10px;
    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: .5px;
}

.detail-summary-row strong {
    display: block;

    color: var(--navy);

    font-size: 13px;
    line-height: 1.35;
}

.detail-primary-button {
    width: 100%;

    margin-top: 8px;

    background:
        linear-gradient(
            135deg,
            var(--blue-500),
            var(--blue-600)
        );
}


/* =========================================================
   DETAIL CONTENT GRID
   ========================================================= */

.detail-content-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 310px;

    gap: 22px;

    align-items: start;
}

.detail-main-column {
    min-width: 0;
}

.detail-side-column {
    position: sticky;

    top: 18px;

    display: grid;
    gap: 16px;
}

.detail-section {
    margin-bottom: 18px;

    padding: 23px;

    background:
        rgba(255, 255, 255, .97);

    border:
        1px solid var(--border);

    border-radius: 18px;

    box-shadow: var(--shadow);
}

.detail-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-bottom: 17px;
}

.detail-section-heading h2 {
    margin: 0 0 3px;

    color: var(--navy-dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 21px;
}

.detail-section-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.45;
}

.detail-section-icon {
    width: 39px;
    min-width: 39px;
    height: 39px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--blue-700);

    background: var(--blue-100);

    border:
        1px solid var(--blue-200);

    border-radius: 12px;

    font-size: 19px;
}


/* =========================================================
   DETAIL INFO GRID
   ========================================================= */

.detail-info-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 11px;
}

.detail-info-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    min-width: 0;

    padding: 13px;

    background:
        linear-gradient(
            135deg,
            var(--blue-50),
            #ffffff
        );

    border:
        1px solid var(--blue-150);

    border-radius: 13px;
}

.detail-info-icon {
    width: 30px;
    min-width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--blue-100);

    border-radius: 9px;

    font-size: 15px;
}

.detail-info-card > div {
    min-width: 0;
}

.detail-info-card small {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);

    font-size: 10px;
    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: .45px;
}

.detail-info-card strong,
.detail-info-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--navy);

    font-size: 13px;
    font-weight: bold;
    line-height: 1.45;

    overflow-wrap: anywhere;
}

.detail-info-card a:hover {
    color: var(--blue-600);

    text-decoration: underline;
}

.detail-inline-flag {
    display: inline-flex;
    align-items: center;
}

.detail-inline-flag .country-flag {
    width: 22px;
    min-width: 22px;
    height: 16px;
}

.detail-inline-flag .flag-image {
    width: 22px;
    height: 16px;
}

.detail-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.detail-inline-links a {
    padding: 4px 8px;

    color: var(--blue-700);

    background: var(--blue-100);

    border-radius: 99px;

    font-size: 11px;
}


/* =========================================================
   DETAIL TEXT AND LISTS
   ========================================================= */

.detail-rich-text {
    color: var(--text);

    font-size: 14px;
    line-height: 1.75;
}

.detail-list-card {
    padding: 15px 17px;

    background:
        linear-gradient(
            135deg,
            var(--blue-50),
            #ffffff
        );

    border:
        1px solid var(--blue-150);

    border-radius: 14px;
}

.detail-list {
    margin: 0;

    padding-left: 21px;
}

.detail-list li {
    margin: 9px 0;

    padding-left: 3px;

    line-height: 1.65;
}

.detail-list li::marker {
    color: var(--blue-500);
}

.detail-list a {
    font-weight: bold;
}

.benefits-card {
    border-left:
        4px solid var(--green-500);

    background:
        linear-gradient(
            135deg,
            var(--green-50),
            #ffffff
        );
}

.requirements-card {
    border-left:
        4px solid var(--orange-500);

    background:
        linear-gradient(
            135deg,
            var(--orange-50),
            #ffffff
        );
}

.booklet-card {
    border-left:
        4px solid var(--blue-500);
}


/* =========================================================
   DETAIL SIDEBAR
   ========================================================= */

.detail-side-card {
    padding: 18px;

    background:
        rgba(255, 255, 255, .97);

    border:
        1px solid var(--border);

    border-radius: 16px;

    box-shadow: var(--shadow);
}

.detail-side-card-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 13px;
}

.detail-side-card-title > span {
    width: 31px;
    min-width: 31px;
    height: 31px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--blue-100);

    border-radius: 9px;

    font-size: 16px;
}

.detail-side-card-title h3 {
    margin: 0;

    color: var(--navy-dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;
}

.detail-tip-list {
    margin: 0;

    padding-left: 20px;
}

.detail-tip-list li {
    margin: 8px 0;

    color: var(--text);

    font-size: 13px;
    line-height: 1.55;
}

.detail-tip-list li::marker {
    color: var(--blue-500);
}

.detail-side-links {
    display: grid;
    gap: 7px;
}

.detail-side-links a {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 9px 10px;

    color: var(--blue-700);

    background: var(--blue-50);

    border:
        1px solid var(--blue-150);

    border-radius: 10px;

    font-size: 12px;
    font-weight: bold;
    line-height: 1.35;
}

.detail-side-links a:hover {
    color: var(--blue-800);

    background: var(--blue-100);

    border-color: var(--blue-300);
}

.detail-side-links .flag-image {
    width: 22px;
    height: 16px;
}

.detail-admin-card {
    border-color: #d7e5ee;
}

.detail-edit-button {
    width: 100%;
}


/* =========================================================
   NOT FOUND
   ========================================================= */

.detail-not-found {
    max-width: 650px;

    margin: 80px auto;

    padding: 35px;

    text-align: center;

    background: #ffffff;

    border:
        1px solid var(--border);

    border-radius: 20px;

    box-shadow: var(--shadow);
}

.detail-not-found-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--blue-100);

    border-radius: 50%;

    font-size: 28px;
}

.detail-not-found h1 {
    margin: 0 0 9px;

    color: var(--navy-dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;
}

.detail-not-found p {
    margin: 0 0 20px;

    color: var(--muted);

    line-height: 1.6;
}


/* =========================================================
   MISC
   ========================================================= */

.badge {
    display: inline-block;

    margin: 2px;

    padding: 5px 8px;

    color: var(--blue-700);

    background: var(--blue-100);

    border-radius: 99px;

    font-size: 12px;
}

.clamp {
    display: -webkit-box;

    overflow: hidden;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

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

    .detail-content-grid {
        grid-template-columns:
            minmax(0, 1fr) 280px;
    }

    .detail-hero {
        grid-template-columns:
            minmax(0, 1fr) 280px;
    }
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .filters {
        position: static;
    }

    .detail-hero,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .detail-side-column {
        position: static;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .detail-summary-card {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .grid,
    .form-grid,
    .detail-info-grid,
    .detail-side-column {
        grid-template-columns: 1fr;
    }

    .top {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

    .top nav {
        flex-wrap: wrap;
    }

    .wrap {
        margin-top: 16px;

        padding: 0 12px;
    }

    .item {
        padding: 17px;
    }

    .month-fields {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        padding: 21px;

        border-radius: 17px;
    }

    .detail-hero h1 {
        font-size: 27px;
    }

    .detail-section {
        padding: 18px;

        border-radius: 15px;
    }

    .detail-section-heading h2 {
        font-size: 19px;
    }

    .detail-breadcrumb span:last-child {
        max-width: 230px;
    }
}