/* ============================================
   service.css — Service Page Styles
   ============================================ */

/* --- Service Detail Section --- */
.service-detail__header {
    margin-bottom: var(--space-2xl);
}

.service-detail__number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    background: var(--color-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: block;
    margin-bottom: var(--space-sm);
}

.service-detail__label {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-secondary);
    display: block;
    margin-bottom: var(--space-sm);
}

.service-detail__title {
    font-size: var(--text-h2);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.service-detail__desc {
    font-size: var(--text-body-lg);
    color: var(--color-text-secondary);
    max-width: 700px;
    line-height: 1.8;
}

.service-detail__cta {
    margin-top: var(--space-2xl);
    text-align: center;
}

/* --- Cinematic Full-Width Banner --- */
.service-detail__cinema {
    position: relative;
    width: 100%;
    height: 340px;
    margin-bottom: var(--space-2xl);
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.service-detail__cinema-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.service-detail__cinema-overlay {
    display: none;
}

.service-detail__cinema-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    max-width: 600px;
    max-height: 70%;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 768px) {
    .service-detail__cinema {
        height: 220px;
    }
}

@media (min-width: 1200px) {
    .service-detail__cinema {
        height: 420px;
    }
}

/* Proposal 1: Subtle Background Color */
.service-detail__content {
    background-color: transparent;
    padding: var(--space-xl) 0;
}

.service-detail__content>* {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.service-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.service-feature {
    padding: var(--space-xl);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    background: #fff;
    transition: all var(--transition-base);
}

.section--light .service-feature {
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.service-feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.service-feature__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.service-feature__icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.service-feature h4 {
    font-size: var(--text-h3);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.service-feature p {
    color: var(--color-text-secondary);
    font-size: var(--text-small);
    line-height: 1.7;
}

/* --- Scheme Flow --- */
.service-scheme {
    background: var(--color-bg-light);
    border-radius: var(--border-radius-lg);
    padding: var(--space-2xl);
    text-align: center;
}

.service-scheme__title {
    font-size: var(--text-h3);
    margin-bottom: var(--space-sm);
}

.service-scheme__desc {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.scheme-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.scheme-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    width: 120px;
}

.scheme-step__num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scheme-step p {
    font-weight: 600;
    font-size: var(--text-small);
}

/* --- Merit (Service Page - Light) --- */
.service-detail .zentori-merit {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.service-detail .merit-col {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Proposal 2 Shadow */
    transform: translateY(-5px);
    /* Lift up slightly */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-detail .merit-col:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.merit-col--orange {
    border: 2px solid #F58622 !important;
    box-shadow: 0 10px 40px rgba(245, 134, 34, 0.15) !important;
}

.merit-col--blue {
    border: 2px solid #15B4DA !important;
    box-shadow: 0 10px 40px rgba(21, 180, 218, 0.15) !important;
}

.service-detail .merit-col__header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    color: var(--color-text-primary);
}

.service-detail .merit-col__header svg {
    color: var(--color-secondary);
    flex-shrink: 0;
}

.service-detail .merit-col__header h3 {
    font-size: var(--text-h3);
    font-weight: 700;
}

.service-detail .merit-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.service-detail .merit-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.service-detail .merit-list__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    margin-top: 2px;
}

/* --- Tournaments (Service Page - Light) --- */
.service-detail .zentori-tournaments {
    margin-bottom: var(--space-2xl);
}

.service-detail .tournaments-header {
    margin-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-secondary);
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    padding-bottom: var(--space-xs);
}

.service-detail .tournaments-title {
    font-size: var(--text-h3);
    font-weight: 700;
    color: var(--color-text-primary);
}

.service-detail .tournaments-category {
    font-size: var(--text-small);
    color: var(--color-secondary);
    font-weight: 600;
}

.service-detail .tournament-list-wrapper {
    max-height: 400px;
    overflow-y: auto;
    background: var(--color-bg-light);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    scrollbar-width: thin;
    scrollbar-color: var(--color-secondary) transparent;
}

.service-detail .tournament-list-wrapper::-webkit-scrollbar {
    width: 6px;
}

.service-detail .tournament-list-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 10px;
}

.service-detail .tournament-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-small);
}

