body {
    background-color: #F6F7F8;
    margin: 0;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    align-self: center;
    background: #FFFFFF59 0% 0% no-repeat padding-box;
    border-radius: 26px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.partner-register-btn {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 20px 43px;
    background: transparent linear-gradient(112deg, #F6FBF9 0%, var(--bg-green-light) 100%) 0% 0% no-repeat padding-box;
    border: 2px solid var(--main-green);
    border-radius: 35px;
    color: var(--main-green);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0px 8px 30px #00000029;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.partner-register-btn:hover {
    box-shadow: 0px 14px 38px #00000033;
    transform: translateX(-50%) translateY(-4px);
}

.banner-section {
    width: 100vw;
    background: transparent linear-gradient(106deg, var(--main-green) 0%, var(--main-green-dark) 100%) 0% 0% no-repeat padding-box;
    position: relative;
}

.banner-section .app-container {
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 24px;
}

.banner-section .partner-back-to-login {
    align-self: flex-start;
}

.partner-page.partner {
    padding-top: 60px;
    z-index: 1;
}

.partner-page.partner .partner-layout {
    z-index: 2;
}

.partner-benefit-list {
    justify-content: center;
    display: flex;
    gap: 80px;
    justify-content: center;
    font-size: 35px;
    font-weight: 700;
}

.banner-content {
    display: flex;
    flex-direction: column;
    gap: 100px;
    padding-bottom: 70px;
}

.partner-benefit-list li p {
    font-size: 14px;
    font-weight: 300;
}

.banner-title {
    padding: 20px 0px;
    display: flex;
    font-size: 14px;
    font-weight: 300;
    gap: 20px;
    flex-direction: column;
}

.partner-row-group {
    gap: 10px;
    display: flex;
    justify-content: space-between;
}

.partner-filter {
    display: flex;
    width: 100%;
}

.partner-filter .filter-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.partner-filter .filter-area label {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.partner-filter .filter-area .search-option {
    min-width: 115px;
    height: 44px;
    padding: 0 44px 0 16px;
    border-radius: 12px;
    border: 1.5px solid #d7e2e8;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%234e5a68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    font-weight: 600;
    color: #1f2937;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.grade-filter .search-option {
    min-width: 115px;
    height: 44px;
    padding: 0 44px 0 16px;
    border-radius: 12px;
    border: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%234e5a68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    font-weight: 600;
    color: #1f2937;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.partner-filter .filter-area .search-option:focus {
    border-color: var(--main-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 147, 0.25);
    outline: none;
}

.grade-filter .search-option:focus {
    border-color: var(--main-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 147, 0.25);
    outline: none;
}

.partner-filter .filter-area .search-option::-ms-expand,
.grade-filter .search-option::-ms-expand {
    display: none;
}

.article-trade-nav ul {
    display: flex;
    gap: 10px;
    max-width: 510px;
    overflow-x: auto;
    /* 스크롤 부드럽게 (선택사항) */
    scroll-behavior: smooth;
}

/* 1. 스크롤바 전체 영역 (수평 스크롤바는 height로 두께 조절) */
.article-trade-nav ul::-webkit-scrollbar {
    height: 6px; /* 두께: 얇게 설정 (기본값은 보통 10px 이상) */
}

/* 2. 스크롤바 트랙 (배경) */
.article-trade-nav ul::-webkit-scrollbar-track {
    background-color: transparent; /* 배경을 투명하게 */
    border-radius: 10px;
}

/* 3. 스크롤바 핸들 (움직이는 부분) */
.article-trade-nav ul::-webkit-scrollbar-thumb {
    background-color: #d1d5db; /* 회색 계열 (너무 튀지 않게) */
    border-radius: 10px; /* 둥글게 처리 */
    border: 2px solid transparent; /* 여백을 주기 위한 트릭 */
    background-clip: content-box; /* border 안쪽만 색칠 */
}

/* 4. 마우스 올렸을 때 핸들 색상 진하게 */
.article-trade-nav ul::-webkit-scrollbar-thumb:hover {
    background-color: #9ca3af;
}

.article-trade-nav ul > li {
    min-width: 105px;
    text-align: center;
    font-size: 14px;
    padding: 10px 20px;
    background: var(--bg-slate-light);
    border-radius: 24px;
    color: var(--text-slate);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.partner-filter .filter-professional:first-of-type .article-trade-nav ul {
    width: 100%;
}

/* Keep 전문분야 필터 버튼 widths uniform regardless of label length */
.partner-filter .filter-professional:first-of-type .article-trade-nav ul > li {
    flex: 1 1 120px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.article-trade-nav ul > li:hover {
    background: #e8f4f0;
    color: #2d8b6e;
}

.article-trade-nav ul > li.is-active {
    background: var(--main-green);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(76, 175, 147, 0.24);
}

.partner-page.partner .seed-result-header {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #E3EBE7;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    border-radius: 30px;
    backdrop-filter: blur(8px);
}

.partner-page.partner .seed-search-input {
    background: #F8FBFA;
    border: 1px solid #dfe9e5;
    border-radius: 16px;
    min-height: 60px;
    padding: 0 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.partner-page.partner .seed-search-input:focus-within {
    border-color: var(--main-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 147, 0.15);
}

.partner-page.partner .seed-search-input input {
    font-size: 16px;
    font-weight: 600;
}

.partner-page.partner .seed-search-input img {
    width: 22px;
    height: 22px;
    filter: brightness(0) saturate(100%) hue-rotate(100deg);
}

.filter-professional {
    gap: 10px;
    padding: 0px 10px;
    display: flex;
    align-items: center;
}


.grade-filter {
    padding: 20px 0px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grade-filter p {
    font-size: 20px;
    font-weight: 700;
}

.grade-filter p > span {
    color: var(--main-green);
}

.best-partner-title {
    font-size: 38px;
    color: var(--text-dark);
}

.best-partner-list-area {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.best-partner-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.best-partner-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 28px;
    border-radius: 24px;
    border: 1px solid #e9ecef;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(18, 43, 76, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    isolation: isolate;
}

.best-partner-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top 10% center, rgba(38, 161, 123, 0.28), transparent 65%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.best-partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(18, 43, 76, 0.12);
}

.best-partner-card:hover::after {
    opacity: 1;
}

.best-partner-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: transparent linear-gradient(120deg, var(--accent-coral) 0%, #F6BE24 100%) 0% 0% no-repeat padding-box;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.safe-partner-badge{
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: transparent linear-gradient(125deg, #68B3F5 0%, var(--accent-purple) 100%) 0% 0% no-repeat padding-box;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.best-partner-card-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    color: #1f2937;
}

.best-partner-card-profile-top {
    align-self: stretch;
    padding: 32px 28px 36px;
    border-radius: 24px 24px 0px 0px;
    background: transparent linear-gradient(116deg, #F6FBF9 0%, #F9FBFB 100%) 0% 0% no-repeat padding-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.best-partner-card-body {
    width: 100%;
    padding: 0 28px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    height: 100%;
}

.best-partner-card-profile img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f3f5;
}

.best-partner-store-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.best-partner-location {
    font-size: 14px;
    color: var(--text-slate);
}

.best-partner-card-info {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0px 53px;
    padding-bottom: 10px;
    border-bottom: var(--bg-slate-light) solid 1px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-slate);
}

.best-partner-score,
.best-partner-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.best-partner-introduction {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
}

.best-partner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
    padding: 14px 24px;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    border: 2px solid var(--main-green);
    border-radius: 14px;
    color: var(--main-green) !important;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.best-partner-btn:link,
.best-partner-btn:visited {
    color: var(--main-green) !important;
    text-decoration: none !important;
}

.best-partner-btn:hover,
.best-partner-btn:focus-visible {
    background: var(--main-green);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(14, 165, 233, 0.28);
}

.best-partner-btn:active {
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .banner-section .app-container {
        padding: 40px 20px;
    }

    .banner-title {
        gap: 16px;
    }

    .banner-title h2 {
        font-size: 28px;
    }

    .partner-benefit-list {
        gap: 40px;
        font-size: 28px;
    }

    .partner-filter {
        flex-direction: column;
        gap: 16px;
    }

    .filter-professional {
        width: 100%;
    }

    .filter-professional .article-trade-nav {
        width: 100%;
    }

    .filter-professional .article-trade-nav ul {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .banner-section .app-container {
        padding: 32px 16px;
    }

    .banner-title {
        padding: 16px 0;
        gap: 12px;
    }

    .banner-title h2 {
        font-size: 24px;
        line-height: 1.4;
    }

    .banner-title span {
        font-size: 13px;
    }

    .partner-benefit-list {
        gap: 24px;
        font-size: 24px;
        flex-wrap: wrap;
    }

    .partner-benefit-list li {
        flex: 1;
        min-width: 80px;
    }

    .partner-benefit-list li p {
        font-size: 12px;
    }

    .partner-register-btn {
        position: static;
        transform: none;
        width: 100%;
        max-width: 300px;
        padding: 16px 32px;
        font-size: 15px;
        margin-top: 20px;
    }

    .partner-register-btn:hover {
        transform: translateY(-2px);
    }

    .banner-content {
        gap: 40px;
        padding-bottom: 40px;
    }

    .partner-page.partner {
        padding-top: 32px;
    }

    .partner-filter {
        gap: 12px;
    }

    .filter-area {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100%;
    }

    .filter-area .search-option {
        width: 100%;
    }

    .filter-professional {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 0;
    }

    .filter-professional label {
        font-size: 13px;
    }

    .article-trade-nav ul > li {
        min-width: 90px;
        font-size: 13px;
        padding: 8px 16px;
    }

    .grade-filter {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .grade-filter p {
        font-size: 18px;
    }

    .grade-filter .search-option {
        width: 100%;
        max-width: 200px;
    }

    .best-partner-title,
    .all-partner-title {
        font-size: 28px;
    }

    .best-partner-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .best-partner-card {
        padding: 0 0 24px;
    }

    .best-partner-card-profile-top {
        padding: 24px 20px 28px;
    }

    .best-partner-card-body {
        padding: 0 20px;
        margin-top: 16px;
        gap: 12px;
    }

    .best-partner-card-profile img {
        width: 70px;
        height: 70px;
    }

    .best-partner-store-name {
        font-size: 18px;
    }

    .best-partner-location {
        font-size: 13px;
    }

    .best-partner-card-info {
        padding: 0 20px;
        font-size: 13px;
    }

    .best-partner-short-info {
        gap: 12px;
        flex-wrap: wrap;
    }

    .best-partner-short-info p {
        flex: 1;
        min-width: 80px;
        padding: 8px 12px;
        gap: 6px;
    }

    .best-partner-short-info__green {
        font-size: 20px;
    }

    .best-partner-short-info__text-small {
        font-size: 12px;
    }

    .best-partner-tag-title {
        font-size: 14px;
    }

    .best-partner-tag-list {
        flex-wrap: wrap;
    }

    .best-partner-tag-list span {
        font-size: 12px;
        padding: 4px 12px;
    }

    .best-partner-introduction-span {
        font-size: 14px;
        line-height: 1.5;
    }

    .best-partner-btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .all-partner-list-area {
        margin-top: 32px;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .banner-title h2 {
        font-size: 20px;
    }

    .banner-title span {
        font-size: 12px;
    }

    .partner-benefit-list {
        gap: 16px;
        font-size: 20px;
    }

    .partner-benefit-list li {
        min-width: 70px;
    }

    .partner-benefit-list li p {
        font-size: 11px;
    }

    .partner-register-btn {
        padding: 14px 28px;
        font-size: 14px;
    }

    .article-trade-nav ul > li {
        min-width: 80px;
        font-size: 12px;
        padding: 7px 14px;
    }

    .best-partner-title,
    .all-partner-title {
        font-size: 24px;
    }

    .best-partner-card-profile-top {
        padding: 20px 16px 24px;
    }

    .best-partner-card-body {
        padding: 0 16px;
    }

    .best-partner-card-profile img {
        width: 60px;
        height: 60px;
    }

    .best-partner-store-name {
        font-size: 17px;
    }

    .best-partner-short-info p {
        min-width: 70px;
        padding: 6px 10px;
    }

    .best-partner-short-info__green {
        font-size: 18px;
    }

    .best-partner-btn {
        padding: 11px 18px;
        font-size: 14px;
    }
}

.app-container-full-partner {
    width: 100%;
    height: 100%;
}

.best-partner-card-profile-top {
    display: flex;
    flex-direction: column;

}


.best-partner-count span {
    font-size: 24px;
    color: var(--main-green);
}

.best-partner-short-info {
    display: flex;
    gap: 20px;

}

.best-partner-short-info p {
    border-radius: 16px;
    padding: 10px 20px;
    background-color: var(--bg-slate-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.best-partner-short-info__green {
    color: var(--main-green);
    font-size: 24px;
}

.best-partner-short-info__text-small {
    font-size: 14px;
    color: var(--text-slate);
}

.best-partner-tag-title {
    width: 100%;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
}

.best-partner-tag-list {
    width: 100%;
    display: flex;
    gap: 10px;
}

.best-partner-tag-list span {
    background-color: var(--bg-green-light);
    color: var(--main-green);
    font-size: 14px;
    padding: 5px 15px;
    border-radius: 26px;
}

.best-partner-introduction-span{
    font-size: 15px;
    color: var(--text-slate);
    font-weight: 400;
}

.all-partner-list-area{
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.all-partner-title{
    font-size: 38px;
    color: var(--text-dark);
}

.all-partner-list{
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

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

@media (max-width: 768px){
    .all-partner-list{
        grid-template-columns: 1fr;
    }
}
