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

/* --- :ROOT VARIABLES --- */
:root {
    /* 이미지 기반 색상 팔레트 적용 */
    --background-color-light: #F5F5F5; /* 매우 밝은 베이지/오프화이트 */
    --background-color-dark: #E8E2D0; /* 따뜻한 아이보리/크림 색상 */

    --neumo-shadow-dark: #D4C8B8; /* 박스보다 약간 어두운 그림자 */
    --neumo-shadow-light: #F0E8D8; /* 박스보다 약간 밝은 하이라이트 */
    --primary-blue: #FFD700; /* 따뜻한 골드/옐로우 */
    --primary-blue-dark: #FFA500; /* 따뜻한 오렌지 */

    /* --background-color-dark 위에 사용될 뉴모피즘 그림자 (튀어나온 효과) */
    --neumo-shadow-on-dark-bg-darker: #D0C0A8;  /* 박스보다 어두운 그림자 */
    --neumo-shadow-on-dark-bg-lighter: #fffaf4; /* 박스보다 밝은 하이라이트 */

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

    --selected-neumo-shadow-dark: #C8B898;
    --selected-neumo-shadow-more-dark: #B8A888;
    --selected-neumo-shadow-light: #F8F0E0;

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

    --text-color-on-dark-bg: #FFFFFF; /* 어두운 배경 위 밝은 텍스트 (흰색) */
    --text-color-light-on-dark-bg: #F0F0F0; /* 매우 밝은 베이지/오프화이트 */

    /* 어두운 배경 위 강조색 (글로우 효과용) */
    --accent-color-on-dark-bg: #FFD700; /* 따뜻한 골드/옐로우 */
    --glow-color: #FFD700; /* 호버 시 글로우 효과 색상 */
    --glow-color-secondary: #FFA500; /* 보조 글로우 색상 */

    --border-radius-main: 15px; /* 더 둥근 모서리 */
    --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: #FFD700; /* 따뜻한 골드 */
    --theme-navy: #E8E2D0; /* 박스 색상과 동일 */

    /* 계산기 전용 색상은 유지하되, 필요시 --theme-yellow/navy 오버라이드 가능 */
    --calculator-neumo-shadow-light: #F4E8D8; /* 박스보다 밝은 하이라이트 */
    --calculator-neumo-shadow-dark: #D0C0A8;  /* 박스보다 어두운 그림자 */
}

/* --- NAVIGATION STYLES --- */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.75), rgba(60, 60, 60, 0.75));
    backdrop-filter: blur(25px) saturate(1.2);
    -webkit-backdrop-filter: blur(25px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.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: var(--background-color-dark); /* 아이보리 색상 */
    font-size: 1.6em;
    font-weight: 800;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

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

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: inline-block;
    padding: 12px 20px;
    background: var(--background-color-dark); /* 아이보리 색상 */
    color: var(--text-color-dark);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 
        3px 3px 8px rgba(139, 69, 19, 0.4),
        -2px -2px 6px rgba(160, 82, 45, 0.3),
        inset 1px 1px 2px rgba(205, 133, 63, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 80px;
    text-align: center;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    background: var(--background-color-dark);
    color: var(--text-color-dark);
    transform: translateY(-1px);
    box-shadow: 
        4px 4px 12px rgba(139, 69, 19, 0.5),
        -3px -3px 8px rgba(160, 82, 45, 0.4),
        0 0 15px rgba(205, 133, 63, 0.3),
        inset 1px 1px 2px rgba(222, 184, 135, 0.2);
}

.nav-links a:active {
    transform: translateY(2px);
    box-shadow: 
        inset 6px 6px 12px rgba(139, 69, 19, 0.6),
        inset -6px -6px 12px rgba(160, 82, 45, 0.4),
        2px 2px 4px rgba(139, 69, 19, 0.5);
}

/* 현재 페이지 활성화 스타일 */
.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: var(--text-color-dark); /* 어두운 배경 */
    color: var(--background-color-dark); /* 아이보리 텍스트 */
    box-shadow: 
        8px 8px 16px rgb(51, 21, 0),
        -8px -8px 16px rgba(189, 94, 51, 0.445)
        inset 2px 2px 4px rgba(114, 57, 0, 0.658);
}

