/* 폰트 불러오기 */
@import url('fonts.css');

/* --- :ROOT VARIABLES --- */
:root {
    --background-color-light: #f4f3ff;
    --background-color-dark: #0A2463; /* 현재 어두운 배경색. #000a66과 유사 */

    --neumo-shadow-dark: #b3b7c8;
    --neumo-shadow-light: #ffffff;
    --primary-blue: #007bff;
    --primary-blue-dark: #003874;

    /* --background-color-dark 위에 사용될 뉴모피즘 그림자 (튀어나온 효과) */
    --neumo-shadow-on-dark-bg-darker: #06173E;  /* #0A2463 보다 어둡게 */
    --neumo-shadow-on-dark-bg-lighter: #0E3188; /* #0A2463 보다 밝게 */

    /* --background-color-dark 위에 사용될 뉴모피즘 그림자 (눌린 효과, inset) */
    --neumo-inset-shadow-on-dark-bg-darker: #051435;
    --neumo-inset-shadow-on-dark-bg-lighter: #113DAE;

    --selected-neumo-shadow-dark: #00254B;
    --selected-neumo-shadow-more-dark:rgb(8, 0, 54);
    --selected-neumo-shadow-light: #004D9D;

    --text-color-dark: #333;
    --text-color-light: #666;

    --text-color-on-dark-bg: #FFFFFF; /* 어두운 배경 위 밝은 텍스트 (흰색) */
    --text-color-light-on-dark-bg: #cccccc; /* 어두운 배경 위 더 밝은 회색 텍스트 */

    /* 어두운 배경 위 강조색 (예: 선택된 아이템의 텍스트) */
    --accent-color-on-dark-bg: #87CEFA; /* 밝은 하늘색, 또는 #A0D2EB */

    --border-radius-main: 10px; /* 참조 사이트의 모서리 둥글기에 맞춰 조정 */
    --transition-speed: 0.3s ease;
    --sticky-footer-height: 180px; /* 휴대폰 결합 할인 항목 추가로 높이 약간 증가 */

    --action-bar-height: 60px;

    /* Glassmorphism 변수들 */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-bg-weak: rgba(255, 255, 255, 0.15);
    --glass-bg-weakest: rgba(255, 255, 255, 0.05);
    --glass-blur: 10px;
    --glass-border: rgba(255, 255, 255, 0.18);

    /* Neumorphism 그림자 변수들 */
    --shadow-neumo-out: 
        -8px -8px 16px var(--neumo-shadow-light),
        8px 8px 16px var(--neumo-shadow-dark);
    --shadow-elev-1: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-elev-1-soft: 0 6px 12px rgba(0, 0, 0, 0.15);

    /* .fact 섹션 및 참조 사이트 테마 관련 변수 */
    --theme-yellow: #ffd900;
    --theme-navy: #001e36;

    /* 계산기 전용 색상은 유지하되, 필요시 --theme-yellow/navy 오버라이드 가능 */
    --calculator-neumo-shadow-light: #ffffaa; /* 사실상 --theme-yellow 의 밝은 버전 */
    --calculator-neumo-shadow-dark: #d8b800;  /* 사실상 --theme-yellow 의 어두운 버전 */
}

/* --- NAVIGATION STYLES --- */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 36, 99, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-content h2 {
    color: #ffffff;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: inline-block;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #87CEFA;
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(135, 206, 250, 0.3);
}

.nav-links a:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 현재 페이지 활성화 스타일 */
.nav-links a[href*="index.html"]:not([href*="../"]),
.nav-links a[href*="kt.html"]:not([href*="../"]),
.nav-links a[href*="sk.html"]:not([href*="../"]),
.nav-links a[href*="lgu.html"]:not([href*="../"]),
.nav-links a[href*="sitemap.html"]:not([href*="../"]),
.nav-links a[href*="speedtest"]:not([href*="../"]) {
    background: rgba(135, 206, 250, 0.2);
    color: #87CEFA;
    border-color: rgba(135, 206, 250, 0.4);
    box-shadow: 
        0 4px 15px rgba(135, 206, 250, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 모바일 네비게이션 */
@media (max-width: 768px) {
    body {
        padding-top: 60px; /* 모바일 네비게이션 높이에 맞춤 */
    }
    
    .nav-content {
        padding: 0 15px;
        height: 60px;
        justify-content: center;
    }
    
    .nav-content h2 {
        font-size: 1.3em;
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .nav-links a {
        padding: 6px 10px;
        font-size: 0.75em;
    }
}

/* --- GLOBAL STYLES --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'GmarketSans', sans-serif;
    font-weight: 500;
    background-color: var(--background-color-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    color: var(--text-color-dark);
    padding-top: 70px; /* 네비게이션 높이만큼 상단 패딩 추가 */
    padding-bottom: calc(var(--sticky-footer-height) + var(--action-bar-height));
}

/* --- PAGE SECTIONS STYLES --- */
.page-section {
    width: 100%;
    padding-top: 60px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
}

/* Section 1: Page Header and Benefit Blocks */
.page-header-intro {
    background-color: var(--background-color-light);
}
.page-header-intro .intro-title { font-size: 2.8em; font-weight: 700; color: var(--text-color-dark); margin-bottom: 60px; line-height: 1.3; letter-spacing: 0.05em; text-align: center; }
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    /* 애니메이션을 위해 overflow hidden 추가 */
    overflow: hidden;
}
.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: var(--background-color-light);
    border-radius: 20px;
    /* 그림자 효과 복원 */
    box-shadow: -7px -7px 8px var(--neumo-shadow-light), 7px 7px 8px var(--neumo-shadow-dark);
    transition: all var(--transition-speed);
    margin: 10px;
    /* 애니메이션 초기 상태 */
    opacity: 0;
    filter: blur(5px);
    transform: translateX(0); /* 기본값으로 초기화 */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out, box-shadow 0.3s ease; /* box-shadow transition 추가 */

    height: auto; /* 내용에 맞춰 높이 자동 조절 */
    min-height: 250px; /* 최소 높이를 설정하여 일관된 박스 크기 유지 (필요에 따라 조정) */
}
/* 각 박스별로 좌우에서 나타나는 효과를 위해 다른 transform 값 적용 */
.benefit-item:nth-child(1) { /* 첫 번째 박스 (왼쪽에서) */
    transform: translateX(-50px);
}
.benefit-item:nth-child(2) { /* 두 번째 박스 (오른쪽에서) */
    transform: translateX(50px);
}
.benefit-item:nth-child(3) { /* 세 번째 박스 (왼쪽에서) */
    transform: translateX(-50px);
}
.benefit-item:nth-child(4) { /* 네 번째 박스 (오른쪽에서) */
    transform: translateX(50px);
}

/* visible 클래스가 적용되었을 때 애니메이션 */
.benefit-item.visible {
    opacity: 1;
    transform: translateX(0) translateY(0); /* 좌우 이동과 아래 이동 모두 초기화 */
    filter: blur(0);
}

