﻿.panel-container {
    margin: 0 auto;
}

.panel {
    background: #F75105;
    /* Section Background */

    background: linear-gradient(115deg, rgba(247, 81, 5, 0.9) 16.53%, rgba(255, 149, 0, 0.9) 93.86%);

    border-radius: 40px;
    padding: 40px;
    width: 100%;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 80px;
    letter-spacing: 5%;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.toggle {
    background-color: #FCFCFC;
    border-radius: 50px;
    padding: 8px;
    display: flex;
}

.toggle-btn {
    padding: 13px 34px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    color: #000;
    background: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.toggle-btn.active {
    background-color: #000;
    color: white;
}

.toggle-btn:not(.active) {
    background-color: transparent;
    color: #000;
}

/* 蝣箔?iOS????????????*/
.toggle-btn,
.toggle-btn:visited,
.toggle-btn:link,
.toggle-btn:active {
    color: #000 !important;
    background: transparent !important;
    text-decoration: none !important;
}

.toggle-btn.active,
.toggle-btn.active:visited,
.toggle-btn.active:link,
.toggle-btn.active:active {
    background-color: #000 !important;
    color: #fff !important;
}

.toggle-btn:hover:not(.active),
.toggle-btn:focus:not(.active) {
    background-color: rgba(0, 0, 0, 0.1) !important;
    color: #000 !important;
}

/* 蝘餃?蝡舐?亥???*/
@media (max-width: 768px) {
    .toggle-btn {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
}

.card-grid {
    margin-top: 40px;
    padding-top: 32px;
    padding-bottom: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.card {
    background-color: #FCFCFC;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    position: relative;
    height: 240px;
    gap: 24px;
    align-content: center;
    align-items: center;
}

.card-logo {
    width: 120px;
    height: auto;
    flex-shrink: 0;
}

.card-content {
    flex-grow: 1;
}

.card-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 46px;
    letter-spacing: 0%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 20px;
}

.card-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    text-align: justify;
}

.card-action {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background-color: #FF5500;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.card-action.orange {
    background-color: #FF5500;
}

.card-action.blue {
    background-color: #0066FF;
}

.arrow-right {
    width: 24px;
    height: 24px;
}

.arrow-plus {
    width: 24px;
    height: 24px;
}

@media (max-width: 1200px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 40px;
    }

    .card {
        height: auto;
        min-height: 200px;
    }

    .card-logo {
        width: 100px;
    }

    /* 撟單??銝? */
    /* Note: This uses inline PHP logic in CSS which won't work in .css file unless processed.
       The original code was: .card-title img { content: url('{{ asset('images/arrow-right.svg') }}'); }
       I need to replace this with a relative path or absolute path assuming public folder structure.
       Usually /images/arrow-right.svg works if public/images exists.
    */
    .card-title img {
        content: url('/images/arrow-right.svg');
    }
}

@media (max-width: 600px) {
    .card-grid {
        display: none;
    }

    .influencer-swiper-container {
        display: block;
        width: 100%;
        padding: 20px 0;
        margin-top: 12px;
        overflow: hidden;
    }

    .panel {
        padding: 24px;
        overflow: hidden;
        border-radius: 20px;
    }

    .panel-header {
        width: 100%;
    }

    .toggle {
        width: 100%;
    }

    .toggle-btn {
        flex: 1;
        width: 50%;
    }

    /* 手機版卡片樣式 - 移除固定寬度，讓 Swiper 控制 */
    .card {
        flex-direction: column;
        padding: 32px 24px;
        gap: 0;
        height: auto;
        min-height: 357px;
        width: 100%;
        margin: 0;
        border-radius: 16px;
        position: relative;
        align-items: center;
        text-align: center;
        background-color: #FCFCFC;
        box-sizing: border-box;
    }

    .card-logo {
        width: 120px;
        height: 120px;
        margin-top: 0;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .card-content {
        padding: 0 24px 24px 24px;
        /* 撌血???典?颲寡? */
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        width: 100%;
        box-sizing: border-box;
    }

    .card-title {
        font-family: 'DM Sans', sans-serif;
        font-weight: 700;
        font-size: 20px;
        /* 蝎曄＆?寥?Figma霈曇恣蝔?*/
        line-height: 29px;
        /* 蝎曄＆?寥?Figma霈曇恣蝔?*/
        letter-spacing: 0%;
        margin-bottom: 8px;
        /* ????摮頝?*/
        margin-top: 24px;
        /* ?暹???憸頝?*/
        justify-content: space-between;
        position: relative;
        color: #000000;
        display: flex;
        align-items: center;
    }

    /* ??悌憭渡?銝? */
    .card-title img {
        width: 31px;
        /* 蝎曄＆?寥?Figma霈曇恣蝔?*/
        height: 31px;
        content: url('/images/arrow-right.svg');
    }

    .card-text {
        font-family: 'DM Sans', sans-serif;
        font-weight: 400;
        font-size: 15px;
        /* 蝎曄＆?寥?Figma霈曇恣蝔?*/
        line-height: 24px;
        /* 蝎曄＆?寥?Figma霈曇恣蝔?*/
        letter-spacing: 0%;
        text-align: justify;
        /* 銝斤垢撖寥?嚗?igma霈曇恣蝔?*/
        color: #000000;
        margin: 0;
    }

    .panel-container {
        overflow: hidden;
        padding: 0;
    }

    .logo-title {
        font-size: 36px;
        line-height: 45px;
    }
}



/* 撘瑕閬?璅??隞亦泵?絞銝??璈?/Swiper雿? */
.card-grid {
    display: none !important;
}

.influencer-swiper-container {
    display: block !important;
    padding: 20px 0;
    overflow: hidden;
}

.influencer-swiper-container .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

.influencer-swiper-container .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 32px 24px;
    background: #FCFCFC;
    border-radius: 16px;
    box-sizing: border-box;
}

.influencer-swiper-container .card-logo {
    width: 120px;
    height: 120px;
    margin-top: 0;
    flex-shrink: 0;
    min-height: 120px;
    object-fit: contain;
}

.influencer-swiper-container .card-content {
    width: 100%;
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.influencer-swiper-container .card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 16px;
    width: 100%;
}

.influencer-swiper-container .card-title img {
    width: 32px;
    height: 32px;
}

.influencer-swiper-container .card-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
    color: #000;
}