/* 모바일 네비게이션 */
@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: 8px;
    }
    
    .nav-links a {
        padding: 10px 16px;
        font-size: 0.8em;
        min-width: 70px;
    }
}

/* --- 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),
                0 0 25px rgba(255, 215, 0, 0.3), /* 따뜻한 골드 글로우 */
                0 0 50px rgba(255, 165, 0, 0.15); /* 보조 오렌지 글로우 */
}
.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); /* FAQ 섹션과 동일한 아이보리 배경 */
}
.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;
  
    /* 그라데이션 배경 설정 - A, B, C 텍스트와 동일한 골드 그라데이션 */
    background: linear-gradient(to right, #b18200, #333, #b18200); /* 골드 -> 어두운색 -> 골드 */
    
    /* 배경 크기를 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-dark); /* 어두운 텍스트 (클릭 시 배경과 동일) */
    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),
                0 0 30px rgba(255, 215, 0, 0.3), /* 따뜻한 골드 글로우 */
                0 0 60px rgba(255, 165, 0, 0.15); /* 보조 오렌지 글로우 */
}

/* 개별 카드의 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));
    
    /* calculator-1과 동일한 그라데이션 효과 */
    background: linear-gradient(to right, #b18200, #333, #b18200);
    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;
}

#telecomCard .card-initial-wrapper .card-initial,
#speedCard .card-initial-wrapper .card-initial,
#tvBundleCard .card-initial-wrapper .card-initial {
    /* calculator-1과 동일한 그라데이션 효과 */
    background: linear-gradient(to right, #b18200, #333, #b18200);
    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;
    
    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(--background-color-dark); /* 아이보리 배경 */
    color: var(--text-color-dark); /* 어두운 텍스트 */
    box-shadow: 7px 7px 15px var(--neumo-shadow-on-dark-bg-darker),
                -7px -7px 15px var(--neumo-shadow-on-dark-bg-lighter);
    padding: 50px 30px 40px 30px;
}
#finalSummarySection:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 20px var(--neumo-shadow-on-dark-bg-darker),
                -10px -10px 20px var(--neumo-shadow-on-dark-bg-lighter),
                0 0 30px rgba(255, 215, 0, 0.3), /* 따뜻한 골드 글로우 */
                0 0 60px rgba(255, 165, 0, 0.15); /* 보조 오렌지 글로우 */
}
.summary-card-style .card-content { width: 100%; }
.summary-card-style .card-content h2 {
    font-size: 1.3em;
    color: var(--text-color-dark); /* 어두운 텍스트 색상 */
    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;}
.summary-card-style .icon { color: var(--text-color-dark); font-size: 4em; text-shadow: 0 0 15px rgba(0, 0, 0, 0.3); }

.summary-detail-button {
    background-color: var(--text-color-dark); /* C 박스 클릭 시와 동일한 어두운 배경 */
    color: var(--background-color-dark); /* 아이보리 텍스트 */
    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;
    box-shadow: 3px 3px 8px var(--neumo-shadow-on-dark-bg-darker),
                -3px -3px 8px var(--neumo-shadow-on-dark-bg-lighter);
}

.summary-detail-button:hover {
    background-color: var(--text-color-dark); /* 어두운 배경 유지 */
    color: var(--background-color-dark); /* 아이보리 텍스트 유지 */
    transform: translateY(-2px);
    box-shadow: 5px 5px 12px var(--neumo-shadow-on-dark-bg-darker),
                -5px -5px 12px var(--neumo-shadow-on-dark-bg-lighter),
                0 0 20px rgba(255, 215, 0, 0.4); /* 골드 글로우 */
}