.benefit-item:hover {
    transform: translateY(-5px); /* 좌우 이동 애니메이션과 별개로 상하 이동 호버 효과 */
    box-shadow: -10px -10px 20px var(--neumo-shadow-light), 10px 10px 20px var(--neumo-shadow-dark);
}
.benefit-item .icon-wrapper { margin-bottom: 15px; display: flex; justify-content: center; align-items: center; height: 60px; width: 100%; }
.benefit-item .benefit-icon { font-size: 2.5em; color: var(--primary-blue); opacity: 0.8; }
.benefit-item img.benefit-icon { width: 50px; height: 50px; object-fit: contain; }
.benefit-item .title { font-size: 1.3em; font-weight: 700; color: var(--text-color-dark); margin-bottom: 10px; }
.benefit-item .description { font-size: 1.0em; font-weight: 500; color: var(--text-color-light); line-height: 1.5; }


/* --- CALCULATOR SPECIFIC STYLES --- */
.main-calculator-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    padding-top: 60px;
    padding-bottom: 60px;
    box-sizing: border-box;
    background-color: var(--background-color-dark);
}
.input-area-wrapper { flex: 1; min-width: 300px; max-width: 800px; width: 100%; display: flex; flex-direction: column; align-items: center; background-color: transparent; padding: 0 15px;}
.calculator-title {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
  
    /* 그라데이션 배경 설정 */
    background: linear-gradient(to right, #007bff, #ff007f, #007bff); /* 파랑 -> 핑크 -> 파랑 */
    
    /* 배경 크기를 2배로 늘려 애니메이션 공간 확보 */
    background-size: 200% auto;
  
    /* 배경을 텍스트 모양으로 잘라냄 */
    -webkit-background-clip: text;
    background-clip: text;
  
    /* 텍스트 색상을 투명하게 만들어 배경이 보이게 함 */
    color: transparent;
    -webkit-text-fill-color: transparent;
  
    /* 애니메이션 적용 */
    animation: text-gradient-animation 3s linear infinite;
  }
  
  /* 애니메이션 키프레임 정의 */
  @keyframes text-gradient-animation {
    to {
      background-position: -200% center;
    }
  }
.card {
    position: relative;
    background-color: var(--background-color-light);
    border-radius: var(--border-radius-main);
    box-shadow: -7px -7px 10px var(--neumo-shadow-light), 7px 7px 10px var(--neumo-shadow-dark);
    transition: all var(--transition-speed);
    margin-bottom: 40px;
    padding: 60px 30px 40px 30px;
    color: var(--text-color-dark);
    width: 100%;

    /* 공통 애니메이션 속성 */
    opacity: 0; /* 기본적으로 숨김 */
    transform: scale(0.8); /* 기본적으로 약간 작게 */
    /* filter: blur(5px);  <<< .hidden에만 적용되도록 수정 */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out; /* 애니메이션 속도 조절 */
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: -10px -10px 20px var(--neumo-shadow-light), 10px 10px 20px var(--neumo-shadow-dark);
}

/* hidden 상태일 때만 블러 효과 적용 */
.card.hidden {
    opacity: 0;
    transform: scale(0.8);
    filter: blur(5px); /* hidden 상태일 때만 블러 적용 */
}

/* 카드가 화면에 보일 때 적용될 클래스 */
.card.visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0); /* visible 상태에서는 블러 제거 */
}

#telecomCard, #speedCard, #tvBundleCard {
    background-color: var(--background-color-dark);
    color: var(--text-color-on-dark-bg);
    box-shadow: 7px 7px 15px var(--neumo-shadow-on-dark-bg-darker),
                -7px -7px 15px var(--neumo-shadow-on-dark-bg-lighter);
    padding: 60px 30px 40px 30px;
    border-radius: var(--border-radius-main);
    margin-bottom: 40px;
    transition: all var(--transition-speed);

    /* 개별 카드 초기 상태 */
    opacity: 0;
    transform: scale(0.8);
    filter: blur(5px); /* 초기에는 흐릿하게 시작 */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
}
#telecomCard:hover, #speedCard:hover, #tvBundleCard:hover {
    transform: translateY(-2px);
    box-shadow: 10px 10px 20px var(--neumo-shadow-on-dark-bg-darker),
                -10px -10px 20px var(--neumo-shadow-on-dark-bg-lighter);
}

/* 개별 카드의 visible 클래스 스타일 */
#telecomCard.visible,
#speedCard.visible,
#tvBundleCard.visible { /* C 박스도 visible 클래스가 붙으면 확대되어야 함 */
    opacity: 1;
    transform: scale(1);
    filter: blur(0); /* 선명하게 만들기 */
}

/* A, B, C 이니셜 텍스트 크기 복원 및 조정 */
.card-initial {
    font-size: 3.5em; /* 기본 크기 */
    font-weight: 700;
    line-height: 1;
    filter: drop-shadow(5px 5px 10px rgba(13, 0, 88, 0.5));
    color: var(--primary-blue-dark);
}

#telecomCard .card-initial-wrapper .card-initial,
#speedCard .card-initial-wrapper .card-initial,
#tvBundleCard .card-initial-wrapper .card-initial {
    color: var(--calculator-neumo-shadow-dark);
    font-size: 4.5em; /* 이전보다 조금 크게 조정하여 복원 및 강조 */
    font-weight: 700;
    line-height: 1;
    filter: drop-shadow(3px 3px 5px var(--neumo-shadow-on-dark-bg-darker));
}

#finalSummarySection.card.input-card {
    background-color: var( --theme-yellow);
    color: rgb(0, 0, 0);
    box-shadow:
    inset 10px 10px 20px rgba(0, 56, 116, 0.7),
    inset -10px -10px 20px rgba(0, 3, 163, 0.5),
    15px 15px 30px rgba(0, 0, 0, 0.9),
    -15px -15px 30px rgb(1, 0, 63); padding: 50px 30px 40px 30px;
}
#finalSummarySection:hover {
    transform: translateY(-5px);
    box-shadow: inset 12px 12px 25px rgba(0, 56, 116, 0.7),
                inset -12px -12px 25px rgba(0, 127, 255, 0.5),
                18px 18px 35px rgba(0, 0, 0, 0.4),
                -18px -18px 35px rgba(255, 255, 255, 0.4);
}
.summary-card-style .card-content { width: 100%; }
.summary-card-style .card-content h2 {
    font-size: 1.3em;
    color: rgb(54, 54, 54);
    margin-top: 0;
    padding-left: 0;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: center;
    margin-bottom: 25px;
}
.summary-card-style .icon-wrapper { 
    margin-bottom: 25px; 
    text-align: center; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%;
}
.summary-card-style .icon { 
    color: white; 
    font-size: 4em; 
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7); 
}

