/* McMillan Woods Egypt — Global Search
   Search overlay (header) + full results page. */

:root {
    --gs-burgundy: #9c0a0d;
    --gs-burgundy-dark: #7d0609;
    --gs-dark: #0b0d12;
    --gs-ink: #1a1c22;
    --gs-muted: #6b6f78;
    --gs-line: #e9e4e5;
    --gs-surface: #ffffff;
    --gs-soft: #f7f4f5;
    --gs-radius: 18px;
    --gs-shadow: 0 20px 55px rgba(17, 19, 24, 0.08);
}

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

/* --------------------------------------------------------------------------
   Header trigger (mobile)
   -------------------------------------------------------------------------- */

.gs-mobile-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    margin-inline-start: auto;
    margin-inline-end: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.gs-mobile-trigger:hover,
.gs-mobile-trigger:focus {
    background: var(--gs-burgundy);
    color: #ffffff;
    text-decoration: none;
}

@media (min-width: 768px) {
    .gs-mobile-trigger {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   Overlay
   -------------------------------------------------------------------------- */

.search-popup.offcanvas {
    height: 100vh;
    max-height: 100vh;
    border: 0;
    background: var(--gs-dark);
    color: #ffffff;
}

.search-popup .gs-overlay {
    height: 100%;
    min-height: 0;
    padding: clamp(22px, 4vh, 46px) 0 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background:
        radial-gradient(circle at 82% -10%, rgba(156, 10, 13, 0.30), transparent 46%),
        radial-gradient(circle at 4% 104%, rgba(255, 255, 255, 0.07), transparent 38%),
        var(--gs-dark);
}

.gs-overlay__inner.container {
    width: 100%;
    max-width: 1060px;
    padding-inline: 24px;
}

.gs-overlay__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.gs-overlay__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.gs-overlay__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gs-burgundy);
    box-shadow: 0 0 0 4px rgba(156, 10, 13, 0.22);
}

.gs-overlay__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.gs-overlay__close:hover,
.gs-overlay__close:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    outline: none;
}

.gs-overlay__title {
    margin: 30px 0 10px;
    color: #ffffff;
    font-size: clamp(1.8rem, 3.4vw, 2.9rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

[dir="rtl"] .gs-overlay__title {
    letter-spacing: 0;
    line-height: 1.3;
}

.gs-overlay__intro {
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14.5px;
    line-height: 1.7;
}

.gs-overlay__form {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 26px;
    padding: 8px 8px 8px 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.gs-overlay__form:focus-within {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(156, 10, 13, 0.18);
}

.gs-overlay__icon {
    flex: 0 0 auto;
    margin-inline-start: 14px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 16px;
}

.gs-overlay__form input {
    flex: 1 1 auto;
    min-width: 0;
    height: 56px;
    padding: 0 4px;
    border: 0;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-size: clamp(1rem, 1.7vw, 1.3rem);
}

.gs-overlay__form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.gs-overlay__form input::-webkit-search-cancel-button {
    filter: invert(1);
    opacity: 0.5;
}

.gs-overlay__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    height: 56px;
    padding: 0 26px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gs-burgundy), var(--gs-burgundy-dark));
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gs-overlay__submit:hover,
.gs-overlay__submit:focus {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(156, 10, 13, 0.35);
}

.gs-overlay__submit i {
    font-size: 12px;
}

.gs-overlay__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.gs-popular {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.gs-popular__label {
    color: rgba(255, 255, 255, 0.42);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gs-overlay__status {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gs-overlay__status.is-visible {
    opacity: 1;
}

.gs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gs-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.82);
    font-family: inherit;
    font-size: 12.5px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.gs-chip:hover,
.gs-chip:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    outline: none;
}

/* Suggestions */

.gs-live {
    margin-top: 14px;
}

.gs-live__state {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13.5px;
}

.gs-live__state i {
    color: rgba(255, 255, 255, 0.4);
}

.gs-live__group {
    padding-top: 6px;
}

.gs-live__heading {
    padding: 10px 6px 6px;
    color: #efa7a9;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gs-live__item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-block: 11px;
    padding-inline: 14px 46px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.gs-live__item:hover,
.gs-live__item:focus,
.gs-live__item.is-active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    text-decoration: none;
    outline: none;
}

.gs-live__title {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
}

.gs-live__snippet {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12.5px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-live__arrow {
    position: absolute;
    inset-inline-end: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    transition: color 0.16s ease, transform 0.16s ease;
}

.gs-live__item:hover .gs-live__arrow,
.gs-live__item.is-active .gs-live__arrow {
    color: #ffb4b6;
}

.gs-live__item:hover .gs-live__arrow {
    transform: translateY(-50%) translateX(3px);
}

[dir="rtl"] .gs-live__item:hover .gs-live__arrow {
    transform: translateY(-50%) translateX(-3px);
}

.gs-live mark {
    padding: 0 2px;
    border-radius: 3px;
    background: rgba(156, 10, 13, 0.55);
    color: #ffffff;
}

.gs-live__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px 4px 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.gs-live__all:hover,
.gs-live__all:focus {
    color: #ffb4b6;
    border-color: #ffb4b6;
    text-decoration: none;
}

.gs-live__didyoumean {
    margin: 6px 4px 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.gs-live__didyoumean a {
    color: #ffb4b6;
    font-weight: 700;
}

.gs-overlay__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.38);
    font-size: 11.5px;
}

.gs-overlay__foot span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gs-overlay__foot kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 10.5px;
}

/* --------------------------------------------------------------------------
   Results page
   -------------------------------------------------------------------------- */

.gs-page {
    padding: 0 0 80px;
    background: var(--gs-soft);
}

.gs-pagebar {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 10px;
    margin-top: -46px;
    padding: 12px;
    border: 1px solid #f1ebec;
    border-radius: 20px;
    background: var(--gs-surface);
    box-shadow: var(--gs-shadow);
}

.gs-pagebar__field {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: #f8f5f6;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gs-pagebar__field:focus-within {
    border-color: rgba(156, 10, 13, 0.35);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(156, 10, 13, 0.08);
}

.gs-pagebar__field > i {
    color: var(--gs-burgundy);
    font-size: 16px;
}

.gs-pagebar__field input {
    width: 100%;
    height: 58px;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--gs-ink);
    font-size: 16px;
}