.service-detail .tournament-table th {
    position: sticky;
    top: 0;
    background: var(--color-bg-light);
    text-align: left;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-secondary);
    border-bottom: 2px solid var(--color-border);
    z-index: 1;
}

.service-detail .tournament-table td {
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-border);
}

.service-detail .tournament-table tr:last-child td {
    border-bottom: none;
}

.service-detail .tournament-table tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

/* --- Testimonials (Service Page - Light) --- */
.service-detail .testimonials {
    margin-bottom: var(--space-2xl);
}

.service-detail .testimonials__heading {
    font-size: var(--text-h3);
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--color-text-primary);
}

.service-detail .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-detail .testimonial-card {
    background: var(--color-bg-light);
    border-radius: var(--border-radius-md);
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
    position: relative;
}

.service-detail .testimonial-card::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-secondary);
    opacity: 0.3;
    position: absolute;
    top: 8px;
    left: 16px;
    line-height: 1;
}

.service-detail .testimonial-card__text {
    color: var(--color-text-secondary);
    font-family: 'Yomogi', cursive;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.service-detail .testimonial-card__author {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-secondary);
}

/* --- Pro Players Grid --- */
.pro-players {
    margin-top: var(--space-2xl);
}

.pro-players__title {
    font-size: var(--text-h3);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.pro-players__more {
    text-align: center;
    margin-top: var(--space-xl);
    font-weight: 600;
    color: var(--color-text-secondary);
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.pro-card {
    background: #fff;
    border-radius: var(--border-radius-md);
    padding: 0;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pro-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.pro-card__photo-placeholder {
    width: 100%;
    height: 200px;
    background: var(--color-bg-light);
    display: block;
    margin: 0;
    border: none;
    border-radius: 0;
    overflow: hidden;
}

.pro-card__photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-card__body {
    padding: var(--space-lg) var(--space-lg);
}

.pro-card__name {
    font-size: var(--text-h3);
    font-weight: 700;
    margin-bottom: var(--space-xxs);
    color: var(--color-text-primary);
}

.pro-card__title {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

.pro-card__separator {
    border: none;
    border-top: 1px dashed var(--color-border);
    margin: var(--space-sm) auto;
    width: 100%;
}

.pro-card__result {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* --- Tool Grid --- */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: 3.5rem;
}

.tool-card {
    background: var(--color-bg-light);
    border-radius: var(--border-radius-md);
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.tool-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.tool-card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.tool-card h4 {
    font-size: var(--text-body);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.tool-card p {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* --- Record Grid --- */
.record-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.record-card {
    background: #fff;
    border-radius: var(--border-radius-md);
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.record-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.record-card__type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
    color: #fff;
    padding: 6px 16px;
    border-radius: var(--border-radius-full, 9999px);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.05em;
    background: #ccc;
    /* fallback */
}

.record-card__type--management {
    background: linear-gradient(135deg, #F9B137 0%, #F58622 100%);
    box-shadow: 0 4px 12px rgba(249, 177, 55, 0.3);
}

.record-card__type--support {
    background: linear-gradient(135deg, #2ED8E8 0%, #15B4DA 100%);
    box-shadow: 0 4px 12px rgba(46, 216, 232, 0.3);
}

.record-card__name {
    font-size: var(--text-body);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.record-card__desc {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Specific spacing for Tournament section */
#tournament {
    padding-bottom: 11.7rem !important;
}

/* --- CTA Section (reuse from index) --- */
.cta-section {
    position: relative;
    padding: var(--space-section) 0;
    background: #444444 !important;
    overflow: hidden;
}

.cta-section__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

.cta-section__content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-section__title {
    font-size: var(--text-h1);
    font-weight: 800;
    color: var(--color-text-on-dark);
    margin-bottom: var(--space-md);
}

.cta-section__text {
    font-size: var(--text-body-lg);
    color: var(--color-text-on-dark-sub);
    margin-bottom: var(--space-2xl);
}

.cta-section__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .service-feature-grid {
        grid-template-columns: 1fr;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .record-grid {
        grid-template-columns: 1fr;
    }

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

    .scheme-arrow {
        display: none;
    }

    .scheme-flow {
        flex-direction: column;
    }

    .service-detail .zentori-merit {
        grid-template-columns: 1fr;
    }

    .service-detail .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

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