/* GDSC New Home Service Page Styles */

/* Hero Section */
.service-hero {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-inner-container {
    max-width: 1120px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0 16px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    z-index: 2;
}

.service-hero .hero-text-box {
    width: 514px;
    height: 96px;
    margin: 0;
    padding: 0 0 15px 0;
    box-sizing: border-box;
    z-index: 2;
    text-align: left;
    white-space: nowrap;
}

.service-hero .hero-subtitle {
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #DADADA;
}

.service-hero h1, .service-hero h3 {
    font-size: 47px;
    font-weight: 800;
    color: var(--light-color);
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards !important;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s !important;
}

.delay-2 {
    animation-delay: 0.4s !important;
}

/* Sub-menu Buttons Container */
.sub-menu-container {
    position: absolute;
    bottom: 30px;
    right: 16px;
    z-index: 100;
}

.sub-menu-inner {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.sub-menu-btn {
    width: 190px;
    height: 40px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    cursor: pointer;
}

.sub-menu-btn.active {
    color: #2563EB;
    border-color: #2563EB;
}

.sub-menu-btn:hover {
    background: #F9FAFB;
    color: #2563EB;
}

/* Sticky Class */
.sticky-sub-menu {
    position: fixed;
    top: 61px; /* Height of GNB */
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    background: #FFFFFF;
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-bottom: 1px solid #E5E7EB;
    z-index: 40;
}

.sticky-sub-menu .sub-menu-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
    justify-content: center;
}

.sticky-sub-menu .sub-menu-btn {
    width: 190px;
    height: 40px;
    font-size: 15px;
}

/* ============================= */
/* Bigdata Results Section (new) */
/* ============================= */
.bigdata-results-section {
    margin: 0;
}

.bigdata-results-section .section-inner {
    max-width: 1120px; /* content width guideline */
    margin: 0 auto;
    padding: 0 16px; /* left/right padding guideline */
}

.bigdata-results-section .section-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 32px 0;
    text-align: center;
}

/* 참여기관 인트로 */
.partners-intro {
    width: 100%;
    max-width: 1090px; /* title width from figma (1090) */
    height: auto;
    margin-bottom: 16px;
}

.partners-title {
    width: 100%;
    max-width: 1090px;
    height: 33px; /* figma */
    font-family: Pretendard, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 27px; /* figma */
    line-height: 21px; /* figma value */
    display: flex;
    align-items: center; /* vertical-align middle equivalent */
    color: #111827; /* figma background interpreted as text color */
}

.partners-desc {
    width: 100%;
    max-width: 1088px; /* figma */
    height: 25px; /* approximate, auto on small screens */
    font-family: Pretendard, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 700; /* per figma */
    font-size: 15px; /* figma: 15 */
    line-height: 24.75px; /* figma */
    color: #6B7280; /* figma background interpreted as text color */
    margin: 6px 0 24px 0;
}

/* 로고 스크롤 스트립 (플레이스홀더) */
.partners-logos-strip {
    position: relative;
    width: 100vw;
    height: 72px; /* figma */
    overflow: hidden;
    background: inherit;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    --fade-start: max(0px, calc((100% - 1120px) / 2));
    --fade-end: calc(100% - var(--fade-start));
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 1) var(--fade-start), rgba(0, 0, 0, 1) var(--fade-end), rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 1) var(--fade-start), rgba(0, 0, 0, 1) var(--fade-end), rgba(0, 0, 0, 0) 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    margin-bottom: 32px;
}

.partners-logos-strip .logos-track {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    gap: 0;
    padding: 0 32px; /* Increased padding */
    animation: logos-scroll 25s linear infinite; /* Adjusted for a better balance of speed and smoothness */
    will-change: transform;
}

.partners-logos-strip .logos-group {
    display: flex;
    align-items: center;
    gap: 80px; /* Increased gap from 64px to 80px */
}

.partners-logos-strip .logo-img {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

@keyframes logos-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* 표 플레이스홀더 카드 */
.results-table-placeholder {
    width: 100%;
    max-width: 1084px; /* figma */
    min-height: 625px; /* figma */
    border-radius: 5px; /* figma */
    border: 1px solid #E5E7EB; /* stroke 1 */
    background: #FFFFFF;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
}

.results-table-placeholder .table-header {
    height: 72px;
    background: linear-gradient(180deg, #1E3A8A 0%, #1D4ED8 100%);
    border-radius: 5px 5px 0 0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #FFFFFF;
}

.results-table-placeholder .table-title {
    font-size: 18px;
    font-weight: 800;
}

.results-table-placeholder .table-tabs {
    display: flex;
    gap: 8px;
}

.results-table-placeholder .tab-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font: inherit;
}

.results-table-placeholder .tab-pill.active {
    color: #2563EB;
    border-color: #2563EB;
}

.results-table-placeholder .table-body {
    padding: 0 0 24px;
}

.results-table-placeholder .results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #111827;
    table-layout: fixed;
}