/* Swiper Pagination 樣式 */
.influencer-swiper-container .swiper-pagination {
    position: relative;
    margin-top: 30px;
    bottom: 0 !important;
}

.influencer-swiper-container .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.influencer-swiper-container .swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.2);
    border-color: #fff;
}

/* Service Number */
.service-number {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 700;
    font-size: 64px;
    line-height: 80px;
    /* identical to box height, or 125% */
    letter-spacing: 0.05em;
    color: #F75105;
}

/* Service Title */
.service-title {
    font-family: 'Noto Sans TC';
    font-style: normal;
    font-weight: 700;
    font-size: 45px;
    line-height: 54px;
    /* identical to box height */
    color: #000000;
}

/* Service Subtitle */
.service-subtitle {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 500;
    font-size: 28px;
    line-height: 36px;
    /* identical to box height, or 129% */
    text-align: justify;
    color: #000000;
    margin-bottom: 1rem;
}

/* Service Description */
.service-description {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 36px;
    /* or 200% */
    text-align: justify;
    color: #000000;
}

/* 手機響應式樣式 */
@media (max-width: 768px) {
    /* KOL collaboration title */
    .service-title {
        font-family: 'Noto Sans TC';
        font-style: normal;
        font-weight: 700;
        font-size: 28px;
        line-height: 36px;
        /* identical to box height */
        color: #000000;
    }

    /* KOL collaboration number */
    .service-number {
        font-family: 'Unbounded';
        font-style: normal;
        font-weight: 700;
        font-size: 32px;
        line-height: 52px;
        /* identical to box height, or 162% */
        letter-spacing: 0.05em;
        color: #F75105;
    }

    /* Service Subtitle - 手機版縮小 */
    .service-subtitle {
        font-family: 'DM Sans';
        font-style: normal;
        font-weight: 500;
        font-size: 18px;
        line-height: 24px;
        text-align: justify;
        color: #000000;
        margin-bottom: 1rem;
    }

    /* KOL collaboration details */
    .service-description {
        font-family: 'DM Sans';
        font-style: normal;
        font-weight: 400;
        font-size: 15px;
        line-height: 25px;
        /* or 167% */
        text-align: justify;
        color: #000000;
    }
}

/* 平板響應式樣式 */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Offline Event Title */
    .service-title {
        font-family: 'Noto Sans TC';
        font-style: normal;
        font-weight: 700;
        font-size: 26px;
        line-height: 31px;
        color: #000000;
    }

    /* Service Number */
    .service-number {
        font-family: 'Unbounded';
        font-style: normal;
        font-weight: 700;
        font-size: 41px;
        line-height: 51px;
        /* identical to box height, or 124% */
        letter-spacing: 0.05em;
        color: #F75105;
    }

    /* Service Subtitle */
    .service-subtitle {
        font-family: 'DM Sans';
        font-style: normal;
        font-weight: 500;
        font-size: 20px;
        line-height: 28px;
        text-align: justify;
        color: #000000;
        margin-bottom: 1rem;
    }

    /* Offline Event Description */
    .service-description {
        font-family: 'DM Sans';
        font-style: normal;
        font-weight: 400;
        font-size: 14px;
        line-height: 30px;
        /* or 214% */
        text-align: justify;
        color: #000000;
    }
}
