/* Custom styles for specific components or overrides, complementing Tailwind and global.css */

/* Hero section specific styles */
.hero-gradient-primary {
    background-image: linear-gradient(135deg, var(--brand-primary) 0%, #2c4068 100%);
}
.hero-gradient-xcopy {
    background-image: linear-gradient(135deg, #005A92 0%, var(--brand-accent) 100%);
}
.hero-gradient-elibox {
    background-image: linear-gradient(135deg, #056b5b 0%, #0c8a72 100%); /* Adjusted EliBox gradient */
}

/* 슬라이더 관련 스타일 */
.hero-swiper {
    height: 100%;
}

.hero-swiper .swiper-slide {
    height: 100%;
    width: 100%;
}

.testimonial-swiper {
    padding-bottom: 50px;
}

.testimonial-swiper .swiper-pagination {
    bottom: 0;
}

.testimonial-swiper-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* 모바일 및 태블릿 반응형 개선 */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    .hakyung-h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    
    .hakyung-h2 {
        font-size: 1.75rem !important;
    }
    
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .pricing-card {
        margin-bottom: 1.5rem;
    }
}

/* 아이패드/태블릿 반응형 개선 */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    .grid.md\:grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.feature-card {
    background-color: var(--brand-card-bg);
    border: 1px solid var(--brand-border);
    border-radius: 0.75rem; /* 12px */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    box-shadow: var(--brand-shadow);
}
.feature-card:hover {
    transform: translateY(-6px); /* Adjusted hover effect */
    box-shadow: 0 10px 24px rgba(0,0,0,0.15), 0 3px 8px rgba(0,0,0,0.1);
}


.testimonial-card {
    background-color: var(--brand-card-bg); 
    border: 1px solid var(--brand-border);
    padding: 2rem; /* 32px */
    border-radius: 0.75rem; /* 12px */
    box-shadow: var(--brand-shadow);
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.08);
    border-color: rgba(51, 133, 255, 0.3);
}

.testimonial-card p.italic {
    position: relative;
    z-index: 1;
}

.pricing-card {
    background-color: var(--brand-card-bg);
    border: 1px solid var(--brand-border);
    border-radius: 0.75rem; /* 12px */
    transition: all 0.3s ease-in-out;
    box-shadow: var(--brand-shadow);
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15), 0 8px 12px rgba(0,0,0,0.12);
}
.pricing-card.highlighted { 
    border-width: 2px;
    border-color: var(--brand-accent);
    box-shadow: 0 8px 20px rgba(51, 133, 255, 0.25); 
}


.faq-item details {
    border-bottom: 1px solid var(--brand-border);
    padding-top: 1.25rem; /* 20px */
    padding-bottom: 1.25rem; /* 20px */
}
.faq-item details:first-child {
    border-top: 1px solid var(--brand-border);
}
.faq-item summary {
    cursor: pointer;
    outline: none;
    font-weight: 600; /* SemiBold for better prominence */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: #ffffff; /* 흰색으로 변경 */
    transition: none; /* 호버 시 색상 변경 방지 */
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary .faq-icon {
    transition: transform 0.2s ease-in-out;
}
.faq-item details[open] summary .faq-icon {
    transform: rotate(45deg);
}
.faq-content {
    padding-top: 1rem; /* 16px */
    color: #ffffff; /* 흰색으로 변경 */
    line-height: 1.75;
}


#history-timeline .timeline-item {
    position: relative;
    padding-bottom: 3rem; 
}
#history-timeline::before {
    content: '';
    position: absolute;
    left: calc(1.5rem - 1px); 
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--brand-border);
    display: none; 
}

@media (min-width: 768px) { 
    #history-timeline::before {
        display: block;
        left: calc(50% - 1px); 
    }
    #history-timeline .timeline-item {
        display: flex;
        justify-content: space-between;
        align-items: flex-start; 
    }
    #history-timeline .timeline-item:nth-child(odd) .timeline-content-wrapper { order: 1; padding-left: 2.5rem; padding-right: 0; }
    #history-timeline .timeline-item:nth-child(odd) .timeline-marker-wrapper { order: 0; padding-right: 2.5rem; text-align: right; }
    #history-timeline .timeline-item:nth-child(even) .timeline-content-wrapper { order: 0; padding-right: 2.5rem; padding-left: 0; }
    #history-timeline .timeline-item:nth-child(even) .timeline-marker-wrapper { order: 1; padding-left: 2.5rem; text-align: left; }
    #history-timeline .timeline-marker-wrapper,
    #history-timeline .timeline-content-wrapper { width: 50%; }
}

#history-timeline .timeline-year-marker { 
    display: flex;
    align-items: center;
    margin-bottom: 1rem; 
}
@media (min-width: 768px) { 
    #history-timeline .timeline-year-marker { margin-bottom: 0; justify-content: flex-end; }
    #history-timeline .timeline-item:nth-child(even) .timeline-year-marker { justify-content: flex-start; }
}

#history-timeline .timeline-dot {
    width: 1rem; 
    height: 1rem; 
    background-color: var(--brand-accent);
    border-radius: 9999px; 
    border: 3px solid var(--brand-surface);
    position: absolute;
    left: calc(1.5rem - 0.5rem); 
    top: 0.25rem; 
    z-index: 10;
    box-shadow: 0 0 0 4px var(--brand-accent); /* Slightly more pronounced glow */
}

