/* SOP page — mobile first, flex only */

.sop-page {
    --sop-navy: #001f6c;
    --sop-cyan: #00bbf1;
    --sop-cyan-hover: #009fd4;
    --sop-bg: #f7f7f7;
    --sop-hero: #def1f6;
    --sop-text: #001f6c;
    --sop-muted: #4a5a7a;
    --sop-warn: #e5397a;
    --sop-white: #ffffff;
    --sop-radius: 12px;
    --sop-shadow: 0 4px 16px rgba(0, 31, 108, 0.08);
    --sop-gap: 16px;
    --sop-pad: 16px;

    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--sop-bg);
    color: var(--sop-text);
    font-family: MyriadPro, Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

.sop-page *,
.sop-page *::before,
.sop-page *::after {
    box-sizing: border-box;
}

.sop-page a {
    color: var(--sop-cyan);
    text-decoration: none;
}

.sop-page a:hover {
    text-decoration: underline;
}

.sop-page a.sop-btn,
.sop-page a.sop-btn:hover {
    color: var(--sop-white);
    text-decoration: none;
}

.sop-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sop-pad) 32px;
    gap: 24px;
}

/* Breadcrumbs */
.sop-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-top: 16px;
    font-size: 13px;
    color: #9aa3b5;
}

.sop-breadcrumbs a {
    color: #9aa3b5;
}

.sop-breadcrumbs__sep {
    color: #c0c6d2;
}

.sop-breadcrumbs__current {
    color: #7a8499;
}

/* Shared */
.sop-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--sop-navy);
}

.sop-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--sop-text);
}

.sop-text b {
    font-weight: 700;
}

.sop-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    background: var(--sop-cyan);
    color: var(--sop-white);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sop-btn:hover {
    background: var(--sop-cyan-hover);
    color: var(--sop-white);
    text-decoration: none;
}

.sop-link-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--sop-cyan);
    text-decoration: underline;
}

.sop-link-more:hover {
    color: var(--sop-cyan-hover);
}

.sop-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: var(--sop-radius);
    background: var(--sop-white);
    box-shadow: var(--sop-shadow);
}

.sop-card--pattern {
    background-color: #e8f6fb;
    background-image: url("/i/sop/pattern.svg");
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 180px auto;
}

.sop-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--sop-navy);
}

.sop-media {
    display: flex;
    width: 100%;
    overflow: hidden;
    border-radius: var(--sop-radius);
    box-shadow: var(--sop-shadow);
    background: var(--sop-white);
}

.sop-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero / AI search */
.sop-hero {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
    border-radius: var(--sop-radius);
    background: var(--sop-hero);
}

.sop-hero__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--sop-navy);
}

.sop-hero__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--sop-text);
}

.sop-search {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--sop-white);
    box-shadow: 0 2px 10px rgba(0, 31, 108, 0.1);
}

.sop-search__input {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 6px 0;
    border: none;
    outline: none;
    resize: none;
    overflow: hidden;
    box-sizing: border-box;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    color: var(--sop-navy);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.sop-search__input::placeholder {
    color: #a0aabc;
}

.sop-search__btn {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #8b95a8;
    cursor: pointer;
}

.sop-search__btn:hover {
    color: var(--sop-cyan);
}

.sop-search__icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sop-warn {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--sop-warn);
}

.sop-warn__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--sop-warn);
    color: var(--sop-white);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* Solutions */
.sop-solutions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sop-solutions__list {
    display: flex;
    flex-direction: column;
    gap: var(--sop-gap);
}

.sop-solutions .sop-card {
    min-height: 140px;
}

.sop-solutions .sop-link-more {
    margin-top: auto;
}

.sop-text--announce {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* How to get SOP
   Mobile order: photo → activity → join
   Desktop: [join + activity] | photo */
.sop-howto {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sop-howto__grid {
    display: flex;
    flex-direction: column;
    gap: var(--sop-gap);
}

.sop-howto__cols {
    display: flex;
    flex-direction: column;
    gap: var(--sop-gap);
    order: 2;
}

.sop-howto__media {
    order: 1;
    min-height: 200px;
}

.sop-howto__activity {
    order: 1;
}

.sop-howto__join {
    order: 2;
}

.sop-howto__join .sop-btn {
    margin-top: 4px;
    align-self: stretch;
}

/* AI generate */
.sop-ai {
    display: flex;
    flex-direction: column;
    gap: var(--sop-gap);
}

.sop-ai__media {
    min-height: 180px;
}

.sop-ai__card {
    gap: 14px;
}

.sop-ai__heading {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.sop-ai__flame {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 2px;
}

.sop-ai__card .sop-btn {
    margin-top: 4px;
}

/* Extra services */
.sop-extra {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
    border-radius: var(--sop-radius);
    background: var(--sop-hero);
}

.sop-extra__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
}

.sop-extra__visual img {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
}

.sop-extra__content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    order: 2;
    text-align: left;
}

.sop-extra__content .sop-btn {
    align-self: stretch;
}

/* Tablet / Desktop */
@media (min-width: 768px) {
    .sop-page {
        --sop-pad: 24px;
        --sop-gap: 20px;
    }

    .sop-wrap {
        gap: 32px;
        padding-bottom: 48px;
    }

    .sop-title {
        font-size: 28px;
    }

    .sop-hero {
        align-items: center;
        gap: 20px;
        padding: 20px;
        text-align: center;
    }

    .sop-hero__title {
        font-size: 32px;
        text-align: left;
        width: 100%;
    }

    .sop-hero__desc {
        text-align: left;
        font-size: 16px;
        width: 100%;
    }

    .sop-search {
        text-align: left;
        min-height: 56px;
        padding: 10px 18px;
        width: 100%;
    }

    .sop-warn {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }

    .sop-solutions__list {
        flex-direction: row;
        align-items: stretch;
    }

    .sop-solutions__list .sop-card {
        flex: 1 1 0;
        min-width: 0;
    }

    .sop-howto__grid {
        flex-direction: row;
        align-items: stretch;
    }

    .sop-howto__cols {
        order: 1;
        flex: 1 1 0;
        min-width: 0;
    }

    .sop-howto__media {
        order: 2;
        flex: 1 1 0;
        min-width: 0;
        min-height: auto;
    }

    .sop-howto__join {
        order: 1;
    }

    .sop-howto__activity {
        order: 2;
    }

    .sop-howto__join .sop-btn {
        align-self: flex-start;
        min-width: 160px;
        width: auto;
    }

    .sop-ai {
        flex-direction: row;
        align-items: stretch;
    }

    .sop-ai__media,
    .sop-ai__card {
        flex: 1 1 0;
        min-width: 0;
    }

    .sop-ai__media {
        min-height: 240px;
    }

    .sop-extra {
        flex-direction: row;
        align-items: center;
        gap: 32px;
        padding: 36px 40px;
    }

    .sop-extra__content {
        order: 1;
        flex: 1 1 55%;
    }

    .sop-extra__visual {
        order: 2;
        flex: 1 1 40%;
    }

    .sop-extra__content .sop-btn {
        align-self: flex-start;
        min-width: 180px;
        width: auto;
    }

    .sop-card {
        padding: 24px;
    }
}

@media (min-width: 1024px) {
    .sop-page {
        --sop-pad: 20px;
        --sop-gap: 24px;
    }

    .sop-wrap {
        gap: 40px;
    }

    .sop-hero__title {
        font-size: 36px;
    }

    .sop-card {
        padding: 28px;
    }

    .sop-card__title {
        font-size: 20px;
    }

    .sop-extra__visual img {
        max-width: 420px;
    }
}
