/* General Body Styles */
body {
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
}

/* Header & Navigation */
header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    margin-bottom: 20px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 28px;
    color: #0056b3;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block;
    margin-left: 25px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
}

nav a:hover {
    color: #0056b3;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border: 1px solid #eee;
    top: 100%;
    left: 0;
    margin-top: 5px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #0056b3;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Main Content Styles */
h2 {
    font-size: 24px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

/* 부업 카테고리 섹션 */
.category-section {
    background-color: #f9fbff;
    padding: 30px;
    border: 1px solid #e3e9f5;
    border-radius: 12px;
    margin-top: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    background-color: #fff;
    border: 1px solid #d9e4ff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(25, 63, 153, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card h3 {
    margin-top: 0;
    color: #1f3a93;
    font-size: 20px;
}

.category-card p {
    color: #4a4a4a;
    font-size: 15px;
    line-height: 1.7;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(31, 58, 147, 0.15);
}

.category-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    color: #1f3a93;
    text-decoration: none;
}

.category-link:hover {
    color: #0d1f5f;
}

/* Product Page Specific Layout */
.product-page-container {
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 220px;
    flex-shrink: 0;
}

.product-content {
    flex-grow: 1;
}

/* Sidebar Filter Styles */
.filter-group {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    padding: 15px;
    background-color: #fff;
}

.filter-group h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.filter-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-group ul li {
    margin-bottom: 10px;
}

.filter-group a, .filter-group label {
    text-decoration: none;
    color: #555;
    display: block;
    cursor: pointer;
}

.filter-group a:hover {
    color: #0056b3;
}

.filter-group input[type="checkbox"] {
    margin-right: 8px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-card img {
    max-width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 5px;
    width: 100%;
}

.product-card h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.product-card .brand {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.product-card .description {
    font-size: 14px;
    color: #666;
}

/* JS Filtering Class */
.hidden {
    display: none;
}

/* 텍스트 형식 제품 목록 스타일 */
.product-list-text {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.product-item-text {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.product-item-text:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #0056b3;
    transform: translateY(-2px);
}


.product-item-text h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

/* 빠른 상담 신청 섹션 */
.quick-consultation {
    margin: 40px 0;
    padding: 30px 40px;
    background: linear-gradient(135deg, #4A90E2 0%, #6B46C1 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.quick-consultation input[type="text"],
.quick-consultation input[type="tel"] {
    flex: 1;
    min-width: 150px;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    backdrop-filter: blur(10px);
}

.quick-consultation input[type="text"]::placeholder,
.quick-consultation input[type="tel"]::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.quick-consultation .privacy-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 14px;
}

.quick-consultation .privacy-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: white;
}

.quick-consultation .privacy-link {
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.quick-consultation .privacy-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.quick-consultation .apply-button {
    padding: 15px 40px;
    background-color: #FFD700;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.quick-consultation .apply-button:hover {
    background-color: #FFC700;
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 20px;
    background-color: #333;
    color: #ccc;
    font-size: 12px;
    text-align: center;
}

footer p {
    margin: 5px 0;
}

/* Article Styles */
article {
    margin-bottom: 30px;
}

article h3 {
    font-size: 20px;
    color: #0056b3;
    margin-bottom: 15px;
}

article ul, article ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

article li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-page-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .product-card img {
        height: 250px;
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }

    .quick-consultation {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-consultation input[type="text"],
    .quick-consultation input[type="tel"] {
        width: 100%;
    }

    .quick-consultation .apply-button {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        margin-top: 0;
    }

    .dropdown-content a {
        padding: 10px 20px;
        border-top: 1px solid #eee;
    }

    .product-list-text {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }

    .product-item-text {
        padding: 15px;
    }

    .product-item-text h4 {
        font-size: 14px;
    }
}