.gs-pagebar__field input::placeholder {
    color: #9a9da5;
}

.gs-pagebar__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    height: 58px;
    padding: 0 30px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gs-burgundy), var(--gs-burgundy-dark));
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gs-pagebar__submit:hover,
.gs-pagebar__submit:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(156, 10, 13, 0.25);
}

.gs-pagebar__submit i {
    font-size: 12px;
}

.gs-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    margin-top: 40px;
    align-items: start;
}

#gsResults {
    min-width: 0;
    scroll-margin-top: 120px;
    transition: opacity 0.2s ease;
}

#gsResults.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.gs-results__kicker {
    margin: 0 0 8px;
    color: var(--gs-burgundy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gs-results__query {
    margin: 0 0 6px;
    color: var(--gs-ink);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.gs-results__count {
    margin: 0 0 22px;
    color: var(--gs-muted);
    font-size: 14px;
}

.gs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--gs-line);
}

.gs-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid var(--gs-line);
    border-radius: 999px;
    background: var(--gs-surface);
    color: #3a3d45;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.gs-filter i {
    color: var(--gs-burgundy);
    font-size: 11px;
}

.gs-filter span {
    padding: 1px 8px;
    border-radius: 999px;
    background: #f4eff0;
    color: #7a7e86;
    font-size: 10.5px;
    font-weight: 700;
}

.gs-filter:hover,
.gs-filter:focus {
    border-color: #d9b8ba;
    color: var(--gs-burgundy);
    text-decoration: none;
    outline: none;
}

.gs-filter.is-active {
    border-color: var(--gs-burgundy);
    background: var(--gs-burgundy);
    color: #ffffff;
}

.gs-filter.is-active i {
    color: #ffffff;
}