.summary-detail-button {
    background-color: var(--primary-blue-dark);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05em;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    margin-top: 25px;
}

.summary-detail-button:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* --- "3. 실제 고객들의 인터넷 가입 후기" 섹션 --- */
.review-section { /* 이전 comparison-section을 review-section으로 변경 */
    padding-top: 70px; /* 섹션 간 간격 조정 */
    padding-bottom: 70px;
    text-align: center;
    background-color: var(--background-color-light);
    overflow: hidden; /* 애니메이션을 위한 overflow hidden */
}
.review-section .section-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 60px;
    line-height: 1.4;
    padding: 0 15px;

    /* --- 애니메이션을 위한 코드 추가 --- */

    /* 진한 파랑과 진한 핑크로 그라데이션 배경 설정 */
    /* 예시 색상: 진한 파랑(#00008B), 진한 핑크(#C71585) */
    background: linear-gradient(to right, #00008B, #C71585, #00008B);
    
    /* 배경 크기를 2배로 늘려 애니메이션 공간 확보 */
    background-size: 200% auto;

    /* 배경을 텍스트 모양으로 잘라냄 */
    -webkit-background-clip: text;
    background-clip: text;

    /* 텍스트 색상을 투명하게 만들어 배경이 보이게 함 */
    color: transparent;
    -webkit-text-fill-color: transparent;

    /* 애니메이션 적용 */
    animation: text-gradient-animation 4s linear infinite; /* 속도를 조금 더 느리게 조정 */
}

/* 애니메이션 키프레임 (첫 번째 코드와 동일하게 사용 가능) */
@keyframes text-gradient-animation {
  to {
    background-position: -200% center;
  }
}
.review-cards-wrapper { /* 이전 comparison-cards-wrapper를 review-cards-wrapper로 변경 */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 카드 너비 조정 */
    gap: 30px;
    width: 100%;
    max-width: 1200px; /* 최대 너비 조정 */
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    justify-items: center; /* 카드들을 가운데 정렬 */
}
.review-card { /* 이전 comparison-card를 review-card로 변경 */
    background-color: var(--background-color-light);
    color: var(--text-color-dark);
    border-radius: 20px;
    box-shadow: -7px -7px 15px var(--neumo-shadow-light), 7px 7px 15px var(--neumo-shadow-dark); /* 그림자 효과 */
    display: flex;
    flex-direction: column; /* 이미지, 제목, 설명 순서로 배치 */
    align-items: center;
    text-align: left;
    transition: all var(--transition-speed);
    overflow: hidden; /* 호버 시 내용이 넘치지 않도록 */
    cursor: pointer; /* 호버 가능한 요소임을 표시 */

    /* 카드 개별 애니메이션 스타일 */
    opacity: 0;
    transform: translateY(50px); /* 아래에서 위로 나타나는 효과 */
    filter: blur(5px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out, box-shadow 0.3s ease; /* transition 속성 추가 */
}
.review-card.visible { /* 자바스크립트로 visible 클래스가 추가될 때 */
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}
.review-card:hover {
    transform: translateY(-5px); /* 호버 시 살짝 위로 올라가는 효과 */
    box-shadow: -10px -10px 25px var(--neumo-shadow-light), 10px 10px 25px var(--neumo-shadow-dark); /* 그림자 강조 */
}

/* 카드 이미지 스타일 */
.review-card .card-image-wrapper {
    width: 100%;
    height: 200px; /* 이미지 높이 고정 */
    overflow: hidden;
    position: relative;
    border-top-left-radius: 20px; /* 상단 모서리만 둥글게 */
    border-top-right-radius: 20px;
}
.review-card .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지가 영역에 맞게 채워지도록 */
    transition: transform 0.4s ease-out; /* 호버 시 이미지 확대 효과 */
}
.review-card:hover .card-image-wrapper img {
    transform: scale(1.05); /* 호버 시 이미지 확대 */
}

/* 카드 하단 제목 스타일 */
.review-card .card-content {
    padding: 25px 20px 30px 20px;
    width: 100%;
    text-align: center;
}
.review-card .card-title {
    font-size: 1.35em;
    font-weight: 700;
    color: var(--text-color-dark);
    margin-bottom: 10px;
    line-height: 1.2;
}
.review-card .card-title strong { /* 후기 작성자 이름 강조 */
    color: var(    --primary-blue-dark);
}

/* 후기 내용 숨김/표시 관련 스타일 */
.review-card .review-text {
    font-size: 0.95em;
    color: var(--text-color-light);
    line-height: 1.6;
    max-height: 0; /* 초기에는 숨김 */
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out, padding-top 0.4s ease-out;
    padding-top: 0;
}
.review-card:hover .review-text {
    max-height: 300px; /* 호버 시 표시될 최대 높이 (내용에 따라 조절 필요) */
    opacity: 1;
    padding-top: 20px; /* 내용이 보일 때 상단 패딩 추가 */
}

/* 상세 보기 버튼 (필요하다면 사용) */
.review-card .view-details-button {
    display: none; /* 기본적으로 숨김 */
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}
.review-card:hover .view-details-button {
    display: block; /* 호버 시 보이도록 */
    background-color: var(--primary-blue-dark);
}

/* 모바일 반응형 조정 */
@media (max-width: 767px) {
    .review-section { padding-top: 50px; padding-bottom: 50px; }
    .review-section .section-title { font-size: 1.8em; margin-bottom: 40px; }
    .review-cards-wrapper { grid-template-columns: 1fr; gap: 20px; padding: 0 10px; }
    .review-card {
        /* 모바일에서 benefit-item 애니메이션 조정 */
        opacity: 0;
        transform: translateY(30px); /* 기본 아래에서 시작 */
        filter: blur(5px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
    }
    .review-card.visible {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
    .review-card .card-image-wrapper { height: 180px; }
    .review-card .card-title { font-size: 1.2em; }
    .review-card .review-text { font-size: 0.9em; }
    .review-card:hover .review-text { max-height: 200px; } /* 모바일에서 내용 영역 조정 */
}


/* --- "4. 자주 묻는 질문 (FAQ)" 섹션 --- */
.faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--background-color-dark);
}
.faq-section .section-title {
    font-size: 2.3em;
    font-weight: 700;
    color: var(--text-color-on-dark-bg);
    margin-bottom: 50px;
    text-align: center;
    padding: 0 15px;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
.faq-item {
    background-color: var(--background-color-dark);
    color: var(--text-color-on-dark-bg);
    border-radius: var(--border-radius-main);
    box-shadow: 7px 7px 15px var(--neumo-shadow-on-dark-bg-darker),
                -7px -7px 15px var(--neumo-shadow-on-dark-bg-lighter);
    padding: 25px 30px;
    transition: all var(--transition-speed);
}
.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 10px 10px 20px var(--neumo-shadow-on-dark-bg-darker),
                -10px -10px 20px var(--neumo-shadow-on-dark-bg-lighter);
}
.faq-item .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 500;
    color: var(--text-color-on-dark-bg);
    line-height: 1.5;
    outline: none; /* 기본 outline 제거 (커스텀 포커스 스타일 사용) */
    border-radius: 4px;
    transition: background-color 0.2s ease;
}
/* 키보드 포커스 스타일 (접근성 향상) */
.faq-item .faq-question:focus {
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 0 2px rgb(255, 217, 0);
}
.faq-item .faq-question:hover {
    background-color: rgb(7, 0, 68);
}
.faq-item .faq-question .arrow {
    font-size: 1.2em;
    color: var(--text-color-light-on-dark-bg);
    transition: transform var(--transition-speed);
}
.faq-item.open .faq-question .arrow {
    transform: rotate(180deg);
}
.faq-item .faq-answer {
    font-size: 1.05em;
    /* 기존 색상: color: var(--text-color-light-on-dark-bg); */
    color: white; /* 답변 내용을 흰색으로 변경 */
    line-height: 1.7;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}
