.gs-shortcode {
    position: relative;
    display: inline-flex;
}

.gs-trigger {
    border: none;
    background: #3dc0f5;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.gs-trigger:hover {
    transform: translateY(-1px);
}

.gs-trigger__icon svg {
    width: 22px;
    height: 22px;
}

.gs-results {
    max-width: 1200px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

.gs-fullscreen[hidden] {
    display: none !important;
}

.gs-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.98);
}

.gs-fullscreen__panel {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: #f9fbff;
    padding: 0 0 40px;
}

.gs-fullscreen__close {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 100000;
    width: 48px;
    height: 48px;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    color: #0f172a;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.gs-fullscreen__content {
    min-height: 100vh;
}

.gs-fullscreen__loading {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475467;
    font-size: 18px;
    font-weight: 600;
}

body.gs-fullscreen-open {
    overflow: hidden;
}

.gs-search-page {
    min-height: 100vh;
    background: #f9fbff;
}

.gs-search-page__topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.gs-search-page__topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 96px 14px 24px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.gs-search-page__brand {
    display: flex;
    align-items: center;
}

.gs-search-page__brand .custom-logo-link,
.gs-search-page__brand .gs-search-page__brand-text,
.gs-search-page__brand .gs-search-page__brand-link {
    display: inline-flex;
    align-items: center;
}

.gs-search-page__brand .custom-logo,
.gs-search-page__brand .gs-search-page__brand-image {
    max-width: 150px;
    width: auto;
    height: auto;
    display: block;
}

.gs-search-page__brand-text {
    color: #0f172a;
    text-decoration: none;
    font-size: 28px;
    font-weight: 500;
}

.gs-search-page__form {
    min-width: 0;
}

.gs-search-page-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 138px;
    gap: 18px;
    align-items: center;
}

.gs-search-page-form__field {
    position: relative;
}

.gs-search-page-form__field input[type="search"] {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    background: #fff;
    padding: 0 22px;
    font-size: 14px;
    color: #0f172a;
}

.gs-search-page-form__field input[type="search"]::placeholder {
    color: #64748b;
}

.gs-search-page-form__field input[type="search"]:focus {
    outline: none;
    border-color: #27b7ea;
    box-shadow: 0 0 0 3px rgba(39, 183, 234, 0.14);
}

.gs-search-page-form__icon {
    display: none;
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #111827;
    padding: 0;
    cursor: pointer;
}

.gs-search-page-form__icon svg {
    width: 20px;
    height: 20px;
}

.gs-form__submit {
    min-height: 42px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #19b8ea 0%, #39b7f0 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: none;
    cursor: pointer;
}

.gs-results__intro {
    margin-bottom: 28px;
}

.gs-results__intro h1 {
    margin-bottom: 8px;
}

.gs-results__intro p {
    margin: 0;
    color: #475467;
}

.gs-results__groups {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.gs-results__group {
    width: 100%;
}

.gs-results__group-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.gs-results__group-header h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.gs-results__count {
    font-size: 14px;
    color: #475467;
}

.gs-results__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 32px auto;
}

.gs-results__cards .dm-devotion-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.gs-results__cards .dm-devotion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border-color: #cbd5f5;
}

.gs-results__cards .dm-tab-card__subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: #0f172a;
}

.gs-results__cards .dm-tab-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: #0f172a;
}

.gs-results__cards .dm-tab-card__chapter {
    font-weight: 600;
    color: #0f172a;
}

.gs-results__cards .dm-tab-card__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #94a3b8;
}

.gs-results__cards .dm-tab-card__datetime {
    color: #0f172a;
    font-weight: 600;
}

.gs-results__cards .dm-tab-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gs-results__cards .dm-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0;
}

.gs-results__cards .dm-image {
    min-height: 220px;
    border-radius: 10px;
    overflow: hidden;
}

.gs-results__cards .dm-tab-card__media img,
.gs-results__cards .dm-tab-card__media .dm-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.gs-results__cards .dm-title {
    margin: 0;
}

.gs-results__cards .dm-title a {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
    color: #0f172a;
}

.gs-results__cards .dm-title a:hover {
    color: #0672c9;
}

.gs-results__cards .dm-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gs-results__cards .dm-keywords span {
    background: #e0f2fe;
    color: #0f172a;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
}

.gs-results__cards .dm-tab-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.gs-results__cards .dm-read-more {
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
}

.gs-results__cards .dm-read-more:hover {
    text-decoration: underline;
    color: #0672c9;
}

.gs-results__empty {
    padding: 24px;
    border: 1px dashed #cbd5f5;
    border-radius: 16px;
    text-align: center;
    color: #475467;
}

@media (max-width: 900px) {
    .gs-results {
        padding: 0 20px;
    }

    .gs-search-page__topbar-inner {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 20px;
        padding: 14px 78px 14px 20px;
    }

    .gs-search-page-form {
        grid-template-columns: minmax(0, 1fr) 120px;
    }

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

@media (max-width: 600px) {
    .gs-results {
        padding: 0 16px;
    }

    .gs-search-page__brand {
        display: none;
    }

    .gs-search-page__topbar-inner {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 64px 12px 16px;
        align-items: start;
    }

    .gs-search-page-form {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gs-search-page-form__field input[type="search"] {
        padding-right: 48px;
    }

    .gs-search-page-form__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .gs-form__submit {
        display: none;
    }

    .gs-results__group-header h2 {
        font-size: 24px;
    }

    .gs-fullscreen__close {
        top: 14px;
        right: 14px;
        width: 44px;
        height: 44px;
        font-size: 26px;
    }

    .gs-search-page__brand .custom-logo {
        max-width: 100px;
    }

    .gs-results__cards .dm-devotion-card {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .gs-results__cards .dm-title a {
        font-size: 14px;
    }
}

@media (max-width: 700px) {
    .gs-results__cards {
        grid-template-columns: 1fr;
    }

    .gs-results__cards .dm-tab-card__subtitle {
        flex-direction: column;
        align-items: stretch;
    }
}