.results-table-placeholder .results-table thead,
.results-table-placeholder .results-table tbody {
    display: block;
}

.results-table-placeholder .results-table thead th {
    position: sticky;
    top: 0;
    background: #F9FAFB;
    text-align: left;
    font-weight: 700;
    padding: 12px;
    border-bottom: 1px solid #E5E7EB;
    z-index: 1;
}

.results-table-placeholder .results-table thead tr,
.results-table-placeholder .results-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.results-table-placeholder .results-table tbody {
    height: 580px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.results-table-placeholder .results-table tbody::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.results-table-placeholder .results-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #F3F4F6;
}

.results-table-placeholder .results-table thead th:nth-child(1),
.results-table-placeholder .results-table tbody td:nth-child(1) {
    width: 12%;
}

.results-table-placeholder .results-table thead th:nth-child(2),
.results-table-placeholder .results-table tbody td:nth-child(2) {
    width: 20%;
}

.results-table-placeholder .results-table thead th:nth-child(3),
.results-table-placeholder .results-table tbody td:nth-child(3) {
    width: 50%;
}

.results-table-placeholder .results-table thead th:nth-child(4),
.results-table-placeholder .results-table tbody td:nth-child(4) {
    width: 18%;
}

.results-table-placeholder .results-table tbody tr:last-child td {
    border-bottom: 0;
}

.results-table-placeholder .table-empty {
    padding: 32px 20px;
    text-align: center;
    color: #6B7280;
    font-size: 15px;
}

/* Section Common */
.service-section {
    width: 100%;
    padding: 100px 0;
    position: relative;
    z-index: 1; /* Lower than sticky menu */
}

/* Section 1: Consulting Overview */
section.consulting-intro {
    text-align: center;
    background-color: #FFFFFF;
}

.consulting-intro h2 {
    font-size: 37px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
}

.consulting-intro .desc {
    font-size: 17px;
    font-weight: 400;
    color: #6B7280;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 120%;
}

.section-intro {
    width: 100%;
    max-width: 1088px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 1;
    margin: 0 auto 30px;
}

.section-intro h1 {
    font-size: 47px;
    font-weight: 800;
    line-height: 120%;
    letter-spacing: 0;
    text-align: center;
    /*margin: 0;*/
    margin-bottom: 10px;
}

.section-intro .desc {
    width: 100%;
    max-width: 1088px;
    padding-top: 2px;
    opacity: 1;
    margin: 0;
}

.consulting-img-box {
    width: 100%;
    max-width: 1088px;
    height: 275px;
    margin: 0 auto 15px;
    border-radius: 10px;
    opacity: 1;
}

.consulting-img-box img {
    width: 1088px;
    max-width: 100%;
    height: 275px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    object-fit: cover;
}

.service-summary {
    text-align: center;
}

.service-summary h3,
.service-summary h1 {
    font-size: 37px;
    font-weight: 800;
    color: #111827;
    width: 100%;
    max-width: 1088px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    margin: 0 auto 30px;
}

.service-summary p {
    font-family: "Pretendard", sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #6B7280;
    line-height: 35px;
    letter-spacing: 0;
    max-width: 1000px;
    text-align: left;
    vertical-align: middle;
    margin: 0 auto;
}

/* Section 2: Differentiators */
.differentiators-section {
    background-color: #111827;
    background-image: linear-gradient(rgba(17, 24, 39, 0.4), rgba(17, 24, 39, 0.4)), url('../images/services/01_service_consulting_img_02.webp'); /* Reuse hero image as bg */
    background-size: cover;
    background-attachment: fixed;
    padding: 100px 0;
    margin: 0;
    color: #FFFFFF;
    position: relative;
    z-index: 1;
}

.differentiators-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.differentiators-inner h2 {
    font-size: 37px;
    font-weight: 800;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 60px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 24px;
    justify-items: center;
}

.diff-card {
    width: 534px;
    height: 223px;
    border-radius: 18px;
    border: 2px solid #E5E7EB;
    padding: 20px 29px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.diff-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.diff-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 472px;
}

.diff-card li {
    font-size: 15px;
    font-weight: 400;
    color: #DADADA;
    margin-bottom: 10px;
    /*height: 30px;*/
    position: relative;
    padding-left: 12px;
    letter-spacing: -0.02em;
    line-height: 20px;
}

.diff-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #DADADA;
}

/* Section 3: Consulting Process */
.consulting-process {
    text-align: center;
    background-color: #FFFFFF;
}

/* AI Data Section 2: Expected Effects */
.expected-effects-section {
    width: 100%;
    padding: 100px 0;
}

.expected-effects-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.service-summary-section .expected-effects-wrap {
    width: 100%;
    max-width: 1120px;
    height: 265px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    opacity: 1;
    margin: 0 auto;
    padding: 0 16px;
}

.service-summary-section .expected-effects-inner {
    width: 100%;
    max-width: 1088px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 1;
    margin: 0 auto;
    padding: 0;
}

