/* Main Page Styles */

/* Hero Banner */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.hero-image-full {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-text {
    color: white;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.highlight {
    color: var(--primary-color);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 500px;
    height: auto;
}

.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 20;
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-nav-btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

.hero-nav-btn.prev {
    left: 2rem;
}

.hero-nav-btn.next {
    right: 2rem;
}

/* Hero Banner Indicators */
.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.hero-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero-indicators .indicator.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* Search Section */
.search-section {
    padding: 2rem;
    display: flex;
    justify-content: center;
    width: 50%;
    margin: auto;
    min-width: 500px;
    z-index: 999;
    position: absolute;
    top: 11%;
    right: 0%;
}

.search-box {

    width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 2rem 1.5rem;
        border: 1px solid #eceef2;
        background-color: #f7f7f9;
        border-radius: 16px;
}

.search-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1rem 0 2rem 0;
    text-align: center;
    width: 100%;
}

.highlight-text {
    color: var(--primary-color);
}

.search-form {
    display: grid;
    gap: 1.5rem;
    align-items: end;
}

.search-actions {
        display: contents;
        align-items: center;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-select {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    background: white;
}

.location-select {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

.location-select:hover {
    border-color: var(--primary-color);
}

.location-select .placeholder {
    color: #9ca3af;
}

.date-input-group {
    display: flex;
    gap: 0.5rem;
}

.date-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    background: white;
    transition: all 0.2s;
}

.date-input:hover {
    border-color: var(--primary-color);
}

.date-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.location-select::after {
    content: '▼';
    font-size: 0.75rem;
    color: #9ca3af;
}

.date-group .date-range {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    color: #6b7280;
}


.search-btn {
    padding: 0.875rem 2.5rem;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 0.375rem;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
}

.search-nearby-btn {
    padding: 0.875rem 1rem;
    background: #eef4ff;
    color: #1f5fd6;
    border: 1px solid #cdddfa;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.search-nearby-btn:hover {
    background: #e1ecff;
    border-color: #b9cff7;
}

.search-nearby-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.search-btn:hover {
    background-color: var(--primary-hover);
}

/* 아이콘 왼쪽 고정 */
.search-btn .hero-btn-icon {
    position: absolute;
    left: 22px;

    width: 20px;
    height: 20px;
}

/* 텍스트 중앙 */
.search-btn span {
    width: 100%;
    text-align: center;
    padding-left: 15px;
}
/* Companies Section */
.companies-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
#sectionLocationLabel {
    padding: 0 8px;
    font-size: 1.5rem;
}
.section-title .count {color: var(--primary-color);     font-size: 1.5rem; }

.companies-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.companies-pagination {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.companies-page-info {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    min-width: 4rem;
    text-align: center;
}

.companies-page-btn {
    height: 44px;
    padding: 0 1.5rem;
    background-color: #fff;
    color: #121418;
    border: 1px solid #eceef2;
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.companies-page-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.companies-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.company-card {
    border-radius: 0.5rem;
    padding: 0;
    background: #ffffff;
    border: 1px solid #eceef2;
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-direction: row;
    margin-top: 0;
}

.badge {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.company-distance{
    color: #3fadc2;
    font-size: 1rem;
    font-weight: 600;
}


.company-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.company-phone {
    font-size: 0.9375rem;
    color: #6b7280;
}

.company-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-call {
    padding: 0.625rem 1.25rem;
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}


.btn-detail {
    padding: 0.625rem 1.25rem;
    border: none;
    color: white;
    border-radius: 6.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: #3fadc2;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    padding: 2rem;
}

.car-item {
    text-align: center;
}

.car-image {
    background: #f9fafb;
    border-radius: 0.375rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

.more-btn {
    display: block;
    margin: 3rem auto 0;
    height: 48px;
    padding: 0 3rem;
    background-color: #fff;
    color: #121418;
    border: 1px solid #eceef2;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(143deg, #304e9e 64.26%, #3fadc2 100%);
    padding: 2rem 2rem;
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 1rem;
    color: #d0d7ea;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0.5rem 0;
}

.stat-value.highlight-value {
    color: var(--primary-color);
}

.stat-desc {
    font-size: 0.9rem;
    color: #d0d7ea;
    display:none;
}

/* Auto Find Section */
.auto-find-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem 4rem;
    border-bottom: 1px solid #dae1e6;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title-main {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 15px 0;

}

.view-all {
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
}

.view-all:hover {
    color: var(--primary-color);
}

.auto-find-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}
.more_btn-area{
    width: 100%;
    margin-top: 16px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}



.find-card {
    position: relative;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.find-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #7e7f92;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    padding: 1rem;
}

.card-location {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

/* Used Cars Section */
.used-cars-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #6b7280;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.used-cars-grid {
    max-width: 1130px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding-top: 1rem;
}

.used-car-card {
    position: relative;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.used-car-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.car-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #7e7e92;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.car-image-large {
    position: relative;
    aspect-ratio: 3 / 2;
    background: #f3f4f6;
}

.car-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-details {
    padding: 1rem;
}

.car-model {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.car-price {
    font-size: 0.875rem;
    color: #6b7280;
    display: none;
}

.car-sale-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2f60d9;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.car-spec {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.35;
}

/* Sub Banner (TYPE=SUB — 중고차 매매 ↔ 고객센터 사이) */
.sub-banner-section {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.sub-banner-section[hidden] {
    display: none !important;
}

.sub-banner-inner {
    width: 100%;
}

.sub-banner-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
}

.sub-banner-item {
    flex: 1 1 min(100%, 360px);
    min-width: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.sub-banner-item img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    object-position: center;
}

/* Location Modal */
.location-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.location-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
}

.modal-close svg {
    width: 24px;
    height: 24px;
    color: #6b7280;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.search-area {
    margin-bottom: 1.5rem;
}

.current-location-btn {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid #cfd4dc;
    border-radius: 0.75rem;
    background: #f8f9fb;
    color: #2171e7;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.current-location-btn:hover {
    background: #eef4ff;
    border-color: #b8c7e6;
}

.current-location-icon {
    font-size: 1em;
    line-height: 1;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper svg {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    color: #9ca3af;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.1);
}

.transport-section {
    margin-bottom: 1.5rem;
}

.section-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.transport-buttons {
    display: flex;
    gap: 0.75rem;
}

.transport-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.transport-btn:hover {
    border-color: var(--primary-color);
    background: #fff7ed;
    color: var(--primary-color);
}

.transport-btn svg {
    width: 20px;
    height: 20px;
}

.location-section {
    margin-bottom: 1rem;
}

.location-content {
    display: flex;
    gap: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    overflow: hidden;
    min-height: 300px;
    max-height: 400px;
}

.location-sidebar {
    width: 200px;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
}

.location-category {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.location-category:hover {
    background: #f3f4f6;
}

.location-category.active {
    background: white;
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.location-main {
    flex: 1;
    padding: 0.5rem;
    overflow-y: auto;
}

.location-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.location-item {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    align-items: center;
}

.location-item:hover {
    background: #f9fafb;
    color: var(--primary-color);
}

.location-item:last-child {
    border-bottom: none;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
}

.btn-modal-close {
    padding: 0.75rem 3rem;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-close:hover {
    background: #4b5563;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .search-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .search-nearby-btn,
    .search-btn {
        width: 100%;
    }

    .cars-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .auto-find-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .used-cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-container {
        width: 95%;
        max-height: 85vh;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .company-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f7f7f9;
        padding: 1rem 0.6rem;
        flex-direction: column;
    }

    /* 업체별 차량 리스트: 모바일에서 가로 스크롤 */
    .cars-grid {
        display: flex;
        gap: 0.875rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 1.25rem;
        grid-template-columns: unset;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .cars-grid::-webkit-scrollbar {
        height: 6px;
    }

    .cars-grid::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 999px;
    }

    .car-item {
        flex: 0 0 140px;
        min-width: 140px;
        scroll-snap-align: start;
    }



    .stats-section {
        gap: 3rem;
        justify-content: center;
        padding: 1rem 2rem 1rem;
    }

    /* 렌터카 자동찾기: 모바일 2개씩 */
    .auto-find-grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .auto-find-grid .find-card {
        flex: 0 0 160px; /* 카드 너비 */
        min-width: 160px;
        scroll-snap-align: start;
    }
    /* 중고차 매매: 모바일 2개씩 */
    .used-cars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .location-content {
        flex-direction: column;
        min-height: 400px;
    }

    .location-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        max-height: 150px;
        display: none;
    }

    .transport-buttons {
        flex-direction: column;
    }

    .search-section {
        padding: 2rem;
        display: flex;
        min-width: 100%;
        z-index: 999;
        position: absolute;
        top: 16%;
        right: 0%;
    }

    .search-box {
        padding: 1.5rem 2rem;
        width: 100%;
    }

    .section-title {
        font-size: 1.1rem;     margin-bottom: 1rem;
    }
    #sectionLocationLabel{font-size: 1.3rem;}

    .section-title .count {
        font-size: 1.3rem;
    }

    .company-actions {
        gap: 0.6rem;
        margin-top: 0.6rem;
    }

    .btn-call {
        font-size: 0.9rem;
        padding: 0.4rem 0.7rem;
        height: 32px;
    }

    .btn-detail {
        font-size: 0.9rem;
        padding: 0.4rem 0.7rem;
        height: 32px;
    }

    .stat-desc {
        display: none;
    }
    .stat-label{    font-size: 0.8rem;         margin-bottom: 0;}
    .stat-value{    font-size: 1.3rem;     margin: 0;}
    .section-title-main{  font-size: 1.5rem; margin-bottom: 0;}
    .companies-section {
        margin: 4rem auto 3rem;
        padding: 0 1.5rem;
    }
    .section-title{    justify-content: center;}
    .auto-find-section {
        padding: 0rem 1.5rem;
    }
    .more-btn{    margin: 1rem auto 1rem; }
    .used-cars-section {
        padding: 0rem 1.5rem;
    }
    .sub-banner-section {
        padding: 0 1.5rem;
        margin-bottom: 2rem;
    }


/* =========================
   모바일 전용 메인 배너
========================= */


    /* 기존 이미지 숨김 */
       /* 기존 배너 이미지 숨김 */
    .hero-image-full img {
        display: none;
    }

    /* 모바일 전용 배너 */
    .hero-banner {
        position: relative;
        height: 425px !important;
        padding: 0 16px 24px;
        background:
            url('https://scra2026.mycafe24.com/banner_mo_new.jpg')
            center top / contain no-repeat;
        background-color: #07172f;
        border-radius: 0;
        overflow: visible;
        display: block;
    }

    /* 기존 absolute 제거 */
    .hero-content {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .hero-image-full {
        display: none;
    }

    /* 좌우 버튼 제거 */
    .hero-nav-btn,
    .hero-indicators {
        display: none !important;
    }

    /* 검색영역 */
    .search-section {
        position: absolute;
        left: 0;
        right: 0;
        top: 280px;
        width: 100%;
        min-width: 0;
        padding: 0 32px;
        z-index: 20;
    }

    /* 검색 박스 */
    .search-box {
        width: 100%;
        max-width: none;
        padding: 24px 20px 22px;
        border-radius: 8px;
        background: rgba(255,255,255,0.97);
        border: 1px solid #e7ebf2;
        box-shadow: 0 14px 34px rgba(15,23,42,0.16);
    }

    /* 제목 */
    .search-title {
        margin: 0 0 16px;
        text-align: left;
        font-size: 22px;
        line-height: 1.35;
        font-weight: 800;
        display: none;
    }

    /* 라벨 */
    .form-group label {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 8px;
         display: none;
    }

    /* 셀렉트 */
    .form-select {
        height: 48px;
        border-radius: 8px;
        padding: 0 16px;
        font-size: 16px;
    }

    /* 버튼 */
    .search-btn {
        width: 100%;
        height: 48px;
        border-radius: 8px;
        font-size: 17px;

        background: linear-gradient(90deg, #0d49dc 0%, #0a36b8 100%);
    }

    /* 내 주변 버튼 */
    .search-nearby-btn {
        width: 100%;
        height: 58px;
        border-radius: 14px;
        background: linear-gradient(90deg, #0d49dc 0%, #0a36b8 100%);
        color: #fff;
        border: none;
        font-size: 17px;
        font-weight: 700;
        box-shadow: 0 8px 20px rgba(13,73,220,0.22);
    }

    /* 업체 리스트와 간격 */
    .companies-section {
        margin-top: 20px;
    }

    .search-form{  gap: 0.7rem; }

}




@media (max-width: 480px) {
    .company-phone{display: none;}

    .hero-title {
        font-size: 1.5rem;
    }


    /* 업체 차량은 계속 가로 스크롤 */
    .cars-grid {
        display: flex;
        gap: 0.75rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 1rem;
        grid-template-columns: unset;
    }

    .car-item {
        flex: 0 0 130px;
        min-width: 130px;
    }

    /* 자동찾기 / 중고차 모두 2개씩 */
    .auto-find-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .used-cars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .find-card,
    .used-car-card {
        min-width: 0;
    }

    .card-info,
    .car-details {
        padding: 0.75rem;
    }

    .card-title,
    .car-model {
        font-size: 0.9rem;
    }
}

.card-title,
.car-model {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}




.support-section {
    padding: 90px 20px;
    background: #f6f8fc;
}

.support-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.support-sidebar,
.support-content {
    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

/* sidebar */
.support-sidebar {
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 760px;
}

.support-sidebar-badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #156af0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.support-sidebar h2 {
    font-size: 2.1rem;
    line-height: 1.2;
    color: #111827;
    margin-bottom: 18px;
    font-weight: 800;
}

.support-time {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.9;
}

.support-notice {
    margin-top: 28px;
    padding: 16px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fbff, #eef5ff);
    border: 1px solid #dbeafe;
    font-size: 14px;
    line-height: 1.4;
    color: #345;
    font-weight: 600;
}

.support-contact {
    display: none;
    flex-direction: column;
    gap: 14px;
    margin-top: 30px;
}

.support-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #111827;
    border: 1px solid #e9edf4;
    border-radius: 16px;
    padding: 14px 16px;
    transition: all 0.2s ease;
    background: #fff;
}

.support-contact-item:hover {
    border-color: #cfe0ff;
    background: #f8fbff;
    transform: translateY(-1px);
}

.support-contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f3f7ff;
    color: #156af0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.support-contact-icon svg {
    width: 20px;
    height: 20px;
}

.support-contact-item strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.support-contact-item span:last-child {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: #6b7280;
}

/* content */
.support-content {
    padding: 28px;
}

.support-search-wrap {
    margin-bottom: 18px;
}

.support-search-box {
    position: relative;
}

.support-search-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: #9aa4b2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-search-icon svg {
    width: 20px;
    height: 20px;
}

.support-search-box input {
    width: 100%;
    height: 58px;
    border: 1px solid #d8e0ea;
    border-radius: 16px;
    padding: 0 18px 0 48px;
    font-size: 15px;
    color: #111827;
    outline: none;
    transition: all 0.2s ease;
    background: #fff;
}

.support-search-box input:focus {
    border-color: #156af0;
    box-shadow: 0 0 0 4px rgba(21, 106, 240, 0.08);
}

.support-main-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.support-main-tab {
    border: 1px solid #e3e9f2;
    background: #fbfcff;
    border-radius: 18px;
    min-height: 92px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.22s ease;
    text-align: left;

}

.support-main-tab:hover {
    transform: translateY(-2px);
    border-color: #cfe0ff;
    box-shadow: 0 10px 22px rgba(21, 106, 240, 0.08);
}

.support-main-tab.active {
    background-color: #3c66d7;
    border-color: transparent;
    color: #fff;
}

.support-main-tab .tab-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 106, 240, 0.08);
    color: #156af0;
    margin-bottom: 10px;
}

.support-main-tab.active .tab-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.support-main-tab .tab-icon svg {
    width: 20px;
    height: 20px;
}

.support-main-tab > span:not(.tab-icon) {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.tab-badge {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-style: normal;
}

.badge-general {
    background: #eaf3ff;
    color: #156af0;
}

.badge-member {
    background: #efe9ff;
    color: #6d42d8;
}


/* guide */
.support-guide {
    display: flex;
    gap: 14px;
    border-radius: 18px;
    padding: 18px 18px;
    margin-bottom: 18px;
    border: 1px solid;
}

.guide-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-icon svg {
    width: 22px;
    height: 22px;
}

.support-guide strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
}

.support-guide p {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.guide-general {
    background: #f8fbff;
    border-color: #dbeafe;
    color: #3d5371;
}

.guide-general .guide-icon {
    background: #eaf3ff;
    color: #156af0;
}

.guide-member {
    background: #fbf9ff;
    border-color: #eadfff;
    color: #323038;
}

.guide-member .guide-icon {
    background: #f0e9ff;
    color: #6d42d8;
}

.guide-basic {
    background: #f8fafc;
    border-color: #e5e7eb;
    color: #374151;
}

.guide-basic .guide-icon {
    background: #eef2f7;
    color: #4b5563;
}

/* sub tabs */
.support-sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.support-sub-tab {
    border: 1px solid #e3e9f2;
    background: #fff;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.support-sub-tab:hover {
    border-color: #cfe0ff;
    color: #156af0;
    background: #f8fbff;
}

.support-sub-tab.active {
    background: #3c66d8;
    border-color: #3c66d8;
    color: #fff;
}

/* panels */
.support-panel,
.support-sub-panel {
    display: none;
}

.support-panel.active,
.support-sub-panel.active {
    display: block;
}

/* faq */
.support-faq-list {
    border-top: 1px solid #eef2f7;
}

.support-faq-item {
    border-bottom: 1px solid #eef2f7;
    background: #fff;
}

.support-faq-question {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 24px 56px 24px 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    color: #111827;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.support-faq-question:hover {
    color: #156af0;
}

.support-faq-question::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 11px;
    height: 11px;
    border-right: 2px solid #a2acb9;
    border-bottom: 2px solid #a2acb9;
    transform: translateY(-60%) rotate(45deg);
    transition: all 0.2s ease;
}

.support-faq-item.open .support-faq-question::after {
    transform: translateY(-35%) rotate(-135deg);
    border-color: #156af0;
}

.support-faq-answer {
    display: none;
    padding: 0 10px 22px 10px;
    font-size: 15px;
    line-height: 1.9;
    color: #4b5563;
    word-break: keep-all;
}

.support-faq-item.open .support-faq-answer {
    display: block;
}

/* search hidden */
.support-faq-item.hidden-by-search {
    display: none;
}

@media (max-width: 1100px) {
    .support-inner {
        grid-template-columns: 1fr;
    }

    .support-sidebar {
        min-height: auto;
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .support-section {
        padding: 30px 16px;
    }

.support-notice{
    margin-top: 10px;
    padding: 8px 12px;

}
    .support-content,
    .support-sidebar {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .support-main-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .support-main-tab {
        min-height: 88px;
        padding: 14px 12px;
        border-radius: 16px;
    }

    .support-main-tab > span:not(.tab-icon) {
        font-size: 14px;
    }

    .support-sub-tabs {
        gap: 10px;
    }

    .support-sub-tab {
        font-size: 13px;
        height: 40px;
        padding: 0 14px;
    }

    .support-search-box input {
        height: 52px;
        font-size: 14px;
        border-radius: 14px;
    }

    .support-faq-question {
        font-size: 15px;
        padding: 20px 44px 20px 4px;
    }

    .support-faq-answer {
        font-size: 14px;
        padding: 0 4px 18px 4px;
    }

    .support-sidebar h2 {
        font-size: 1.8rem;
    }
     .support-contact{  margin-top: 0px;}
}


@media (max-width: 768px) {

    .companies-list {
        gap: 14px;
    }

    /* 1줄: 업체명 */
    .company-name {
       grid-column: 2 !important;
               grid-row: 1 !important;
               width: 100% !important;
               margin: 2px 0 0 !important;
               font-size: 21px !important;
               font-weight: 800 !important;
               line-height: 1.25 !important;
               color: #111827 !important;
               white-space: nowrap !important;
               overflow: hidden !important;
               text-overflow: ellipsis !important;
    }


    .company-distance {
        order: 3;
        display: inline-block;
        grid-column: 1 !important;
                grid-row: 2 !important;
                align-self: end !important;
                justify-self: center !important;
                margin-top: 35px !important;
                color: #304e9e !important;
                font-size: 13px !important;
                font-weight: 700 !important;
    }

    .company-card {
        border-radius: 18px !important;
               border: 1px solid #edf1f7 !important;
               background: #fff !important;
               overflow: hidden !important;
               box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05) !important;

    }

    .company-header {
        display: block !important;
               padding: 18px 18px 14px !important;
               background: #fff !important;
               border-bottom: none !important;
    }

    .company-info {
         display: grid !important;
                grid-template-columns: 82px 1fr !important;
                grid-template-rows: auto auto auto !important;
                column-gap: 18px !important;
                row-gap: 4px !important;
                align-items: start !important;
                width: 100% !important;
    }
     /* 지역 뱃지 */
        .company-info .badge {
            grid-column: 1 !important;
            grid-row: 1 / 4 !important;
            width: 78px !important;
            min-height: 60px !important;
            border-radius: 8px !important;
            background: #f3f7ff !important;
            color: #304e9e !important;
            font-size: 16px !important;
            font-weight: 800 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            text-align: center !important;
            padding: 0 !important;
            line-height: 1.25 !important;
            box-shadow: none !important;
        }

    /* 업체명 맨 위 */
    .company-name {
        order: 1;
        width: 100%;
        margin: 0;
        font-size: 17px;

        line-height: 1.35;
        color: #111827;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* badge 둘째 줄 */
    .badge {
        order: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 26px;
        padding: 0 10px;
        color: #fff;
        font-size: 12px;
        line-height: 1;
    }


    .company-phone {
        display: none;
        grid-column: 2 !important;
                grid-row: 2 !important;
                display: block !important;
                font-size: 15px !important;
                font-weight: 500 !important;
                color: #8b95a5 !important;
                line-height: 1.4 !important;
    }
    /* 조합 공식 회원사 표시 */
        .company-phone::after {
            content: "✓ 조합 공식 회원사";
            display: inline-flex;
            align-items: center;
            margin-top: 7px;
            padding: 5px 10px;
            border-radius: 999px;
            background: #f3f7ff;
            color: #304e9e;
            font-size: 13px;
            font-weight: 800;
            line-height: 1;
        }

    /* 버튼은 헤더에서는 숨김 */
    .company-actions {
       display: grid !important;
               grid-template-columns: 1fr 1fr !important;
               gap: 10px !important;
               margin-top: 20px !important;
    }

    .car-item {
        text-align: center;
        min-width: 0;
    }

    .car-image {
        background: #f8fafc;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 8px;
        border: 1px solid #eef2f7;
    }

    .car-image img {
        width: 100%;
        aspect-ratio: 1.45 / 1;
        object-fit: contain;
        display: block;
    }

    .car-name {
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
 .btn-call {
        background: #fff !important;
        color: #304e9e !important;
        border: 1px solid #d9e2f3 !important;
    }

    .btn-detail {
        background: linear-gradient(90deg, #0d49dc 0%, #0a36b8 100%) !important;
        color: #fff !important;
        border: none !important;
    }

    /* 차량 영역 */

 .cars-grid::-webkit-scrollbar {
        height: 6px;
    }

    .cars-grid::-webkit-scrollbar-thumb {
        background: #d7dce5;
        border-radius: 999px;
    }

    .car-item {
        flex: 0 0 92px !important;
        min-width: 92px !important;
        scroll-snap-align: start;
        text-align: center;
    }

    .car-image {
        background: #f8fafc !important;
        border: 1px solid #eef2f7 !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        margin-bottom: 8px !important;
    }


    .car-image {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        margin-bottom: 8px !important;
    }

    .car-image img {
        width: 100% !important;
        height: 74px !important;
        object-fit: contain !important;
        display: block !important;
    }

    .car-name {
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #111827 !important;
        line-height: 1.2 !important;
    }
    /* 카드 하단 버튼 영역을 가짜로 만들어주는 느낌 */
    .company-card::after {
        content: "";
        display: block;
        height: 0;
    }

    .company-card {
        position: relative;
        margin-bottom: 10px;
    }

    .company-card .btn-detail,
    .company-card .btn-call {
        display: none;
    }

    /* 모바일용 하단 버튼 느낌 */
    .company-card .cars-grid + * {
        display: none;
    }

    .company-card::before {
               content: "업체상세";
               position: absolute;
               right: 16px;
               bottom: 14px;
               width: 108px;
               height: 36px;
               border-radius: 12px;
               background: #3fadc2;
               color: #fff;
               font-size: 15px;
               font-weight: 500;
               line-height: 38px;
               text-align: center;
               pointer-events: none;
    }


    .car-item:last-child,
    .car-item:nth-last-child(2),
    .car-item:nth-last-child(3) {
        margin-bottom: 0;
    }
        /* 버튼 다시 살리기 */
        .company-actions {
            display: grid !important;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-top: 10px;
        }

        .company-card .btn-call,
        .company-card .btn-detail {
            display: flex !important;
        }

        .btn-call,
        .btn-detail {
             height: 40px !important;
                    border-radius: 8px !important;
                    font-size: 15px !important;
                    font-weight: 600 !important;
                    display: flex !important;
                    align-items: center !important;
                    justify-content: center !important;
        }

        /* 기존 가짜 버튼 제거 */
        .company-card::before {
            display: none !important;
        }
   .companies-section .section-title {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 6px !important;
        text-align: center !important;
        line-height: 1.35 !important;
    }

    /* 업체수 */
    .companies-section .section-title .count {
        order: 2 !important;
        color: #304e9e !important;
        font-size: 1rem !important;
        font-weight: 800 !important;
    }

    /* 위치 */
    .companies-section #sectionLocationLabel {
        order: 3 !important;
        flex-basis: 100% !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-top: 8px !important;
        padding: 6px 12px !important;
        width: fit-content !important;
        margin-left: auto !important;
        margin-right: auto !important;
        border-radius: 999px !important;
        background: #eef4ff !important;
        color: #304e9e !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
    }

    .companies-section #sectionLocationLabel::before {
        content: "[" !important;
        margin-right: 2px !important;
    }

    .companies-section #sectionLocationLabel::after {
        content: "]" !important;
        margin-left: 2px !important;
    }

}

@media (max-width: 480px) {
    .companies-section {
        padding: 0 15px;
    }

    .companies-list {
        gap: 12px;
    }

    .company-header {
        padding: 14px 14px 8px;
    }




    .car-image {
        border-radius: 10px;
        margin-bottom: 6px;
    }


}


/* =========================
   앱 다운로드버튼
========================= */
.app-download-section {
    width: 100%;
    margin: 56px 0;
}

.app-banner-section {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    background: #f7faff;
    box-shadow: 0 16px 40px rgba(21, 44, 88, 0.08);
}

.app-banner-visual img {
    width: 100%;
    display: block;
}

.app-download-wrap {
    position: absolute;
    left: 72px;
    bottom: 28%;
    z-index: 5;
}

.app-download-title {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 500;
    color: #081a33;
}

.app-download-buttons {
    display: flex;
    gap: 14px;
}

.app-download-buttons a {
    display: block;
}

.app-download-buttons img {
    height: 58px;
    display: block;


    transition: transform .18s ease;
}

.app-download-buttons img:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .app-download-section {
        margin: 40px 0;
        padding: 0 16px;
    }

    .app-banner-section {
        margin: 0;
        border-radius: 18px;
    }

    .app-banner-visual img {
        width: 100%;
        display: block;
    }

    .app-download-wrap {
        position: static;
        padding: 16px 18px 20px;
        background: #fff;
    }

    .app-download-title {
        margin: 0 0 12px;
        font-size: 15px;
        font-weight: 800;
        color: #081a33;
    }

    .app-download-buttons {
        display: flex;
        gap: 8px;
    }

    .app-download-buttons a {
        flex: 1;
        min-width: 0;
    }

    .app-download-buttons img {
        width: 100%;
        height: auto;
        max-height: 44px;
        object-fit: contain;
        border-radius: 10px;
    }
}
/* =========================
   공식 회원사 영역
========================= */

.official-member-section {
    width: 100%;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #06183f 0%, #0b2f78 58%, #07204a 100%) !important;
    display: none;
}

.official-member-card {
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 36px;
    color: #fff;

    display: flex;
    align-items: center;
    gap: 40px;
}

.official-top {
    flex: 0 0 460px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.official-badge img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    display: block;
}

.official-text {
    flex: 1;
}

.official-sub {
    display: block;
    font-size: 14px;
    opacity: 0.82;
    margin-bottom: 6px;
    font-weight: 600;
}

.official-text h3 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.25;
}

.official-text p {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.88);
    word-break: keep-all;
}

.official-features {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
}

.feature-item {
    text-align: center;
    padding: 0 20px;
    position: relative;
    display: block;
}

.feature-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 64px;
    background: rgba(255,255,255,0.12);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);

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

    font-size: 28px;
}

