
/* 헤더 영역 고려한 전체 레이아웃 수정 */
body {
    overflow-x: hidden;
    background-color: #f0f4f9;
    margin-top: 0;
    padding-top: 0;
}

.cases-container {
    padding-top: 80px;
    position: relative;
}

/* 헤더 섹션 - 축소 버전 */
.cases-header {
    background: linear-gradient(135deg, #0b1a3a 0%, #1e3c72 50%, #2a5298 100%);
    padding: 55px 0 45px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 99, 255, 0.15);
    margin-bottom: 30px;
}

/* AI 미래형 패턴 배경 */
.cases-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(circle at 20% 50%, rgba(5, 165, 255, 0.25) 0%, rgba(9, 30, 121, 0) 50%),
        radial-gradient(circle at 80% 20%, rgba(60, 240, 255, 0.15) 0%, rgba(9, 30, 121, 0) 35%);
    z-index: 0;
}

/* AI 로고 - 홀로그램 스타일 */
.ai-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.8rem;
    box-shadow: 
        0 0 0 8px rgba(0, 198, 255, 0.1),
        0 0 20px rgba(0, 198, 255, 0.6),
        0 0 40px rgba(0, 198, 255, 0.2);
    z-index: 10;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% {
        box-shadow: 
            0 0 0 8px rgba(0, 198, 255, 0.1),
            0 0 20px rgba(0, 198, 255, 0.3);
    }
    100% {
        box-shadow: 
            0 0 0 12px rgba(0, 198, 255, 0.2),
            0 0 30px rgba(0, 198, 255, 0.6);
    }
}

/* 헤더 플렉스 레이아웃 */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.header-main {
    flex: 1;
    max-width: 600px;
}

/* 헤더 콘텐츠 */
.cases-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 15px rgba(0, 198, 255, 0.5);
    animation: titleGlow 3s infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 15px rgba(0, 198, 255, 0.3);
    }
    100% {
        text-shadow: 0 0 30px rgba(0, 198, 255, 0.7);
    }
}

.cases-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    line-height: 1.6;
}

/* 검색 컨테이너 수정 */
.search-container {
    position: relative;
    width: 100%;
    max-width: 850px; /* 더 넓은 최대 너비 */
    margin: 25px auto;
    border-radius: 50px;
    background: white;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* 검색 버튼을 왼쪽으로 이동 */
.search-button {
    width: 65px;
    height: 65px;
    background: #3787ff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    order: -1; /* 버튼을 왼쪽으로 이동 */
    flex-shrink: 0;
}

/* 검색 아이콘 */
.search-button i,
.fa-search {
    font-size: 1.6rem;
    color: white;
}

/* 검색 입력창 스타일 */
.search-input {
    flex: 1;
    height: 65px;
    padding: 0 30px;
    border: none;
    font-size: 1.1rem;
    background: white;
    color: #333;
}

/* 모바일 환경 최적화 */
@media (max-width: 768px) {
    .search-container {
        max-width: 90%;
        margin: 15px auto;
    }
    
    .search-button {
        width: 55px;
        height: 55px;
    }
    
    .search-input {
        height: 55px;
        font-size: 0.95rem;
        padding: 0 20px;
    }
    
    .search-button i,
    .fa-search {
        font-size: 1.3rem;
    }
}

/* 초소형 화면 최적화 */
@media (max-width: 480px) {
    .search-container {
        max-width: 95%;
        margin: 10px auto;
    }
    
    .search-button {
        width: 48px;
        height: 48px;
    }
    
    .search-input {
        height: 48px;
        font-size: 0.9rem;
        padding: 0 15px;
    }
    
    .search-button i,
    .fa-search {
        font-size: 1.1rem;
    }
}

/* 포커스 상태 */
.search-input:focus {
    outline: none;
}

/* placeholder 스타일 */
.search-input::placeholder {
    color: #999;
    opacity: 0.7;
}

/* 헤더 타이틀 아래 여백 조정 */
.header-title {
    margin-bottom: 15px;
    text-align: center;
}

/* 인기 사례 TOP 3 */
.top-cases {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 300px;
}

.top-cases-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.top-cases-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #00c6ff, rgba(0, 198, 255, 0));
    border-radius: 3px;
}

.top-cases-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.top-case-item {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.top-case-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 카테고리 섹션 */
.categories-section {
    position: relative;
    margin-bottom: 50px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.categories-wrapper {
    display: flex;
    overflow-x: auto;
    padding: 5px 30px;
    scroll-behavior: smooth;
    gap: 10px;
    margin: 0 auto;
}

/* 카테고리 아이템 디자인 개선 */
.category-item {
    white-space: nowrap;
    padding: 10px 18px;
    background-color: #f5f8fb;
    border-radius: 12px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
    border: 1px solid #eef1f6;
    display: flex;
    align-items: center;
}

.category-item:hover {
    background-color: #e9f0fa;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.category-item.active {
    background: linear-gradient(135deg, #3ABEFF 0%, #00D4BB 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(58, 190, 255, 0.3);
    border: 1px solid rgba(0, 198, 255, 0.3);
    position: relative;
}

.category-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #3ABEFF;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
}

.category-item i {
    margin-right: 6px;
    font-size: 0.9rem;
}

.cases-list-section {
    padding: 20px 0 50px;
    background-color: #f9fafc;
}

.content-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1e3a5f;
    position: relative;
    display: inline-block;
}

.content-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #3ABEFF, #00D4BB);
    border-radius: 2px;
}