.section-bg-f1f8ff {
    background-color: #F1F8FF;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.section-bg-white {
    background-color: #FFFFFF;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.effects-header {
    text-align: center;
    margin-bottom: 60px;
}

.effects-header h2 {
    font-size: 37px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
}

.effects-header .subtitle {
    font-size: 17px;
    font-weight: 400;
    color: #6B7280;
    line-height: 100%;
}

.effects-grid {
    display: grid;
    grid-template-columns: repeat(2, 539px);
    gap: 40px 24px; /* Increased row gap to allow space for titles outside cards */
    justify-content: center;
}

.effect-item {
    display: flex;
    flex-direction: column;
}

.effect-card {
    width: 539px;
    height: 130px; /* Reset to requested height now that title is outside */
    border-radius: 18px;
    border: 2px solid #E5E7EB;
    padding: 20px 30px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px; /* Margin below the title/icon group */
}

.effect-icon {
    width: 32px;
    height: 32px;
}

.effect-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-title {
    font-size: 27px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.card-desc {
    font-size: 15px;
    font-weight: 400;
    color: #111827;
    margin: 0; /* Removed bottom margin since flexbox handles spacing */
}

.effect-chart-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.effect-chart-bg {
    height: 13px;
    background: #F3F4F6;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.effect-chart-fill {
    height: 100%;
    border-radius: 999px;
    width: 0;
    transition: width 1.5s ease-out;
}

/* Gradients */
.gradient-green {
    background: linear-gradient(90deg, #60C96E 0%, #A6E294 100%);
}

.gradient-blue {
    background: linear-gradient(90deg, #5AB2FF 0%, #A2D2FF 100%);
}

.gradient-orange {
    background: linear-gradient(90deg, #FF9F0A 0%, #FFD60A 100%);
}

.gradient-purple {
    background: linear-gradient(90deg, #AF52DE 0%, #D6A4FF 100%);
}

.chart-labels {
    display: flex;
    justify-content: space-between;
}

.label-left, .label-right {
    font-size: 15px;
    font-weight: 400;
    color: #6B7280;
}

/* Animation trigger class */
.animate-chart .effect-chart-fill {
    width: var(--target-width);
}

.consulting-process .process-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.consulting-process .process-header {
    margin-bottom: 40px;
}

.consulting-process .process-label {
    display: block;
    font-size: 17px;
    font-weight: 400;
    color: #111827;
    margin-bottom: 12px;
}

.consulting-process h2 {
    font-size: 37px;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.consulting-process .process-image {
    max-width: 1120px;
    margin: 0 auto;
}

.consulting-process .process-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* AI Data Section 3: Tool Section */
.tool-section {
    text-align: center;
}

.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.tool-header h2 {
    font-size: 37px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
}

.tool-header .subtitle {
    font-size: 17px;
    font-weight: 400;
    color: #6B7280;
    line-height: 100%;
}

.tool-image-box {
    width: 1088px;
    height: 360px;
    margin: 0 auto;
    overflow: hidden;
}

.tool-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.saas-diff-image-box {
    width: 1088px;
    height: 360px;
    margin: 0 auto;
    overflow: hidden;
}

.saas-diff-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* AI Data Section 4: Process Section */
.process-section {
    text-align: center;
}

.process-section .process-header {
    margin-bottom: 50px;
}

.process-section .process-header h2 {
    font-size: 37px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 24px;
}

.process-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.badge-item {
    height: 23px;
    padding: 3px 8px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 400;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-image-box {
    width: 1088px;
    height: 497px;
    margin: 0 auto;
}

.process-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* SaaS Section 4: Process Section */
.saas-process-section {
    text-align: center;
}

.saas-process-section .process-header {
    margin-bottom: 50px;
}

.saas-process-section h2 {
    font-size: 37px;
    font-weight: 800;
    color: #111827;
}

.saas-process-image-box {
    width: 1088px;
    height: auto;
    margin: 0 auto;
}

.saas-process-image-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* AI Data Section 5: Case Effects Section */
.case-effects-section,
.saas-effects-section {
    text-align: center;
}

.case-effects-header,
.saas-effects-header {
    margin-bottom: 60px;
}

.case-effects-header h2,
.saas-effects-header h2 {
    font-size: 37px;
    font-weight: 800;
    color: #111827;
}

.case-effects-grid {
    display: grid;
    grid-template-columns: repeat(3, 350px);
    gap: 20px;
    justify-content: center;
}

.case-card {
    width: 350px;
    height: 349px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 5px;
    padding: 30px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
    transition: all 0.3s ease;
}

.case-card:hover {
    box-shadow: 0 6px 16px 0 rgba(15, 23, 42, 0.08);
    transform: translateY(-4px);
}

.case-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 0;
}

.case-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.case-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 21px;
}

.case-desc {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.case-desc p {
    font-size: 17px;
    font-weight: 400;
    color: #6B7280;
    margin: 0;
    line-height: 100%;
}

.case-desc p strong {
    color: #111827;
    font-weight: 700;
}