/* --- "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;

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

    /* A, B, C 텍스트와 동일한 골드 그라데이션 배경 설정 */
    background: linear-gradient(to right, #b18200, #333, #b18200);
    
    /* 배경 크기를 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),
                0 0 30px rgba(255, 215, 0, 0.3), /* 따뜻한 골드 글로우 */
                0 0 60px rgba(255, 165, 0, 0.15); /* 보조 오렌지 글로우 */
}

/* 카드 이미지 스타일 */
.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);
}

/* 후기 내용 숨김/표시 관련 스타일 */
.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;
    margin-bottom: 50px;
    text-align: center;
    padding: 0 15px;
    
    /* A, B, C 텍스트와 동일한 그라데이션 효과 */
    background: linear-gradient(to right, #b18200, #333, #b18200);
    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;
}
.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-dark); /* SK, KT, LG 클릭 시 배경 색상과 동일 */
    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),
                0 0 25px rgba(255, 215, 0, 0.3), /* 따뜻한 골드 글로우 */
                0 0 50px rgba(255, 165, 0, 0.15); /* 보조 오렌지 글로우 */
}
.faq-item .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 700; /* Q 영역 텍스트를 굵게 */
    color: var(--text-color-dark); /* SK, KT, LG 클릭 시 배경 색상과 동일 */
    line-height: 1.5;
}
.faq-item .faq-question .arrow {
    font-size: 1.2em;
    color: var(--text-color-dark); /* SK, KT, LG 클릭 시 배경 색상과 동일 */
    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-dark); /* SK, KT, LG 클릭 시 배경 색상과 동일 */
    line-height: 1.7;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--neumo-shadow-on-dark-bg-darker);
    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; 
    /* 입체 박스 스타일 - 크기 축소 */
    background-color: var(--background-color-dark);
    border-radius: 15px;
    padding: 12px;
    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);
    position: relative;
    overflow: hidden;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
#telecomCard .house-gif, #speedCard .speed-gif, #tvBundleCard .tv-gif { 
    width: 80px; 
    height: 80px; 
    object-fit: contain; 
    margin-top: -5px; 
    text-align: center; 
    /* 골드 색상 필터 적용 */
    filter: hue-rotate(45deg) saturate(1.5) brightness(1.2) contrast(1.1);
    transition: all var(--transition-speed);
}

/* 아이콘 박스 호버 효과 */
#telecomCard:hover .icon-wrapper, 
#speedCard:hover .icon-wrapper, 
#tvBundleCard:hover .icon-wrapper {
    box-shadow: 
        8px 8px 16px var(--neumo-shadow-on-dark-bg-darker),
        -8px -8px 16px var(--neumo-shadow-on-dark-bg-lighter),
        0 0 20px rgba(255, 215, 0, 0.3),
        0 0 40px rgba(255, 165, 0, 0.15);
    transform: translateY(-1px);
}

/* 아이콘 박스 클릭 효과 */
#telecomCard:active .icon-wrapper, 
#speedCard:active .icon-wrapper, 
#tvBundleCard:active .icon-wrapper {
    box-shadow: 
        inset 3px 3px 6px var(--neumo-shadow-on-dark-bg-darker),
        inset -3px -3px 6px var(--neumo-shadow-on-dark-bg-lighter);
    transform: translateY(1px);
}

/* 아이콘 호버 효과 */
#telecomCard:hover .house-gif, 
#speedCard:hover .speed-gif, 
#tvBundleCard:hover .tv-gif {
    filter: hue-rotate(45deg) saturate(1.8) brightness(1.4) contrast(1.2) drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
    transform: scale(1.05);
}

.good-gif { width: 80px; height: 80px; object-fit: contain; margin-top: -5px; text-align: center; }

.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); /* A, B, C 박스와 동일한 아이보리 배경 */
    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-dark);
    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-dark);
}
.telecom-options-container .telecom-option-box span {
    font-size: 2.4em; font-weight: 700; transition: color var(--transition-speed);
    color: var(--text-color-dark);
    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-dark);
    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);
    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-dark);
    width: 100%;
}
.tv-option-box .channel-count {
    font-size: 0.75em;
    font-weight: 300;
    color: var(--text-color-light);
    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-shadow-on-dark-bg-darker),
                inset -3px -3px 6px var(--neumo-shadow-on-dark-bg-lighter),
                -2px -5px  40px rgba(255, 217, 0, 0.479), /* 따뜻한 골드 글로우 */
                5px 2px 40px rgba(255, 166, 0, 0.445); /* 보조 오렌지 글로우 */
}