/* 사례 그리드 - 3열로 변경 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    margin-top: 30px;
}

/* 사례 카드 */
.case-card {
    background-color: white;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(58, 190, 255, 0.05);
    min-height: 220px;
    max-height: 320px;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.06),
        0 0 0 2px rgba(58, 190, 255, 0.1);
}

/* AI 스포트라이트 효과 */
.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(58, 190, 255, 0.15) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.case-card:hover::before {
    opacity: 1;
}

/* 카테고리 태그 */
.case-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 30px;
    background-color: rgba(58, 190, 255, 0.08);
    color: #3ABEFF;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.case-category::before {
    content: "🤖";
    font-size: 0.9rem;
    margin-right: 6px;
}

/* 카드 제목 */
.case-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #2d3748;
}

.case-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-title a:hover {
    color: #3ABEFF;
}

/* 카드 설명 */
.case-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* 카드 메타 정보 */
.case-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
    margin-top: auto;
    margin-bottom: 10px;
}

.case-date i, .case-views i {
    color: #3ABEFF;
    margin-right: 5px;
}

/* 자세히 보기 버튼 */
.case-read-more {
    display: inline-flex;
    align-items: center;
    color: #3ABEFF;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.case-read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.case-read-more:hover {
    color: #0072ff;
}

.case-read-more:hover i {
    transform: translateX(3px);
}

/* 페이지네이션 강화 스타일 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    gap: 8px;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background-color: white;
    color: #555;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.pagination .page-link:hover {
    background-color: #f0f7ff;
    border-color: #c0d8ff;
    color: #0072ff;
}

.pagination .page-link.active {
    background: linear-gradient(135deg, #3ABEFF 0%, #2476ff 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(58, 190, 255, 0.3);
}

.pagination .prev,
.pagination .next {
    padding: 0 12px;
}

.pagination .first-page,
.pagination .last-page {
    background-color: #f5f8ff;
}

/* 검색 결과 없음 스타일 */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.no-results i {
    font-size: 3rem;
    color: #c0d8ff;
    margin-bottom: 20px;
}

.no-results p {
    color: #555;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.no-results .search-term {
    color: #3ABEFF;
    font-weight: 500;
    font-size: 1.1rem;
}

.no-results .reset-search {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #f0f7ff;
    color: #3ABEFF;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.no-results .reset-search:hover {
    background-color: #e0f0ff;
    box-shadow: 0 4px 10px rgba(58, 190, 255, 0.2);
}

.related-section {
    padding: 30px 0;
    background: #f8f9fa;
    margin-top: 40px;
}

.related-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* 모바일에서 세로 레이아웃으로 변경 */
@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr; /* 세로 배치로 변경 */
        gap: 15px; /* 카드 간격 줄임 */
    }
    
    .related-card {
        padding: 15px;
    }
    
    .related-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .related-section {
        padding: 20px 0;
        margin-top: 30px;
    }
}

/* 카드 내부 요소 스타일 */
.related-category {
    display: inline-block;
    background: #eef2ff;
    color: #3787ff;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.related-case-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.related-case-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.related-case-title a:hover {
    color: #3787ff;
}

.related-meta {
    color: #777;
    font-size: 0.85rem;
}

.related-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 초소형 화면 최적화 */
@media (max-width: 480px) {
    .related-card {
        padding: 12px;
    }
    
    .related-case-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .related-section {
        padding: 15px 0;
        margin-top: 20px;
    }
}

/* 서비스 CTA */
.service-cta {
    text-align: center;
    margin: 40px 0 30px;
}

.service-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: linear-gradient(135deg, #3ABEFF 0%, #0072ff 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 25px rgba(0, 114, 255, 0.3),
        0 0 0 2px rgba(0, 198, 255, 0.1);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.service-button::before {
    content: "🤖";
    margin-right: 10px;
    font-size: 1.2rem;
}

.service-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    transition: all 0.7s ease;
    opacity: 0;
}

.service-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 30px rgba(0, 114, 255, 0.4),
        0 0 0 3px rgba(0, 198, 255, 0.2);
}

.service-button:hover::after {
    animation: shimmer 1.5s infinite;
    opacity: 1;
}

