/*
Theme Name: Hahn-In Blog Theme
Theme URI: https://hahnincrc.org
Author: Hahn-In CRC
Author URI: https://hahnincrc.org
Description: Custom theme based on blog.html
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hahnin-blog
*/

@import url('https://fonts.googleapis.com/css2?family=Song+Myung&family=IBM+Plex+Sans+KR:wght@400;700&family=42dot+Sans:wght@400;700&display=swap');

body {
    font-family: 'IBM Plex Sans KR', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: auto;
    padding: 20px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .container {
        max-width: 1000px;
    }
}

.blog-header {
    text-align: center;
    margin: 20px 0 40px;
}

.blog-header h1 {
    font-size: 32px;
    font-family: 'Song Myung', serif;
    margin-bottom: 10px;
}

.blog-header p {
    font-size: 18px;
    color: #666;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-category {
    display: inline-block;
    padding: 3px 10px;
    background-color: #e0e0e0;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 18px;
    margin: 10px 0;
    font-weight: bold;
}

.blog-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.blog-excerpt {
    margin-bottom: 15px;
    color: #444;
}

.blog-link {
    display: inline-block;
    color: #333;
    font-weight: bold;
    text-decoration: none;
}

.blog-link:hover {
    text-decoration: underline;
}

footer {
    margin-top: 20px;
    padding: 15px;
    background: #333;
    color: white;
    text-align: center;
}


/* Blog Header Styles */
.blog-header {
        text-align: center;
        margin: 40px 0 20px;
    }
    .blog-header h1 {
        font-size: 32px;
        font-family: 'Song Myung', serif;
        margin-bottom: 10px;
    }
    .blog-header p {
        font-size: 18px;
        color: #666;
    }

    .blog-filter {
        margin-bottom: 40px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .filter-button {
        padding: 8px 15px;
        background-color: #f0f0f0;
        border: 1px solid #ddd;
        border-radius: 20px;
        cursor: pointer;
        font-family: 'IBM Plex Sans KR', sans-serif;
        transition: all 0.3s;
        text-decoration: none;
        color: black;
    }
    .filter-button:hover,
    .filter-button.active {
        background-color: #333;
        color: white;
    }

    .search-form {
        margin-top: 20px;
        display: flex;
        justify-content: center;
    }
    .search-field {
        padding: 10px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 4px;
        width: 300px;
    }
    .search-submit {
        padding: 10px 15px;
        font-size: 16px;
        background-color: #333;
        color: white;
        border: none;
        border-radius: 4px;
        margin-left: 10px;
        cursor: pointer;
    }

/* Debug tweak for visibility */
.search-form {
    background: #f9f9f9;
    border: 1px solid #ccc;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    min-height: 60px;
    z-index: 10;
    position: relative;
}

/* Force visibility for search form */
.search-form {
    display: flex !important;
    visibility: visible !important;
    background-color: #fff4cc;
    border: 2px dashed #ff9900;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    z-index: 999;
}

/* === FINAL STYLES === */

/* Search box gray tone */
.search-form {
    background-color: #f5f5f5;
    border: none;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.search-field {
    background-color: #fff;
    border: 1px solid #ccc;
    color: #333;
    padding: 10px;
    border-radius: 4px;
    width: 300px;
    font-size: 16px;
}

.search-submit {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 16px;
    cursor: pointer;
}

/* Page content white center */
.container, .search-container, .category-container, .blog-container {
    background-color: white;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Remove debug border */
.blog-header .search-form {
    border: none;
}