.faq-item.open .faq-answer {
    max-height: 500px;
}


/* FINAL STICKY FOOTER STYLES */
.result-area-wrapper {
    position: fixed;
    bottom: var(--action-bar-height);
    left: 0;
    width: 100%;
    min-height: var(--sticky-footer-height);
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    box-sizing: border-box;
    color: var(--text-color-dark);
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    /* --- 유리 효과 적용 시작 --- */
    background: rgba(255, 255, 255, 0.5); /* 배경 투명도 */
    border-top: 1px solid rgba(146, 146, 146, 0.6); /* 위쪽 테두리 */
    backdrop-filter: blur(25px); /* 블러 강도 최대로 */
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.25); /* 더 강한 그림자 */
    /* --- 유리 효과 적용 끝 --- */
}
.result-area-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.result-card {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    margin: 0 auto;
    flex-grow: 1;
    text-align: center;
}
.result-card h2 { display: none; }
.result-card .icon-wrapper { display: none; }
.result-item {
    font-size: 0.9em;
    margin-bottom: 0;
    color: var(--text-color-light);
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}
.result-item.highlight-total {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-color-dark);
    margin-top: 3px;
    margin-bottom: 3px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    width: 100%;
}
.result-item .result-value {
    font-weight: 700;
    color: #555;
}

.result-item.highlight-total .result-value.red-text {
    font-size: 1.35em;
    color: #ff4c4c;
    margin-left: 5px;
    margin-right: 5px;
    font-weight: 700;
}
.cashback-info {
    font-size: 0.65em;
    font-weight: 500;
    color: var(--text-color-light);
    margin-left: 5px;
    white-space: nowrap;
}
.disclaimer-text {
    position: static;
    width: 100%;
    max-width: 800px;
    text-align: center;
    font-size: 0.7em;
    color: var(--text-color-light);
    font-style: italic;
    line-height: 1.3;
    margin-top: auto;
    padding-top: 3px;
}

/* Hidden elements management, Animation, Option Boxes, etc. */
.hidden { display: none !important; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity var(--transition-speed), transform var(--transition-speed); }
@keyframes shake-horizontal { 0%, 100% { transform: translateX(0); } 10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); } 20%, 40%, 60%, 80% { transform: translateX(3px); } }

#telecomCard.shake-card, #speedCard.shake-card, #tvBundleCard.shake-card {
    animation: shake-horizontal 0.4s ease-in-out forwards;
    transform-origin: center center;
    box-shadow: inset 0 0 10px rgba(255, 0, 0, 0.3),
                7px 7px 15px var(--neumo-shadow-on-dark-bg-darker),
                -7px -7px 15px var(--neumo-shadow-on-dark-bg-lighter);
}
.card.shake-card {
    animation: shake-horizontal 0.4s ease-in-out forwards; transform-origin: center center;
    box-shadow: inset 0 0 10px rgba(255, 0, 0, 0.3), -7px -7px 10px var(--neumo-shadow-light), 7px 7px 10px var(--neumo-shadow-dark);
}

.please-select-message {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--background-color-dark);
    border-radius: 10px;
    padding: 15px 25px;
    font-size: 1.1em; font-weight: 700;
    color: #FFA07A;
    z-index: 100; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    white-space: nowrap; text-align: center;
    box-shadow: -5px -5px 10px var(--neumo-shadow-on-dark-bg-lighter), 5px 5px 10px var(--neumo-shadow-on-dark-bg-darker);
}
#telecomCard.shake-card .please-select-message,
#speedCard.shake-card .please-select-message,
#tvBundleCard.shake-card .please-select-message,
.card.shake-card .please-select-message {
    opacity: 1;
}


.card-initial-wrapper { position: absolute; top: -20px; left: 20px; z-index: 10; }
.card-content { margin-top: 0; }

#telecomCard .icon-wrapper, #speedCard .icon-wrapper, #tvBundleCard .icon-wrapper { 
    text-align: center; 
    margin-bottom: 20px; 
    margin-top: 10px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%;
}
#telecomCard .house-gif, #speedCard .speed-gif, #tvBundleCard .tv-gif { 
    width: 80px; 
    height: 80px; 
    object-fit: contain; 
    margin-top: -5px; 
    filter: brightness(0) invert(1); /* 아이콘을 흰색으로 변경 */
}

.good-gif { 
    width: 80px; 
    height: 80px; 
    object-fit: contain; 
    margin-top: -5px; 
    filter: brightness(0) invert(1); /* 아이콘을 흰색으로 변경 */
}

.telecom-options-container, .speed-options-container, .tv-options-container { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 20px; }

.telecom-option-box, .speed-option-box, .tv-option-box {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 10px; border-radius: 15px; cursor: pointer;
    background-color: var(--background-color-dark);
    box-shadow: 5px 5px 10px var(--neumo-shadow-on-dark-bg-darker),
                -5px -5px 10px var(--neumo-shadow-on-dark-bg-lighter);
    transition: all var(--transition-speed);
    flex-grow: 0; flex-shrink: 0; width: calc(33.33% - 10px);
    max-width: 150px;
    min-width: 120px;
    height: 130px; box-sizing: border-box; position: relative;
    color: var(--text-color-light-on-dark-bg);
    text-align: center;
}

.telecom-option-box .fas, .telecom-option-box .fab {
    font-size: 2.2em; margin-bottom: 5px; transition: color var(--transition-speed);
    color: var(--text-color-light-on-dark-bg);
}
.telecom-options-container .telecom-option-box span {
    font-size: 2.4em; font-weight: 700; transition: color var(--transition-speed);
    color: var(--text-color-on-dark-bg);
    display: block; text-align: center; line-height: 1;
}