.telecom-option-box:active:not(.selected-option),
.speed-option-box:active:not(.selected-option),
.tv-option-box:active:not(.selected-option) {
    transform: translateY(2px); /* 더 깊이 눌린 효과 */
    background-color: var(--background-color-dark);
    box-shadow: inset 6px 6px 12px var(--neumo-shadow-on-dark-bg-darker),
                inset -6px -6px 12px var(--neumo-shadow-on-dark-bg-lighter);
}

.telecom-option-box.selected-option,
.speed-option-box.selected-option,
.tv-option-box.selected-option {
    background-color: var(--text-color-dark); /* 어두운 텍스트 색상을 배경으로 */
    box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.2),
                inset -5px -5px 10px rgba(255, 255, 255, 0.3),
                0 0 15px rgba(255, 215, 0, 0.5); /* 선택 시 글로우 효과 */
    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(--background-color-dark); /* 아이보리 배경 색상을 텍스트로 */
    font-weight: 800; /* 더 굵게 */
}

/* A 박스는 B, C 박스와 동일한 색상 사용 (통신사별 브랜드 색상 제거) */
.speed-option-box.selected-option .speed-value {
    color: var(--background-color-dark); /* 아이보리 배경 색상을 텍스트로 */
    font-size: 2.6em;
    font-weight: 800; /* 더 굵게 */
}
.speed-option-box.selected-option .speed-unit {
    color: var(--background-color-dark); /* 아이보리 배경 색상을 텍스트로 */
    opacity: 0.9;
    font-weight: 600; /* 더 굵게 */
}
.tv-option-box.selected-option .tv-package-name,
.tv-option-box.selected-option .channel-count {
    color: var(--background-color-dark); /* 아이보리 배경 색상을 텍스트로 */
    font-weight: 800; /* 더 굵게 */
}


.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: var(--background-color-light); /* 밝은 아이보리 배경 */
    border-radius: 8px; 
    padding: 12px 10px;
    transform: scale(1.02);
    border-bottom: none;
    box-shadow: 3px 3px 8px var(--neumo-shadow-dark),
                -3px -3px 8px var(--neumo-shadow-light); /* 뉴모피즘 효과 */
}
.summary-row.highlight-total .label { font-size: 1.1em; color: var(--text-color-dark); 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 !important; /* 강제로 블록 요소로 설정 */
    text-align: center;
    margin-top: 15px;
    padding: 15px; /* 패딩 증가 */
    background: var(--background-color-dark); /* 아이보리 배경 */
    border-radius: 6px;
    color: var(--text-color-dark);
    font-size: 1.8em; /* 2배 크기 (0.9em → 1.8em) */
    font-weight: 500;
    box-shadow: 2px 2px 6px var(--neumo-shadow-on-dark-bg-darker),
                -2px -2px 6px var(--neumo-shadow-on-dark-bg-lighter);
    width: 100%; /* 전체 너비 사용 */
    box-sizing: border-box;
}
.cashback-info-summary .value { 
    color: #ff0000; /* 빨간색 */
    font-weight: 700; 
    font-size: 2.2em; /* 반으로 줄임 (4.4em → 2.2em) */
}
.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;
    margin-right: 10px; /* 오른쪽 박스에 오른쪽 마진 추가 */
    margin-left: 10px; /* 왼쪽 박스에 왼쪽 마진 추가 */
}

.fact .fact-left {
    color: var(--text-color-dark);
    background: 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);
}
.fact .fact-right {
    color: var(--text-color-dark);
    background: 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);
}

