/* Match Page Specific Styles */

.container {
    max-width: 1240px;
}

.lg\:tw-pt-20 {
    padding-top: 0!important;
}

/* Stats Section */
.match-stats-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.match-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.match-stats-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 0;
    color: white;
    position: relative;
    z-index: 2;
}

.match-stat-text {
    vertical-align: middle;
    margin-left: 24px;
}

.match-stat-icon img {
    max-width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.match-stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1;
}

.match-stat-label {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 500;
}

.match-stats-cta-btn {
    background: #ef4444;
    color: white;
    padding: 16px 48px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
    position: relative;
    z-index: 2;
}

.match-stats-cta-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
    color: white;
}

/* Stats Section Responsive */
@media (max-width: 768px) {
    .match-stats-section {
        padding: 60px 0;
    }
    
    .match-stats-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .match-stat-item {
        padding: 30px 15px;
        margin-bottom: 20px;
    }
    
    .match-stat-icon img {
        max-width: 60px;
    }
    
    .match-stat-number {
        font-size: 36px;
    }
    
    .match-stat-label {
        font-size: 16px;
    }
    
    .match-stats-cta-btn {
        padding: 14px 32px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
    }
}

/* Hero Section Enhancements */
.match-hero {
    background: #0A111A;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .match-hero {
        min-height: 100vh;
    }
}

/* CTA Button Enhancements */
.match-cta-btn {
    background: #ef4444;
    color: white;
    padding: 8px 48px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.match-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.match-cta-btn:hover::before {
    left: 100%;
}

.match-cta-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
    color: white;
    text-decoration: none;
}

/* Process Steps */




/* 確保手機上三個step保持horizontal顯示 */
.match-section .row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
}

.match-section .row .col-12 {
    flex: 1;
    min-width: 0;
}