@media (min-width: 768px) { 
    #history-timeline .timeline-dot {
        left: calc(50% - 0.5rem); 
        top: 0.5rem; 
    }
}

#history-timeline .timeline-year {
    font-size: 1.125rem; /* 18px, slightly smaller */
    font-weight: 600; 
    color: var(--brand-accent);
    background-color: var(--brand-surface-alt);
    padding: 0.375rem 0.875rem; /* 6px 14px */
    border-radius: 0.375rem; /* 6px */
    display: inline-block;
}
@media (max-width: 767px) { 
    #history-timeline .timeline-year-marker .timeline-dot {
        position: static; 
        transform: none;
        margin-right: 0.75rem; 
    }
     #history-timeline .timeline-content-wrapper {
        padding-left: 2.5rem; 
    }
}

#history-timeline .timeline-content {
    background-color: var(--brand-card-bg);
    padding: 1.75rem; /* 28px */
    border-radius: 0.75rem; /* 12px */
    box-shadow: var(--brand-shadow);
    border: 1px solid var(--brand-border); 
    margin-bottom: 1.5rem; 
}
@media (min-width: 768px) {
    #history-timeline .timeline-content {
        margin-bottom: 0; 
    }
}


#form-status.success {
    color: var(--brand-success);
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 0.875rem 1.25rem;
    border-radius: 0.5rem; /* 8px */
}
#form-status.error {
    color: var(--brand-error);
    background-color: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    padding: 0.875rem 1.25rem;
    border-radius: 0.5rem; /* 8px */
}


.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem; /* 12px 24px (default, can be overridden by Tailwind) */
    font-weight: 500; /* Medium (can be overridden) */
    border-radius: 0.5rem; /* 8px */
    text-align: center;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    font-size: 1rem; 
}
.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: var(--brand-accent);
    color: var(--brand-text-on-accent);
    border: 1px solid var(--brand-accent);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--brand-accent-dark);
    border-color: var(--brand-accent-dark);
    color: var(--brand-text-on-accent);
}

.btn-secondary {
    background-color: transparent;
    color: var(--brand-accent);
    border: 1px solid var(--brand-accent);
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--brand-accent);
    color: var(--brand-text-on-accent);
    border-color: var(--brand-accent-dark);
}

.btn-outline-slate { /* For use on light backgrounds */
    background-color: transparent;
    color: var(--brand-text-secondary);
    border: 1px solid var(--brand-border);
}
.btn-outline-slate:hover {
    background-color: var(--brand-surface-alt);
    color: var(--brand-text-primary);
    border-color: #4b5563;
}

a, .link {
    color: var(--brand-accent);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover, a:focus, .link:hover, .link:focus {
    color: var(--brand-accent-dark);
    text-decoration: underline;
}

/* 흰색 텍스트 링크 호버 시 색상 변경 방지 */
.text-white a:hover, .text-white a:focus, 
a.text-white:hover, a.text-white:focus,
.text-white .link:hover, .text-white .link:focus,
.faq-item summary:hover, .faq-item summary:focus {
    color: #FFFFFF;
    text-decoration: none;
}

.text-hakyung-accent, .feature-card .text-hakyung-accent {
    color: var(--brand-accent) !important;
}
.text-hakyung-green, .feature-card .text-green-600 {
    color: var(--brand-success) !important;
}
.feature-card .text-hakyung-accent, .feature-card .text-hakyung-green {
    font-weight: 600;
}

/* 카드 내 링크 hover 대비 강화 */
.feature-card a.inline-flex:hover, .feature-card a.inline-flex:focus {
    color: var(--brand-accent-dark) !important;
    text-decoration: underline;
}

/* 진한 네이비 배경 위 제목 대비 강화 */
.bg-hakyung-primary .hakyung-h2, .bg-hakyung-primary h2, .bg-hakyung-primary .hakyung-h1, .bg-hakyung-primary h1 {
    color: var(--brand-text-on-primary) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.20);
}

/* 가독성 개선을 위한 추가 스타일 */
.testimonial-card {
    background-color: var(--brand-card-bg);
    border: 1px solid var(--brand-border);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.testimonial-card p {
    color: var(--brand-card-text);
}

.testimonial-card i[data-lucide] {
    background-color: rgba(67, 149, 255, 0.2) !important;
    color: var(--brand-accent) !important;
}

.feature-card i[data-lucide="zap"] {
    color: var(--brand-accent) !important;
}

.feature-card i[data-lucide="package-check"] {
    color: var(--brand-success) !important;
}

/* 히어로 섹션 가독성 향상 */
.hero-section p {
    color: var(--brand-text-on-primary);
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* 일반 텍스트 가독성 향상 */
p.text-brand-secondary, .text-brand-secondary {
    color: var(--brand-text-secondary) !important;
}

/* 일관성 있는 버튼 스타일 - 디자인 시스템 */
.btn-primary-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-primary-hero:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-primary-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-accent);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--brand-accent);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    text-decoration: none;
}

.btn-primary-card:hover {
    background: var(--brand-accent-dark);
    border-color: var(--brand-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    color: white;
}

.btn-secondary-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #059669;
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid #059669;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
    text-decoration: none;
}

.btn-secondary-card:hover {
    background: #047857;
    border-color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
    color: white;
}

/* 텍스트 그라디언트 지원 */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