.feature-item span {
    display: block;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,0.92);
    word-break: keep-all;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

/* =========================
   공식 회원사 영역 - 모바일
========================= */

@media (max-width: 768px) {

    .official-member-section {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: linear-gradient(135deg, #06183f 0%, #0b2f78 58%, #07204a 100%) !important;
    }

    .official-member-card {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 28px 32px 26px !important;

        display: block !important;
        color: #fff !important;
    }

    .official-top {
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
    }

    .official-badge img {
        width: 82px !important;
        height: 82px !important;
    }

    .official-sub {
        font-size: 12px !important;
        margin-bottom: 5px !important;
    }

    .official-text h3 {
        font-size: 24px !important;
        line-height: 1.25 !important;
    }

    .official-text p {
        margin-top: 10px !important;
        font-size: 14px !important;
        line-height: 1.55 !important;
    }

    .official-features {
        margin-top: 22px !important;
        padding-top: 20px !important;
        border-top: 1px solid rgba(255,255,255,0.12) !important;

        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0 !important;
    }

    .official-features .feature-item {
        display: block !important;
        padding: 0 8px !important;
    }

    .official-features .feature-item:nth-child(4) {
        display: none !important;
    }

    .feature-item:not(:last-child)::after {
        top: 8px !important;
        transform: none !important;
        height: 56px !important;
        background: rgba(255,255,255,0.14) !important;
    }

    .official-features .feature-item:nth-child(3)::after {
        display: none !important;
    }

    .feature-icon {
        width: 52px !important;
        height: 52px !important;
        margin-bottom: 10px !important;
        font-size: 22px !important;
    }

    .feature-item span {
        font-size: 12px !important;
        line-height: 1.5 !important;
        font-weight: 700 !important;
    }

      .sub-banner-section {
            width: 100% !important;
            margin: 0 !important;
            padding: 0 16px !important;
            box-sizing: border-box !important;
        }

        .sub-banner-inner,
        .sub-banner-strip,
        .sub-banner-item {
            width: 100% !important;
        }

        /* 기존 img 숨김 */
        .sub-banner-item img {
            display: none !important;
        }

        /* 모바일 전용 배너 */
        .sub-banner-item {
            aspect-ratio: 1 / 1 !important;

            background-image:
                url('https://scra2026.mycafe24.com/banner_mo02.jpg');

            background-size: cover !important;
            background-position: center center !important;
            background-repeat: no-repeat !important;

            border-radius: 24px !important;
            overflow: hidden !important;

            box-shadow: 0 10px 28px rgba(15,23,42,0.12) !important;
        }
}

@media (min-width: 769px) {
    .stats-section {
        display: none !important;
    }
}