.gs-filter.is-active span {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.gs-didyoumean {
    margin: 0 0 22px;
    padding: 12px 16px;
    border: 1px solid #f1dcdd;
    border-radius: 12px;
    background: #fff8f8;
    color: #635254;
    font-size: 13.5px;
}

.gs-didyoumean a {
    color: var(--gs-burgundy);
    font-weight: 700;
}

.gs-didyoumean--center {
    display: inline-block;
    margin-top: 4px;
}

.gs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gs-card {
    padding: 24px 26px;
    border: 1px solid var(--gs-line);
    border-radius: var(--gs-radius);
    background: var(--gs-surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gs-card:hover {
    border-color: #e3c2c4;
    box-shadow: 0 16px 40px rgba(17, 19, 24, 0.07);
    transform: translateY(-2px);
}

.gs-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.gs-card__type {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border: 1px solid #f4dfe0;
    border-radius: 999px;
    background: #fbf1f2;
    color: var(--gs-burgundy);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gs-card__type i {
    font-size: 10px;
}

.gs-card__meta {
    color: var(--gs-muted);
    font-size: 12px;
}

.gs-card__title {
    margin: 0 0 8px;
    color: var(--gs-ink);
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.gs-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

.gs-card__title a:hover,
.gs-card__title a:focus {
    color: var(--gs-burgundy);
    text-decoration: none;
}

.gs-card__text {
    margin: 0 0 16px;
    color: #5d616a;
    font-size: 14.5px;
    line-height: 1.75;
}

.gs-card__text mark,
.gs-related mark {
    padding: 0 3px;
    border-radius: 3px;
    background: #fbe3e4;
    color: var(--gs-burgundy-dark);
}

.gs-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gs-burgundy);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}

.gs-card__cta i {
    font-size: 10px;
    transition: transform 0.18s ease;
}

.gs-card__cta:hover,
.gs-card__cta:focus {
    color: var(--gs-burgundy-dark);
    text-decoration: none;
}

.gs-card__cta:hover i {
    transform: translateX(3px);
}

[dir="rtl"] .gs-card__cta:hover i {
    transform: translateX(-3px);
}

.gs-related {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--gs-line);
}

.gs-related__title {
    margin: 0 0 14px;
    color: var(--gs-ink);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gs-related__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.gs-related__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--gs-line);
    border-radius: 12px;
    background: var(--gs-surface);
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.gs-related__item:hover,
.gs-related__item:focus {
    border-color: #d9b8ba;
    box-shadow: 0 10px 26px rgba(17, 19, 24, 0.06);
    text-decoration: none;
}

.gs-related__type {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--gs-burgundy);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gs-related__item strong {
    color: var(--gs-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
}

.gs-pagination {
    margin-top: 30px;
}

.gs-pagination ul.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gs-pagination ul.pagination > li > a,
.gs-pagination ul.pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--gs-line);
    border-radius: 10px;
    background: var(--gs-surface);
    color: var(--gs-ink);
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.gs-pagination ul.pagination > li > a:hover {
    border-color: var(--gs-burgundy);
    color: var(--gs-burgundy);
    text-decoration: none;
}

.gs-pagination ul.pagination > li.active > span {
    border-color: var(--gs-burgundy);
    background: var(--gs-burgundy);
    color: #ffffff;
}

.gs-pagination ul.pagination > li.disabled > span {
    opacity: 0.45;
}

/* Empty states */

.gs-empty {
    padding: clamp(34px, 6vw, 64px);
    border: 1px solid var(--gs-line);
    border-radius: 20px;
    background: var(--gs-surface);
    text-align: center;
    box-shadow: 0 12px 34px rgba(17, 19, 24, 0.04);
}

.gs-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #fbf1f2;
    color: var(--gs-burgundy);
    font-size: 23px;
}

.gs-empty__title {
    margin: 0 0 10px;
    color: var(--gs-ink);
    font-size: clamp(1.2rem, 2.3vw, 1.55rem);
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.gs-empty__help {
    max-width: 520px;
    margin: 0 auto 22px;
    color: var(--gs-muted);
    font-size: 14px;
    line-height: 1.75;
}

.gs-empty .gs-chips {
    justify-content: center;
}

.gs-empty .gs-chip {
    border-color: var(--gs-line);
    background: #faf8f8;
    color: #3a3d45;
}

.gs-empty .gs-chip:hover,
.gs-empty .gs-chip:focus {
    border-color: #d9b8ba;
    background: #ffffff;
    color: var(--gs-burgundy);
}

.gs-empty--start {
    padding: clamp(40px, 7vw, 76px);
}

/* Sidebar */

.gs-aside {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-self: start;
}

.gs-aside__card {
    padding: 22px;
    border: 1px solid var(--gs-line);
    border-radius: var(--gs-radius);
    background: var(--gs-surface);
}

.gs-aside__title {
    margin: 0 0 14px;
    color: var(--gs-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gs-aside .gs-chip {
    border-color: var(--gs-line);
    background: #faf8f8;
    color: #3a3d45;
}

.gs-aside .gs-chip:hover,
.gs-aside .gs-chip:focus {
    border-color: #d9b8ba;
    background: #ffffff;
    color: var(--gs-burgundy);
}

.gs-tips {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gs-tips li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #555963;
    font-size: 13.5px;
    line-height: 1.6;
}

.gs-tips i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    background: #fbf1f2;
    color: var(--gs-burgundy);
    font-size: 8px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .gs-page__grid {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 26px;
    }

    .gs-pagebar {
        margin-top: -38px;
    }
}

@media (max-width: 991.98px) {
    .gs-pagebar {
        margin-top: 22px;
    }

    .gs-page__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        margin-top: 30px;
    }

    .gs-aside {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gs-overlay__inner.container {
        padding-inline: 28px;
    }
}

@media (max-width: 767.98px) {
    .gs-page {
        padding-bottom: 56px;
    }

    .gs-pagebar {
        flex-wrap: wrap;
        margin-top: 16px;
        padding: 10px;
        border-radius: 16px;
    }

    .gs-pagebar__field {
        flex: 1 1 100%;
        padding: 0 14px;
    }

    .gs-pagebar__field input {
        height: 52px;
        font-size: 15px;
    }

    .gs-pagebar__submit {
        flex: 1 1 100%;
        height: 50px;
    }

    .gs-page__grid {
        margin-top: 24px;
    }

    .gs-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .gs-card {
        padding: 20px;
    }

    .gs-card__title {
        font-size: 1.1rem;
    }

    .gs-card__text {
        font-size: 14px;
    }

    .gs-related__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gs-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 18px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gs-filters::-webkit-scrollbar {
        display: none;
    }

    .gs-filter {
        flex: 0 0 auto;
    }

    .gs-overlay__inner.container {
        padding-inline: 20px;
    }

    .gs-overlay__title {
        margin-top: 22px;
        font-size: clamp(1.55rem, 6vw, 2rem);
    }

    .gs-overlay__intro {
        font-size: 13.5px;
    }

    .gs-overlay__form {
        gap: 10px;
        margin-top: 20px;
        padding: 6px;
        border-radius: 14px;
    }

    .gs-overlay__icon {
        margin-inline-start: 10px;
    }

    .gs-overlay__form input {
        height: 50px;
    }

    .gs-overlay__submit {
        height: 50px;
        padding: 0 18px;
    }

    .gs-overlay__meta {
        align-items: flex-start;
        gap: 12px;
        margin-top: 16px;
    }

    .gs-popular {
        gap: 10px;
    }

    .gs-popular__label {
        flex: 1 1 100%;
    }

    .gs-live {
        max-height: 48vh;
        overflow-y: auto;
    }

    .gs-overlay__foot {
        display: none;
    }

    .gs-live__snippet {
        white-space: normal;
    }
}

@media (max-width: 575.98px) {
    .gs-mobile-trigger {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        margin-inline-end: 8px;
        font-size: 14px;
    }

    .gs-pagebar__submit {
        padding-inline: 18px;
    }

    .gs-results__count {
        margin-bottom: 18px;
    }

    .gs-card {
        padding: 18px;
    }

    .gs-card__top {
        flex-wrap: wrap;
    }

    .gs-empty {
        padding: 28px 18px;
    }

    .gs-overlay__submit span {
        display: none;
    }

    .gs-overlay__submit {
        width: 50px;
        padding: 0;
    }

    .gs-overlay__close {
        width: 40px;
        height: 40px;
    }

    .gs-live__item {
        padding-inline: 12px 36px;
    }

    .gs-live__arrow {
        inset-inline-end: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gs-pagebar__submit,
    .gs-card,
    .gs-card__cta i,
    .gs-live__item,
    .gs-overlay__submit {
        transition: none;
    }
}