@media (min-width: 768px) {
    .fact .fact-left,
    .fact .fact-right {
        flex: 0 0 calc(50% - 20px); /* 간격을 고려한 너비 조정 */
        max-width: calc(50% - 20px);
        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(--text-color-dark); /* 텍스트와 동일한 색상 */
    animation: location-blink 2s ease-in-out infinite;
    display: inline-block;
    transform-origin: center;
}
.fact .fact-right .fact-icon i { 
    color: var(--text-color-dark); /* 텍스트와 동일한 색상 */
    animation: users-bounce 2s ease-in-out infinite;
    display: inline-block;
    transform-origin: center;
}

/* 실시간 상담 아이콘 애니메이션 - 위치 마커가 깜빡이는 효과 */
@keyframes location-blink {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* 실시간 현금 지급 아이콘 애니메이션 - 사람들이 움직이는 효과 */
@keyframes users-bounce {
    0%, 100% { 
        transform: translateY(0px) scale(1);
    }
    25% { 
        transform: translateY(-3px) scale(1.05);
    }
    50% { 
        transform: translateY(0px) scale(1);
    }
    75% { 
        transform: translateY(-2px) scale(1.02);
    }
}

/* 호버 시 애니메이션 일시정지 및 강화 효과 */
.fact .fact-left:hover .fact-icon i,
.fact .fact-right:hover .fact-icon i {
    animation-play-state: paused;
    transform: scale(1.3);
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.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(--text-color-dark); }
.fact .fact-right .fact-text h3, .fact .fact-right .fact-text p { color: var(--text-color-dark); }

.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: var(--background-color-light);
    border: 1px solid var(--neumo-shadow-dark);
    color: var(--text-color-dark);
}
.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: var(--text-color-dark); }
.fact .fact-right marquee { color: var(--text-color-dark); }
.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: 1.4em; /* 모바일에서도 2배 크기 */
        padding: 12px; 
        margin-top: 12px;
    }
    .cashback-info-summary .value {
        font-size: 1.6em; /* 모바일에서도 반으로 줄임 (3.2em → 1.6em) */
    }
    .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 .icon-wrapper, #speedCard .icon-wrapper, #tvBundleCard .icon-wrapper {
        padding: 8px;
        border-radius: 12px;
    }
    
    #telecomCard .house-gif, #speedCard .speed-gif, #tvBundleCard .tv-gif { 
        width: 60px; 
        height: 60px;
        /* 골드 색상 필터 적용 */
        filter: hue-rotate(45deg) saturate(1.5) brightness(1.2) contrast(1.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 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    display: flex !important;
    z-index: 1001 !important; /* 결과창(1000)보다 위에 오도록 설정 */
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(30px) saturate(1.5) brightness(1.1) !important;
    -webkit-backdrop-filter: blur(30px) saturate(1.5) brightness(1.1) !important;
    -moz-backdrop-filter: blur(30px) saturate(1.5) brightness(1.1) !important;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.1) !important;
    height: var(--action-bar-height) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 더 구체적인 선택자로 강제 적용 */
body .sticky-action-bar {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(30px) saturate(1.5) brightness(1.1) !important;
    -webkit-backdrop-filter: blur(30px) saturate(1.5) brightness(1.1) !important;
    -moz-backdrop-filter: blur(30px) saturate(1.5) brightness(1.1) !important;
}

.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;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 호버 효과 */
.action-button:hover {
    transform: translateY(-2px);
}

/* 호버 시 텍스트만 확대 */
.action-button:hover {
    font-size: 1.43em; /* 1.1em * 1.3 = 1.43em */
}

.action-button:hover .fas {
    font-size: 1.56em; /* 1.2em * 1.3 = 1.56em */
}

.action-button .fas {
    font-size: 1.2em;
    transition: all 0.3s ease;
}

/* 전화 아이콘 애니메이션 - 좌우로 흔들리는 전화벨 효과 */
.action-button.call-button i.fas.fa-phone-alt {
    animation: phone-ring 2s ease-in-out infinite !important;
    display: inline-block !important;
    transform-origin: center !important;
}