.speed-option-box .speed-value {
    font-size: 2.4em; font-weight: 700; margin-bottom: 5px;
    color: var(--text-color-on-dark-bg);
    line-height: 1; transition: color var(--transition-speed), font-size var(--transition-speed);
    display: block; text-align: center;
}
.speed-option-box .speed-unit {
    font-size: 1.0em; font-weight: 500; transition: color var(--transition-speed);
    color: var(--text-color-light-on-dark-bg);
    display: block; text-align: center; margin-top: 2px;
}

.tv-option-box .tv-package-name {
    font-size: 1.2em;
    font-weight: 700; margin-bottom: 5px; line-height: 1.2;
    transition: color var(--transition-speed);
    color: var(--text-color-on-dark-bg);
    width: 100%;
}
.tv-option-box .channel-count {
    font-size: 0.75em;
    font-weight: 300;
    color: var(--text-color-light-on-dark-bg);
    transition: color var(--transition-speed); margin-bottom: 8px;
    width: 100%;
    line-height: 1.3;
}


.telecom-option-box:hover:not(.selected-option),
.speed-option-box:hover:not(.selected-option),
.tv-option-box:hover:not(.selected-option) {
    transform: translateY(1px);
    background-color: var(--background-color-dark);
    box-shadow: inset 3px 3px 6px var(--neumo-inset-shadow-on-dark-bg-darker),
                inset -3px -3px 6px var(--neumo-inset-shadow-on-dark-bg-lighter);
}

.telecom-option-box:active:not(.selected-option),
.speed-option-box:active:not(.selected-option),
.tv-option-box:active:not(.selected-option) {
    transform: translateY(1px);
    background-color: var(--background-color-dark);
    box-shadow: inset 4px 4px 8px var(--neumo-inset-shadow-on-dark-bg-darker),
                inset -4px -4px 8px var(--neumo-inset-shadow-on-dark-bg-lighter);
}

.telecom-option-box.selected-option,
.speed-option-box.selected-option,
.tv-option-box.selected-option {
    background-color: var(--background-color-dark);
    box-shadow: inset 5px 5px 10px var(--neumo-inset-shadow-on-dark-bg-darker),
                inset -5px -5px 10px var(--neumo-inset-shadow-on-dark-bg-lighter);
    transform: translateY(1px);
}

.telecom-option-box.selected-option .fas,
.telecom-option-box.selected-option .fab,
.telecom-options-container .telecom-option-box.selected-option span {
    color: var(--accent-color-on-dark-bg);
}
.speed-option-box.selected-option .speed-value {
    color: var(--accent-color-on-dark-bg);
    font-size: 2.6em;
}
.speed-option-box.selected-option .speed-unit {
    color: var(--accent-color-on-dark-bg);
    opacity: 0.9;
}
.tv-option-box.selected-option .tv-package-name,
.tv-option-box.selected-option .channel-count {
    color: var(--accent-color-on-dark-bg);
}


.dynamic-summary-message-style { color: rgb(51, 51, 51); font-size: 1.0em; font-weight: 500; line-height: 1.6; margin-top: -10px; margin-bottom: 25px; text-align: center; white-space: pre-line; padding: 0 15px; max-width: 90%; }
.summary-details { width: 100%; max-width: 500px; margin: 0 auto; text-align: center; }
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    font-size: 1.1em;
    margin-bottom: 12px;
    flex-wrap: nowrap;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 8px;
    text-align: left;
}
.summary-row:last-child { border-bottom: none; padding-bottom: 0; }
.summary-row .label {
    font-weight: 500;
    color: rgba(54, 54, 54, 0.8);
    text-align: left;
    margin-bottom: 0;
    margin-right: 10px;
    flex-shrink: 0;
}
.summary-row .value {
    font-weight: 700;
    font-size: 1.25em;
    color: rgb(70, 70, 70);
    text-align: right;
    margin-left: auto;
    flex-shrink: 0;
}
.summary-row .unit {
    font-size: 0.9em;
    color: rgb(41, 41, 41);
    font-weight: 500;
    opacity: 0.9;
    margin-left: 3px;
    flex-shrink: 0;
}
.summary-row.highlight-total {
    margin-top: 15px;
    margin-bottom: 12px;
    padding-top: 15px;
    font-size: 1.3em;
    background: linear-gradient(to right, rgba(255, 217, 0, 0.2), rgba(255, 165, 0, 0.1) 50%, rgba(255, 217, 0, 0.2));
    border-radius: 8px; padding: 12px 10px;
    transform: scale(1.02);
    border-bottom: none;
}
.summary-row.highlight-total .label { font-size: 1.1em; color: rgb(63, 63, 63); font-weight: 600; text-align: left;}
.summary-row.highlight-total .value.red-text { font-size: 1.5em; color: #ff0000; text-align: right;}

.cashback-info-summary {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(54, 54, 54, 0.7);
    font-size: 0.8em;
}
.cashback-info-summary .value { color: #cc8400; font-weight: 700; font-size: 1.0em; }
.summary-disclaimer { margin-top: 25px; font-size: 0.8em; line-height: 1.5; color: rgba(0, 0, 0, 0.6); text-align: center;}

/*******************************/
/********** Fact CSS ***********/
/*******************************/
.fact {
    position: relative;
    width: 100%;
    padding: 20px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 0.8s ease-out; /* filter 추가 */
    background-color: transparent;
}
.fact.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0); /* visible 시 블러 제거 */
}

.fact .container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1140px;
}

.fact .row.counters {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.fact .fact-left,
.fact .fact-right {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    padding-top: 30px;
    padding-bottom: 30px;
    border-radius: var(--border-radius-main);
    margin-bottom: 20px;
}

.fact .fact-left {
    color: var(--theme-yellow);
    background: var(--theme-navy);
    box-shadow: inset -3px -3px 8px rgba(0,203,248,0.5), inset 2px 2px 8px rgba(0,0,0,0.7);
}
.fact .fact-right {
    color: var(--theme-navy);
    background: var(--theme-yellow);
    box-shadow: inset -3px -3px 8px rgba(255,255,253,0.7), inset 2px 2px 8px rgba(199,193,130,0.7);
}

@media (min-width: 768px) {
    .fact .fact-left,
    .fact .fact-right {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 0;
        height: 150px;
    }
}

.fact .fact-left > .row,
.fact .fact-right > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-right: -10px;
    margin-left: -10px;
}

.fact .fact-left > .row > .col-6,
.fact .fact-right > .row > .col-6 {
    position: relative;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.fact .fact-left > .row > .col-6:last-child,
.fact .fact-right > .row > .col-6:last-child {
    display: block;
}

@media (min-width: 576px) {
    .fact .fact-left > .row > .col-6,
    .fact .fact-right > .row > .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 0;
    }
}