.match-process-step {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.match-process-step {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.match-process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.match-process-step:hover {
    transform: translateY(-4px)!important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.match-process-step.active {
    color: white;
    transform: translateY(-2px)!important;
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.3);
}
.match-process-step-1.active {
    background: #F1341C;
}
.match-process-step-1.active img {
    filter: brightness(0) invert(1);
}

.match-process-step-2.active {
    background: #0096FF;
}
.match-process-step-2.active img {
    filter: brightness(0) invert(1);
}

.match-process-step-3.active {
    background: #00C4DB;
}
.match-process-step-3.active img {
    filter: brightness(0) invert(1);
}

/* SVG圖標樣式 */
.match-process-step img {
    width: 48px;
    height: 48px;
    transition: filter 0.3s ease;
    filter: brightness(0) saturate(100%) invert(20%) sepia(100%) saturate(1000%) hue-rotate(0deg) brightness(0.8) contrast(1.2);
}

/* 非active狀態的圖標顏色 */
.match-process-step-1 img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

.match-process-step-2 img {
    filter: brightness(0) saturate(100%) invert(20%) sepia(100%) saturate(1000%) hue-rotate(200deg) brightness(0.8) contrast(1.2);
}

.match-process-step-3 img {
    filter: brightness(0) saturate(100%) invert(50%) sepia(100%) saturate(1000%) hue-rotate(180deg) brightness(0.9) contrast(1.1);
}

.match-process-step:hover:not(.active) {
    border-color: #e5e7eb;
}

/* Step Content */
.match-step-content {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-step-image {
    width: 100%;
    text-align: center;
}

.match-step-image img {
    max-width: 100%;
    height: auto;
}

.image-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
}

.image-placeholder p {
    margin: 5px 0;
    font-size: 14px;
}


/* Form Enhancements */
.match-form {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
}

.match-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #3b82f6);
    border-radius: 16px 16px 0 0;
}

.match-form input,
.match-form select,
.match-form textarea {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.match-form input:focus,
.match-form select:focus,
.match-form textarea:focus {
    outline: none;
    border-color: #ef4444;
    background: white;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Testimonial Cards */
.match-testimonial {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.match-testimonial:hover {
    transform: translateY(-4px);
}

.match-testimonial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 20px solid #3b82f6;
    border-top: 20px solid transparent;
}

/* Knowledge Base Items */
.match-knowledge-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.match-knowledge-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.match-knowledge-item:hover::before {
    transform: scaleX(1);
}

.match-knowledge-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.match-knowledge-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.match-knowledge-item:hover .match-knowledge-image {
    transform: scale(1.05);
}

/* Stats Section */
.match-stats {
    background: #0A111A;
    color: white;
    position: relative;
    overflow: hidden;
}

.match-stat-item {
    padding: 20px;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.match-stat-icon img {
    max-width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.match-stat-number {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

/* Mobile Navigation */
.match-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    z-index: 1000;
    display: none;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.match-mobile-nav-item {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    text-decoration: none;
    color: #6b7280;
    font-size: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.match-mobile-nav-item.active {
    color: #ef4444;
}

.match-mobile-nav-item:hover {
    color: #ef4444;
    text-decoration: none;
}

.match-mobile-nav-icon {
    width: 24px;
    height: 24px;
    margin: 0 auto 4px;
    display: block;
    transition: transform 0.3s ease;
}

.match-mobile-nav-item:hover .match-mobile-nav-icon {
    transform: scale(1.1);
}

.match-mobile-nav-badge {
    position: absolute;
    top: 8px;
    right: 50%;
    transform: translateX(50%);
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translateX(50%) scale(1);
    }
    50% {
        transform: translateX(50%) scale(1.1);
    }
    100% {
        transform: translateX(50%) scale(1);
    }
}

/* Scroll Indicator */
.match-scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.match-scroll-indicator:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Fade-in Animations */
.match-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.match-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .match-hero {
        min-height: 80vh;
        padding: 40px 20px;
    }
    
    .match-hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .match-hero h2 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .match-hero p {
        font-size: 16px;
    }
    
    .match-step-content {
        min-height: 200px;
    }
    
    .match-form {
        padding: 20px;
    }
    
    .match-cta-btn {
        width: 100%;
        text-align: center;
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .match-testimonial {
        margin-bottom: 20px;
    }
    
    .match-knowledge-item {
        margin-bottom: 20px;
    }
    
    .match-mobile-nav {
        display: flex;
    }
    
    body {
        background: #F2F2F2;
    }
    
    .match-stat-number {
        font-size: 36px;
    }
}

@media (min-width: 769px) {
    .match-hero {
        padding: 80px 40px;
    }
    
    .match-hero h1 {
        font-size: 64px;
        line-height: 1.1;
    }
    
    .match-hero h2 {
        font-size: 48px;
        line-height: 1.2;
    }
    
    .match-hero p {
        font-size: 20px;
    }
}

/* Loading States */
.match-loading {
    opacity: 0.6;
    pointer-events: none;
}

.match-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ef4444;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}



/* Knowledge Section */
.knowledge-section {
    width: 100%;
    padding: 64px 0;
    display: flex;
    justify-content: center;
}

.knowledge-title {
    font-size: 32px;
    font-weight: 700;
    color: #252B33;
    text-align: center;
}

.knowledge-cards {
    width: 100%;
    display: flex;
    gap: 32px;
    justify-content: center;
    padding: 0 32px;
    box-sizing: border-box;
}

.knowledge-card {
    flex: 0 0 300px;
    width: 300px;
    background: transparent;
    border-radius: 16px;
    box-shadow: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 auto;
}

.knowledge-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 8px;
}

.knowledge-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.knowledge-card-title:hover .knowledge-image {
    transform: scale(1.05);
}

.knowledge-tag {
    display: block;
    margin: 10px 0 0 0;
    color: #F1341C;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    background: none;
    border-radius: 0;
    padding: 0;
    position: static;
}

.knowledge-card-title {
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
    color: #252B33;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    margin: 10px 0 16px 0;
}

.knowledge-card-title:hover {
    color: #F1341C;
}

.knowledge-card-desc {
    font-size: 13px;
    color: #666;
    margin: 0 4px 16px 4px;
    line-height: 1.6;
    font-weight: 400;
}



/* Brand Testimonials Section */
.testimonials-section {
    width: 100%;
    background: #F7F7F7;
    padding: 64px 0;
    display: flex;
    justify-content: center;
}

.testimonials-inner-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.section-title {
    align-self: stretch;
    text-align: center;
    color: #252B33;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    word-wrap: break-word;
    margin-bottom: 0; /* Adjust as needed for spacing */
}

.testimonial-cards-container {
    width: 100%;
    display: flex;
    gap: 24px;
    justify-content: center;
    padding: 0 32px;
    box-sizing: border-box;
}

.testimonial-card {
    flex: 0 0 300px;
    width: 300px;
    background: white;
    border-radius: 4px;
    padding: 24px 20px;
    position: relative;
    margin: 0 auto;
}

.testimonial-corner-decoration {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    z-index: 2;
}
.testimonial-corner-decoration::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border-top: 24px solid #2196F3;
    border-right: 24px solid transparent;
}
.testimonial-corner-decoration::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 16px solid #2196F3;
    border-right: 16px solid transparent;
}

.testimonial-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 8px;
}

.avatar-wrapper {
    width: 48px;
    height: 48px;
    position: relative;
}

.avatar {
    width: 48px;
    height: 48px;
    left: 0;
    top: 0;
    position: absolute;
    border-radius: 9999px;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: flex-start;
}

.company-name {
    color: #252B33;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
}

.company-industry {
    color: #929599;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
}

.testimonial-quote {
    display: block;
    margin-top: 8px;
    font-size: 15px;
    color: #252B33;
    font-weight: 500;
    line-height: 1.5;
}

.testimonial-quote p {
    margin: 0;
    font-size: 14px;
    color: #252B33;
    font-weight: 500;
    line-height: 1.5;
}

.quote-marks {
    display: flex;
    flex-direction: row;
    gap: 4px;
    position: absolute;
    right: 16px;
    bottom: 16px;
}

.quote-mark {
    width: 16px;
    height: 16px;
    background: #0096FF;
    border-radius: 2px;
}

.blue-mark-1 {
    /* Specific positioning if needed relative to the parent .quote-marks */
}

.blue-mark-2 {
    /* Specific positioning if needed relative to the parent .quote-marks */
}

.carousel-navigation {
    width: 1248px;
    height: 26px;
    left: 16px;
    top: 188px; /* This absolute positioning might need adjustment depending on overall layout */
    position: absolute;
}

.nav-arrow {
    width: 26px;
    height: 26px;
    background: white;
    overflow: hidden;
    position: absolute;
}

.arrow-left {
    left: 0px;
    top: 0px;
}

.arrow-right {
    left: 1248px;
    top: 26px;
    transform: rotate(-180deg);
    transform-origin: top left;
}

.arrow-icon {
    width: 8px;
    height: 11.56px;
    left: 9px;
    top: 7px; /* Adjust top for right arrow */
    position: absolute;
    overflow: hidden;
}

.arrow-right .arrow-icon {
    top: 7.44px; /* Specific top for right arrow */
}

.arrow-icon > div { /* The black triangle */
    width: 8px;
    height: 11.56px;
    left: 0px;
    top: 0px;
    position: absolute;
    background: black;
}

.carousel-dots {
    display: inline-flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 7px;
}

.dot {
    width: 7px;
    height: 7px;
    background: #D9D9D9;
    border-radius: 9999px;
}

.dot.active {
    width: 24px;
    height: 7px;
    position: relative;
    background: #F1341C;
    border-radius: 999px;
}


/* 輪播樣式 */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-container {
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.3s ease;
}

.testimonial-slide {
    flex: 0 0 100%;
    width: 100%;
}

/* 拖曳功能樣式 */
.testimonial-container,
.knowledge-container {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.testimonial-container:active,
.knowledge-container:active {
    cursor: grabbing;
}

.testimonial-track,
.knowledge-track {
    transition: transform 0.3s ease;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.testimonial-dot.active {
    background: #ef4444;
}

/* Knowledge輪播樣式 */
.knowledge-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.knowledge-container {
    overflow: hidden;
    width: 100%;
}

.knowledge-track {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
}

.knowledge-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.knowledge-cards-container {
    width: 100%;
    display: flex;
    gap: 24px;
    justify-content: center;
    padding: 0 32px;
    box-sizing: border-box;
}

.knowledge-slide .knowledge-card {
    width: 300px;
    max-width: 90%;
    margin: 0 auto;
}

/* 移除左右按鈕樣式 */

.knowledge-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.knowledge-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.knowledge-dot.active {
    background: #ef4444;
}

/* Knowledge輪播響應式設計 */
@media (max-width: 768px) {
    .knowledge-slide .knowledge-card {
        width: 280px;
        max-width: 95%;
        margin: 0 auto;
    }
    
    .knowledge-image-wrapper {
        height: 180px;
    }
    
    .knowledge-card-title {
        font-size: 15px;
        line-height: 1.4;
    }
    
    .knowledge-card-desc {
        font-size: 12px;
        line-height: 1.5;
    }
}