@keyframes phone-ring {
    0%, 100% { 
        transform: rotate(0deg) scale(1); 
    }
    10% { 
        transform: rotate(-20deg) scale(1.1); 
    }
    20% { 
        transform: rotate(20deg) scale(1.1); 
    }
    30% { 
        transform: rotate(-20deg) scale(1.1); 
    }
    40% { 
        transform: rotate(20deg) scale(1.1); 
    }
    50% { 
        transform: rotate(0deg) scale(1); 
    }
}

/* 카톡 아이콘 애니메이션 - 위아래로 튀는 메시지 효과 */
.action-button.kakao-button i.fas.fa-comment {
    animation: message-bounce 2s ease-in-out infinite !important;
    display: inline-block !important;
    transform-origin: center !important;
}

@keyframes message-bounce {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
    }
    25% { 
        transform: translateY(-8px) scale(1.1); 
    }
    50% { 
        transform: translateY(0px) scale(1); 
    }
    75% { 
        transform: translateY(-4px) scale(1.05); 
    }
}

/* 텍스트 테두리 상자 효과 - 텍스트 주변만 */
.action-button {
    position: relative;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    min-width: calc(100% - 40px);
    min-height: calc(100% - 30px);
    border: none;
    border-radius: 0;
    pointer-events: none;
    z-index: 1;
    background: transparent;
    padding: 4px 8px;
}

.action-button.call-button::before {
    border: none;
}

.action-button.kakao-button::before {
    border: none;
}

/* 텍스트를 상자 위에 표시 */
.action-button span,
.action-button .fas {
    position: relative;
    z-index: 2;
}

/* 호버 시 텍스트 테두리 효과 강화 */
.action-button:hover::before {
    border: none;
    box-shadow: none;
}

.action-button.call-button:hover::before {
    border: none;
}

.action-button.kakao-button:hover::before {
    border: none;
}

/* 호버 시 애니메이션 일시정지 및 강화 효과 */
.action-button:hover i.fas {
    animation-play-state: paused !important;
}

.action-button.call-button:hover i.fas.fa-phone-alt {
    transform: scale(1.3) rotate(0deg) !important;
    filter: none;
    transition: all 0.3s ease !important;
}

.action-button.kakao-button:hover i.fas.fa-comment {
    transform: scale(1.3) translateY(0px) !important;
    filter: none;
    transition: all 0.3s ease !important;
}

.action-button.call-button {
    background: linear-gradient(135deg, #3f3000 100%, var(--background-color-dark) 100%); /* 빨간색에서 검정색으로 */
    color: var(--background-color-light); /* 밝은 텍스트 */
}

.action-button.kakao-button {
    background: linear-gradient(135deg, var(--background-color-dark) 100%, #ffffff56 50%); /* 청록색에서 흰색으로 */
    color: var(--text-color-dark); /* 어두운 텍스트 */
}

/* 클릭 효과 - 더 강한 눌림 효과 */
.action-button:active {
    transform: translateY(1px);
}

/* 모바일 화면 대응 (액션바) */
@media (max-width: 599px) {
    .action-button {
        font-size: 0.95em;
        padding: 12px 5px;
    }
    .action-button .fas {
        font-size: 1.1em;
    }
}
/* ===== END: 하단 고정 액션바 스타일 ===== */





.calculator-1 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 0.05em;

    /* 그라데이션 배경 설정 */
    background: linear-gradient(to right, #b18200, #333, #b18200); /* 파랑 -> 핑크 -> 파랑 */
    
    /* 배경 크기를 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;
  }



@media (max-width: 599px) {
    :root {
    .calculator-1 { font-size: 1.8em; margin-bottom: 30px; }
}
}  

@media (min-width: 600px) and (max-width: 991px) {
    :root { 
    .calculator-1 { font-size: 2.0em; margin-bottom: 40px;}
  }
}
@media (min-width: 992px) {
    :root { 
    .calculator-1 { font-size: 2.3em; margin-bottom: 50px; }
  }
}