.fact .fact-icon {
    position: relative;
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fact .fact-icon i {
    font-size: 35px;
    line-height: 1;
}
.fact .fact-left .fact-icon i { color: var(--theme-yellow); }
.fact .fact-right .fact-icon i { color: var(--theme-navy); }

.fact .fact-text h3 {
    font-family: 'GmarketSans', sans-serif;
    font-weight: 700;
    font-size: 30px;
    margin-bottom: 5px;
    line-height: 1.1;
}
.fact .fact-text p {
    font-family: 'GmarketSans', sans-serif;
    font-weight: 300;
    margin: 0;
    font-size: 14px;
    text-transform: none;
    line-height: 1.2;
}
.fact .fact-left .fact-text h3, .fact .fact-left .fact-text p { color: var(--theme-yellow); }
.fact .fact-right .fact-text h3, .fact .fact-right .fact-text p { color: var(--theme-navy); }

.fact input[type="date"] {
    padding: 5px;
    border-radius: 4px;
    font-family: 'GmarketSans', sans-serif;
    font-weight: 300;
    font-size: 13px;
    margin-top: 5px;
    width: 150px;
    max-width: 100%;
    display: block;
}
.fact .fact-left input[type="date"] {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--theme-yellow);
}
.fact .fact-left input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.fact marquee {
    font-family: 'GmarketSans', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    font-size: 14px;
    height: 80px;
    width: 100%;
    display: block;
    overflow: hidden;
    box-sizing: border-box;
}