@keyframes shimmer {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

/* 반응형 스타일 */
@media (max-width: 992px) {
    .header-flex {
        flex-direction: column;
        gap: 30px;
    }
    
    .top-cases {
        width: 100%;
    }
    
    .cases-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .cases-container {
        padding-top: 70px;
    }
    
    .cases-header {
        padding: 40px 0 30px;
    }
    
    .cases-title {
        font-size: 2rem;
    }
    
    .categories-section {
        margin-bottom: 40px;
    }
    
    .categories-wrapper {
        padding: 5px 20px;
    }
    
    .cases-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .case-card {
        padding: 18px;
        min-height: 200px;
    }
    
    .case-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .cases-header {
        padding: 30px 0 25px;
    }
    
    .ai-logo {
        top: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .cases-title {
        font-size: 1.8rem;
    }
    
    .case-card {
        padding: 16px;
        min-height: 180px;
    }
    
    .case-title {
        font-size: 1rem;
    }
    
    .case-excerpt {
        -webkit-line-clamp: 2;
    }
    
    .categories-section {
        margin-bottom: 30px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* 카테고리 스크롤 스타일 */
.categories-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories-wrapper::-webkit-scrollbar {
    display: none;
}

/* 카테고리 탐색 화살표 추가 */
.categories-section {
    position: relative;
    margin-bottom: 40px;
}

.category-scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 5;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.category-scroll-indicator:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.category-scroll-left {
    left: 5px;
}

.category-scroll-right {
    right: 5px;
}

.category-scroll-indicator i {
    color: #3ABEFF;
}

/* 모바일 반응형 스타일 수정 */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .search-container {
        margin: 10px 0;
        width: 100%;
        max-width: 100%;
    }
    
    .search-input {
        width: 100%;
        padding: 10px 40px 10px 15px;
        font-size: 0.9rem;
    }
    
    .case-card {
        padding: 16px;
        min-height: 180px;
    }
    
    .case-title {
        font-size: 1rem;
    }
    
    .case-excerpt {
        -webkit-line-clamp: 2;
    }
    
    .categories-section {
        margin-bottom: 50px;
        padding-bottom: 15px;
    }
    
    .categories-section::after {
        content: '';
        display: block;
        position: absolute;
        bottom: 0;
        left: 10%;
        width: 80%;
        height: 1px;
        background: rgba(0, 0, 0, 0.1);
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 25px;
    }
}

/* 인기 검색 키워드 섹션 간격 줄이기 */
.popular-keywords {
    margin-top: 15px;
    margin-bottom: 10px;
}

.popular-keywords h3 {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* 모바일 환경에서 극단적으로 간격 줄이기 */
@media (max-width: 768px) {
    .header-section {
        padding: 20px 0 10px;
    }
    
    .popular-keywords {
        margin-top: 5px;
        margin-bottom: 2px;
    }
    
    .popular-keywords h3 {
        margin-bottom: 4px;
        font-size: 0.85rem;
    }
    
    .keyword-tags {
        gap: 5px;
    }
    
    .keyword-tag {
        padding: 3px 8px;
        font-size: 0.75rem;
        border-radius: 12px;
    }
    
    .categories-section {
        margin-top: 0;
        margin-bottom: 20px;
        padding-bottom: 8px;
    }
    
    .categories-wrapper {
        margin-bottom: 0;
    }
    
    .search-container {
        margin: 10px 0;
    }
    
    .search-input {
        padding: 8px 40px 8px 12px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .search-icon {
        right: 10px;
        top: 6px;
    }
    
    .header-title {
        margin-bottom: 8px;
        font-size: 1.5rem;
    }
    
    .cases-grid {
        margin-top: 12px;
        gap: 15px;
    }
    
    .category-tab {
        padding: 5px 10px;
        font-size: 0.75rem;
        min-width: auto;
    }
}

/* 초소형 화면 최적화 */
@media (max-width: 480px) {
    .header-section {
        padding: 15px 0 5px;
    }
    
    .categories-section {
        margin-bottom: 15px;
        padding-bottom: 5px;
    }
    
    .cases-grid {
        margin-top: 10px;
        gap: 12px;
    }
    
    .header-flex {
        gap: 5px;
    }
    
    .search-container {
        margin-bottom: 5px;
    }
}

/* 화면 상단 여백 제거 */
body {
    margin-top: 0;
    padding-top: 0;
}

.main-content {
    padding-top: 10px;
}

/* 페이지 컨테이너 패딩 최적화 */
.container {
    padding: 0 20px;
}

/* 모바일 환경에서 검색창 최적화 */
@media (max-width: 768px) {
    /* 컨테이너 패딩 줄여서 가용 너비 확보 */
    .container {
        padding: 0 12px;
    }
    
    /* 검색 컨테이너 너비 최대화 */
    .search-container {
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
    }
    
    .search-input {
        width: 100%;
        padding: 10px 40px 10px 15px;
        font-size: 0.9rem;
    }
    
    /* 헤더 플렉스 레이아웃 최적화 */
    .header-flex {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
}

/* 초소형 화면 최적화 */
@media (max-width: 480px) {
    /* 컨테이너 패딩 최소화 */
    .container {
        padding: 0 10px;
    }
    
    /* 검색 입력창 패딩 최적화 */
    .search-input {
        padding: 10px 38px 10px 12px;
    }
    
    /* 헤더 섹션 패딩 최적화 */
    .header-section {
        padding: 15px 0 5px;
    }
    
    /* 메인 타이틀 크기 조정 */
    .header-title {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* 검색창 포커스 상태 개선 */
.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    outline: none;
} 