.fact marquee > div {
    padding-bottom: 2px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fact .fact-left marquee { color: #f0f0f0; }
.fact .fact-right marquee { color: #333333; }
.fact marquee b {
    font-family: 'GmarketSans', sans-serif;
    font-weight: 500;
}

@media (min-width: 992px) {
    .fact {
        padding: 15px 0;
    }
    .fact .fact-left,
    .fact .fact-right {
        padding-top: 20px;
        padding-bottom: 20px;
        display: flex;
        align-items: center;
        min-height: 120px;
        height: 150px;
    }
    .fact .fact-left > .row,
    .fact .fact-right > .row {
        width: 100%;
        align-items: center;
    }

    .fact .fact-left > .row > .col-6,
    .fact .fact-right > .row > .col-6 {
       align-items: center;
    }

    .fact .fact-icon {
        width: 40px; height: 40px; margin-right: 10px;
    }
    .fact .fact-icon i { font-size: 30px;}

    .fact .fact-text h3 { font-size: 24px; }
    .fact .fact-text p { font-size: 13px; }
    .fact input[type="date"] {
        font-size: 12px; padding: 3px 5px; width: auto; max-width: 120px;
        margin-top: 3px;
    }

    .fact marquee {
        min-height: 70px;
        font-size: 13px;
    }
}


/* MEDIA QUERIES (기존 계산기, FAQ 등 나머지 섹션 스타일) */

@media (max-width: 599px) {
    :root {
        --action-bar-height: 50px;
    }
    :root { --sticky-footer-height: 170px; }

    body { padding-bottom: calc(170px + 50px); }

    .page-section, .main-calculator-wrapper { padding-top: 30px; padding-bottom: 30px; }
    .calculator-title { font-size: 1.8em; margin-bottom: 30px; }
    .page-header-intro .intro-title { font-size: 1.8em; margin-bottom: 30px; }
    .benefit-grid { grid-template-columns: 1fr; gap: 20px; padding: 0 10px; }
    .benefit-item {
        /* 모바일에서 benefit-item에 공통 애니메이션 초기 상태 적용 */
        opacity: 0;
        transform: translateY(30px); /* 기본 아래에서 시작 */
        filter: blur(5px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
    }
    .benefit-item.visible { /* 모바일에서도 visible 클래스 적용 시 애니메이션 */
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
    /* 모바일에서 좌우 이동 애니메이션은 빼고, 그냥 위에서 아래로 나타나는 효과만 적용 */
    .benefit-item:nth-child(1), .benefit-item:nth-child(2), .benefit-item:nth-child(3), .benefit-item:nth-child(4) {
        transform: translateY(30px); /* 기본값으로 재설정 */
    }

    .benefit-item .benefit-icon { font-size: 2.2em; }
    .benefit-item .title { font-size: 1.15em; }
    .benefit-item .description { font-size: 0.9em; }

    .card { padding: 40px 15px 30px 15px; }
    #telecomCard h2, #speedCard h2, #tvBundleCard h2 { font-size: 1.3em; margin-bottom: 20px;}
    /* A, B, C 박스의 이니셜 크기 조정 */
    #telecomCard .card-initial-wrapper .card-initial,
    #speedCard .card-initial-wrapper .card-initial,
    #tvBundleCard .card-initial-wrapper .card-initial { font-size: 3.2em; top: -15px; left: 15px;}

    #finalSummarySection.card.input-card { padding: 40px 20px 30px 20px; }
    .summary-card-style .card-content h2 { font-size: 1.2em; margin-bottom: 20px;}
    .dynamic-summary-message-style { font-size: 0.9em; margin-bottom: 20px;}
    .summary-row { font-size: 1em; margin-bottom: 10px; padding-bottom: 8px;}
    .summary-row .label { min-width: auto; margin-right: 5px; }
    .summary-row .value { font-size: 1.1em; }
    .summary-row .unit { font-size: 0.85em; }
    .summary-row.highlight-total { font-size: 1.15em; padding: 10px; margin-top:12px; margin-bottom:10px; }
    .summary-row.highlight-total .label {font-size: 1em;}
    .summary-row.highlight-total .value.red-text {font-size: 1.3em;}
    .cashback-info-summary { font-size: 0.75em; padding-top: 8px; margin-top:8px;}
    .cashback-info-summary .value {font-size: 0.9em;}
    .summary-disclaimer {font-size: 0.75em; margin-top: 20px;}


    .telecom-options-container, .speed-options-container, .tv-options-container { gap: 10px; }
    .telecom-option-box, .speed-option-box, .tv-option-box {
        width: calc(50% - 5px);
        max-width: none;
        height: 100px;
        padding: 8px;
    }
    .telecom-options-container .telecom-option-box span { font-size: 1.8em; }
    .speed-option-box .speed-value { font-size: 1.8em; }
    .speed-option-box .speed-unit { font-size: 0.9em; }
    .tv-option-box .tv-package-name { font-size: 1.0em; margin-bottom: 3px; }
    .tv-option-box .channel-count { font-size: 0.7em; margin-bottom: 5px;}
    #telecomCard .house-gif, #speedCard .speed-gif, #tvBundleCard .tv-gif { 
        width: 60px; 
        height: 60px; 
        filter: brightness(0) invert(1); /* 모바일에서도 흰색 유지 */
    }

    .comparison-section .section-title, .faq-section .section-title, .calculator-title { font-size: 1.8em; margin-bottom: 30px; }
    .comparison-cards-wrapper, .faq-list { gap: 15px; padding-left:10px; padding-right:10px;}
    .comparison-card { padding: 30px 20px;}
    .comparison-card .card-header {font-size: 1.3em;}
    .comparison-card .card-header .initial {font-size: 1.8em;}
    .comparison-card .card-body p, .comparison-card .card-body li {font-size: 0.9em;}

    .faq-item { padding: 20px; }
    .faq-item .faq-question { font-size: 1.05em; }
    .faq-item .faq-answer { font-size: 0.95em; margin-top: 15px; padding-top:15px; }

    .result-area-wrapper { padding: 8px 10px; }
    .result-item { font-size: 0.85em; }
    .result-item.highlight-total { font-size: 1.1em; }
    .result-item.highlight-total .result-value.red-text {font-size: 1.2em;}
    .cashback-info {font-size: 0.6em;}
    .disclaimer-text {font-size: 0.65em;}
}

@media (min-width: 600px) and (max-width: 991px) {
    :root { --sticky-footer-height: 175px; }

    .page-section, .main-calculator-wrapper { padding-top: 50px; padding-bottom: 50px; }
    .main-calculator-wrapper, .comparison-section, .faq-section { padding-left: 15px; padding-right: 15px;}

    .card h2 { font-size: 1.3em; }
    /* A, B, C 박스의 이니셜 크기 조정 */
    .card-initial { font-size: 4em; }

    #telecomCard, #speedCard, #tvBundleCard { padding: 50px 25px 35px 25px; }
    #telecomCard h2, #speedCard h2, #tvBundleCard h2 { font-size: 1.45em; margin-bottom: 22px; }
    #telecomCard .card-initial-wrapper .card-initial,
    #speedCard .card-initial-wrapper .card-initial,
    #tvBundleCard .card-initial-wrapper .card-initial { font-size: 3.8em; top: -18px; left: 18px; }

    .telecom-options-container, .speed-options-container, .tv-options-container { gap: 12px; }
    .telecom-option-box, .speed-option-box, .tv-option-box {
        width: calc(33.33% - 8px);
        max-width: 140px;
        height: 115px;
        padding: 8px;
    }

    .telecom-option-box .fas, .telecom-option-box .fab { font-size: 2.1em; }
    .telecom-options-container .telecom-option-box span { font-size: 2.0em; }

    .speed-option-box .speed-value { font-size: 2.0em; }
    .speed-option-box .speed-unit { font-size: 0.85em; }
    .tv-option-box .tv-package-name { font-size: 1.1em; margin-bottom: 4px;}
    .tv-option-box .channel-count { font-size: 0.75em; margin-bottom: 6px;}


    .result-item { font-size: 0.95em; }
    .result-item.highlight-total { font-size: 1.15em; }
    .result-item.highlight-total .result-value.red-text { font-size: 1.3em; }
    .cashback-info { font-size: 0.7em; }
    .page-header-intro .intro-title { font-size: 2.2em; margin-bottom: 45px; }
    .benefit-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; padding: 0 15px;}
    .benefit-item {
        /* 태블릿/모바일 뷰에서 benefit-item 애니메이션 조정 */
        opacity: 0;
        transform: translateY(30px); /* 기본 아래에서 시작 */
        filter: blur(5px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
    }
    .benefit-item.visible {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
    /* 모바일에서 좌우 이동 애니메이션은 빼고, 그냥 위에서 아래로 나타나는 효과만 적용 */
    .benefit-item:nth-child(1), .benefit-item:nth-child(2), .benefit-item:nth-child(3), .benefit-item:nth-child(4) {
        transform: translateY(30px); /* 기본값으로 재설정 */
    }

    .benefit-item { padding: 18px; }
    .benefit-item .title { font-size: 1.25em; }
    .benefit-item .description { font-size: 0.95em; }
    .comparison-section .section-title, .faq-section .section-title, .calculator-title { font-size: 2.0em; margin-bottom: 40px;}
    .comparison-cards-wrapper, .faq-list { gap: 25px; }
    .comparison-card { padding: 35px 25px; }
    .comparison-card .card-header { font-size: 1.5em; }
    .comparison-card .card-body li { font-size: 0.95em; }

    .faq-item { padding: 25px 30px; }
    .faq-item .faq-question { font-size: 1.1em; }
    .faq-item .faq-answer { font-size: 1.0em; }
}

@media (min-width: 992px) {
    :root { --sticky-footer-height: 180px; }

    .page-section, .main-calculator-wrapper { padding-top: 70px; padding-bottom: 70px; }
    .main-calculator-wrapper, .comparison-section, .faq-section { max-width: none; padding-left: 0; padding-right: 0; }
    .page-header-intro { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
    .main-calculator-wrapper .input-area-wrapper { max-width: 800px; padding-left: 20px; padding-right: 20px;}
    .comparison-section .comparison-cards-wrapper { max-width: 1100px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px;}
    .faq-section .faq-list { max-width: 900px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px;}

    .result-area-wrapper { max-width: 100%; left: 0; padding-left: 0; padding-right: 0; }
    .result-area-wrapper .result-card, .result-area-wrapper .disclaimer-text { width: 100%; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }

    #telecomCard, #speedCard, #tvBundleCard { padding: 60px 30px 40px 30px; margin-bottom: 50px; }

    .telecom-option-box .fas, .telecom-option-box .fab { font-size: 2.5em; }
    .telecom-options-container .telecom-option-box span { font-size: 2.2em; }

    .speed-option-box .speed-value { font-size: 2.3em; }
    .speed-option-box .speed-unit { font-size: 1.0em; }
    .tv-option-box .tv-package-name { font-size: 1.3em; }
    .tv-option-box .channel-count { font-size: 0.85em; font-weight: 300; }

    .result-item { font-size: 1.0em; }
    .result-item.highlight-total { font-size: 1.4em; }
    .result-item.highlight-total .result-value.red-text { font-size: 1.5em; }
    .cashback-info { font-size: 0.65em; }
    .page-header-intro .intro-title { font-size: 2.8em; margin-bottom: 60px; }
    .benefit-grid { gap: 30px; }
    .benefit-item {
        /* PC 화면에서 benefit-item 애니메이션 조정 */
        opacity: 0;
        transform: translateX(0) translateY(30px); /* 기본값 */
        filter: blur(5px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
    }
    .benefit-item:nth-child(1),
    .benefit-item:nth-child(3) { /* 왼쪽 박스 */
        transform: translateX(-50px);
    }
    .benefit-item:nth-child(2),
    .benefit-item:nth-child(4) { /* 오른쪽 박스 */
        transform: translateX(50px);
    }
    .benefit-item.visible {
        opacity: 1;
        transform: translateX(0) translateY(0);
        filter: blur(0);
    }

    .benefit-item .title { font-size: 1.3em; }
    .benefit-item .description { font-size: 1.0em; }
    .comparison-section .section-title, .faq-section .section-title, .calculator-title { font-size: 2.3em; margin-bottom: 50px; }
    .comparison-cards-wrapper, .faq-list { gap: 25px; }
    .comparison-card { padding: 40px 30px; }
    .comparison-card .card-header { font-size: 1.6em; }
    .comparison-card .card-body li { font-size: 1.0em; }

    .faq-item { padding: 25px 30px; }
    .faq-item .faq-question { font-size: 1.15em; }
    .faq-item .faq-answer { font-size: 1.05em; }

    .telecom-options-container, .speed-options-container, .tv-options-container { gap: 20px; }
    .telecom-option-box, .speed-option-box { width: 150px; height: 130px; flex: 0 0 150px; }
    .tv-option-box { width: calc(50% - 10px); max-width: 180px; height: 130px; flex: 0 0 auto; }
}

/* ===== START: 하단 고정 액션바 스타일 ===== */
.sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 1001; /* 결과창(1000)보다 위에 오도록 설정 */
    box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
    height: var(--action-bar-height);
}

.action-button {
    flex: 1;
    padding: 15px 10px;
    text-align: center;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* << MODIFIED: 호버 효과를 위한 transition 속성 변경 >> */
    transition: transform 0.2s ease-out, filter 0.2s ease-out;
}

/* << MODIFIED: 호버 효과 스타일 추가 >> */
.action-button:hover {
    transform: translateY(-3px); /* 버튼을 살짝 위로 이동 */
    filter: brightness(70%);   /* 버튼 색상을 약간 어둡게 */
}

/* 호버 시 아이콘 애니메이션 강화 */
.action-button:hover .phone-icon {
    animation-duration: 1.5s; /* 호버 시 더 빠르게 */
}

.action-button:hover .kakao-icon {
    animation-duration: 1.5s; /* 호버 시 더 빠르게 */
}

.action-button .fas {
    font-size: 1.2em;
}

/* 아이콘 래퍼 (뉴모피즘 효과를 위한 컨테이너) */
.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    margin-right: 8px;
    transition: all 0.3s ease;
}

/* 전화 아이콘 래퍼 - 뉴모피즘 효과 */
.phone-icon-wrapper {
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.15),
        -4px -4px 8px rgba(252, 251, 255, 0.8),
        inset 2px 2px 4px rgba(241, 245, 255, 0.9),
        inset -2px -2px 4px rgba(0, 0, 0, 0.05);
}

.action-button.call-button:hover .phone-icon-wrapper {
    box-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.1),
        -2px -2px 4px rgba(255, 255, 255, 0.6),
        inset 3px 3px 6px rgba(0, 0, 0, 0.1),
        inset -3px -3px 6px rgba(255, 255, 255, 0.7);
    transform: translateY(1px);
}

/* 카톡 아이콘 래퍼 - 뉴모피즘 효과 */
.kakao-icon-wrapper {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.4),
        -4px -4px 8px rgba(30, 30, 60, 0.6),
        inset 2px 2px 4px rgba(0, 0, 0, 0.3),
        inset -2px -2px 4px rgba(50, 50, 80, 0.4);
}

.action-button.kakao-button:hover .kakao-icon-wrapper {
    box-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.3),
        -2px -2px 4px rgba(30, 30, 60, 0.4),
        inset 3px 3px 6px rgba(0, 0, 0, 0.4),
        inset -3px -3px 6px rgba(50, 50, 80, 0.3);
    transform: translateY(1px);
}

/* 전화 아이콘 흔들림 애니메이션 */
@keyframes phone-shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(-15deg);
    }
    20% {
        transform: rotate(15deg);
    }
    30% {
        transform: rotate(-12deg);
    }
    40% {
        transform: rotate(12deg);
    }
    50% {
        transform: rotate(-8deg);
    }
    60% {
        transform: rotate(8deg);
    }
    70% {
        transform: rotate(-5deg);
    }
    80% {
        transform: rotate(5deg);
    }
    90% {
        transform: rotate(-2deg);
    }
}

.phone-icon {
    display: inline-block;
    animation: phone-shake 2s ease-in-out infinite;
    transform-origin: center center;
    color: #06173E;
    z-index: 1;
}

/* 카톡 아이콘 흔들림 애니메이션 */
@keyframes kakao-shake {
    0%, 100% {
        transform: rotate(0deg) translateX(0);
    }
    10% {
        transform: rotate(-12deg) translateX(-2px);
    }
    20% {
        transform: rotate(12deg) translateX(2px);
    }
    30% {
        transform: rotate(-10deg) translateX(-2px);
    }
    40% {
        transform: rotate(10deg) translateX(2px);
    }
    50% {
        transform: rotate(-8deg) translateX(-1px);
    }
    60% {
        transform: rotate(8deg) translateX(1px);
    }
    70% {
        transform: rotate(-5deg) translateX(-1px);
    }
    80% {
        transform: rotate(5deg) translateX(1px);
    }
    90% {
        transform: rotate(-2deg) translateX(0);
    }
}

.kakao-icon {
    display: inline-block;
    animation: kakao-shake 2s ease-in-out infinite;
    transform-origin: center center;
    animation-delay: 0.3s; /* 전화 아이콘과 약간 다른 타이밍 */
    color: #ffffff;
    z-index: 1;
}

.action-button.call-button {
    background-color: #ffffff; /* 초록색 계열 */
    color:  #06173E;
}

.action-button.kakao-button {
    background-color: #06173E; /* 카카오 노란색 */
    color: #ffffff; /* 카카오 텍스트 색상 */
}

/* 모바일 화면 대응 (액션바) */
@media (max-width: 599px) {
    .action-button {
        font-size: 0.95em;
        padding: 12px 5px;
    }
    .action-button .fas {
        font-size: 1.1em;
    }
    .icon-wrapper {
        width: 35px;
        height: 35px;
        margin-right: 6px;
    }
    .phone-icon-wrapper {
        box-shadow: 
            3px 3px 6px rgba(0, 0, 0, 0.15),
            -3px -3px 6px rgba(255, 255, 255, 0.7),
            inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.9),
            inset -1.5px -1.5px 3px rgba(0, 0, 0, 0.05);
    }
    .kakao-icon-wrapper {
        box-shadow: 
            3px 3px 6px rgba(0, 0, 0, 0.4),
            -3px -3px 6px rgba(30, 30, 60, 0.5),
            inset 1.5px 1.5px 3px rgba(0, 0, 0, 0.3),
            inset -1.5px -1.5px 3px rgba(50, 50, 80, 0.4);
    }
}
/* ===== END: 하단 고정 액션바 스타일 ===== */

/* ===== START: 관련 페이지 섹션 스타일 ===== */
.related-pages-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin-top: 40px;
}

.related-pages-section .section-title {
    text-align: center;
    font-size: 2.2em;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.related-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.related-page-card {
    background: white;
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.related-page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.related-page-card .page-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.related-page-card h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.related-page-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95em;
}

.page-link-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.page-link-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .related-pages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-page-card {
        padding: 25px 20px;
    }
    
    .related-pages-section .section-title {
        font-size: 1.8em;
    }
}
/* ===== END: 관련 페이지 섹션 스타일 ===== */