/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #ffffff;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo {
    margin: 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #8B4513;
}

.subtitle {
    font-size: 0.85rem;
    color: #A0522D;
    margin: 0;
    font-weight: 400;
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #8B4513;
    border-bottom-color: #8B4513;
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    margin-bottom: 4rem;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -0.025em;
}

.hero p {
    font-size: 1.25rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

/* Posts Section */
.posts {
    margin-bottom: 4rem;
}

.posts h3 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a202c;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.post-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #718096;
}

.post-category {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-category.tech {
    background: #f7f3f0;
    color: #8B4513;
}

.post-category.productivity {
    background: #f0f8f0;
    color: #6B8E23;
}

.post-category.life {
    background: #fdf6e3;
    color: #CD853F;
}

.post-category.premium {
    background: #9c27b0;
    color: white;
}

.post-category.origin {
    background: #ff8f00;
    color: white;
}

.post-category.industry {
    background: #607d8b;
    color: white;
}

.post-card h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.post-card h4 a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card h4 a:hover {
    color: #8B4513;
}

.post-card p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.read-more {
    color: #8B4513;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #A0522D;
}

/* Page Content */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.page-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a202c;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.025em;
}

.page-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: #2d3748;
    font-weight: 600;
}

.page-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #4a5568;
    font-size: 1rem;
}

/* About Page Styles */
.about-intro {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    border-left: 4px solid #3498db;
}

.about-section {
    margin-bottom: 3rem;
}

.about-list {
    list-style: none;
    padding-left: 0;
}

.about-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* Contact Page Styles */
.contact-intro {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    border-left: 4px solid #3498db;
}

.contact-section {
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #3498db;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #3498db;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #3498db;
    color: white;
}

.contact-list {
    list-style: none;
    padding-left: 0;
}

.contact-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.contact-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Post Content */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e1e5e9;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.3;
}

.post-excerpt {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    line-height: 1.6;
}

.post-body {
    margin-bottom: 3rem;
}

.post-body h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem 0;
    color: #2c3e50;
}

.post-body h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: #34495e;
}

.post-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.post-body a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.post-body a:hover {
    border-bottom-color: #3498db;
}

.post-body strong {
    color: #2c3e50;
}

/* Post Navigation */
.post-navigation {
    padding: 2rem 0;
    border-top: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.post-navigation a {
    display: inline-block;
    padding: 15px 25px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #8B4513;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-navigation a:hover {
    background: #8B4513;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.post-navigation .prev-post {
    text-align: left;
}

.post-navigation .next-post {
    text-align: right;
}



.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    color: #2980b9;
}

.nav-previous:not(a),
.nav-next:not(a) {
    color: #ccc;
    cursor: default;
}

@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-navigation a {
        width: 100%;
        text-align: center;
        min-width: auto;
    }
}

/* Footer */
.footer {
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    padding: 3rem 0;
    margin-top: 4rem;
}

/* Summary Box Styles */
.summary-box {
    background-color: #f8f9fa;
    border-left: 4px solid #8B4513;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.summary-box h2 {
    color: #8B4513;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.summary-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.summary-box li {
    margin-bottom: 0.5rem;
}

/* Table Container */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

thead {
    background-color: #8B4513;
    color: white;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

th {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Navigation Menu Styles */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-list a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
    color: #8B4513;
    background-color: #f7fafc;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-box input {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 200px;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #8B4513;
}

.search-box button {
    padding: 0.5rem 1rem;
    background-color: #8B4513;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #A0522D;
}

/* Posts Page Styles */
.page-header {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #1a202c;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

.filter-section {
    margin-bottom: 3rem;
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #8B4513;
    color: white;
    border-color: #8B4513;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #718096;
}

.no-results p {
    font-size: 1.1rem;
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-list {
        gap: 1rem;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

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

.footer p {
    color: #718096;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #8B4513;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 20px;
    }
    
    .nav-list {
        gap: 1rem;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .posts h3 {
        font-size: 2rem;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .post-card {
        padding: 1.5rem;
    }
    
    .page-content {
        padding: 1.5rem;
    }
    
    .page-content h2 {
        font-size: 2rem;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
        gap: 1.5rem;
    }
}
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-excerpt {
        font-size: 1.1rem;
    }
    
    .page-content h2 {
        font-size: 2rem;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .post-card {
        padding: 1rem;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
    
    .post-body h2 {
        font-size: 1.5rem;
    }
    
    .post-body h3 {
        font-size: 1.3rem;
    }
}

/* Privacy/Terms Page Styles */
.privacy-intro,
.terms-intro {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    border-left: 4px solid #3498db;
}

.privacy-section,
.terms-section {
    margin-bottom: 3rem;
}

.privacy-section h3,
.terms-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.privacy-section ul,
.terms-section ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.privacy-section li,
.terms-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
a:focus,
button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .post-navigation {
        display: none;
    }
    
    .main {
        margin: 0;
        padding: 0;
    }
    
    .post-content,
    .page-content {
        max-width: none;
        padding: 0;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* Coffee Grinder Post Specific Styles */
.comparison-table {
    margin: 20px 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #8B4513;
    color: white;
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background: #f9f9f9;
}

/* Grind guide styling */
.grind-guide {
    background: #f5f5f5;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.grind-guide h4 {
    color: #8B4513;
    margin-top: 15px;
    margin-bottom: 8px;
}

.grind-guide h4:first-child {
    margin-top: 0;
}

/* Maintenance guide styling */
.maintenance-guide {
    background: #f0f8ff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

.maintenance-guide h4 {
    color: #4a90e2;
    margin-top: 15px;
    margin-bottom: 10px;
}

.maintenance-guide h4:first-child {
    margin-top: 0;
}

/* Buying guide styling */
.buying-guide {
    background: #fff9e6;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid #f39c12;
}

.buying-guide h4 {
    color: #f39c12;
    margin-top: 15px;
    margin-bottom: 10px;
}

.buying-guide h4:first-child {
    margin-top: 0;
}

/* Recommendations styling */
.recommendations {
    background: #f0f8f0;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.recommendations h4 {
    color: #27ae60;
    margin-top: 15px;
    margin-bottom: 8px;
}

.recommendations h4:first-child {
    margin-top: 0;
}

.recommendations p {
    margin-bottom: 8px;
}

/* Arabica beans post specific styles */
.research-box {
    background: #e8f4fd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.research-box h4 {
    color: #2196F3;
    margin-top: 0;
    margin-bottom: 12px;
}

.variety-guide {
    background: #f8f0ff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid #9c27b0;
}

.variety-guide h4 {
    color: #9c27b0;
    margin-top: 15px;
    margin-bottom: 8px;
}

.variety-guide h4:first-child {
    margin-top: 0;
}

.flavor-analysis {
    background: #fff3e0;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.flavor-analysis h4 {
    color: #ff9800;
    margin-top: 15px;
    margin-bottom: 10px;
}

.flavor-analysis h4:first-child {
    margin-top: 0;
}

.challenge-box {
    background: #ffebee;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid #f44336;
}

.challenge-box h4 {
    color: #f44336;
    margin-top: 0;
    margin-bottom: 12px;
}

.solution-box {
    background: #e8f5e8;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.solution-box h4 {
    color: #4caf50;
    margin-top: 0;
    margin-bottom: 12px;
}

.brewing-tips {
    background: #f3e5f5;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid #673ab7;
}

.brewing-tips h4 {
    color: #673ab7;
    margin-top: 15px;
    margin-bottom: 10px;
}

.brewing-tips h4:first-child {
    margin-top: 0;
}

/* More posts section styles */
.more-posts-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.more-posts-section h3 {
    color: #8B4513;
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.post-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.post-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fafafa;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-left: 4px solid #8B4513;
}

.post-link:hover {
    background: #f5f5f5;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-link .post-category {
    background: #8B4513;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 15px;
    min-width: 80px;
    text-align: center;
}

.post-link .post-title {
    flex: 1;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.post-link .post-date {
    color: #666;
    font-size: 0.9rem;
    margin-left: 15px;
}

/* 새로운 동적 "더 많은 커피 이야기" 섹션 스타일 */
.more-coffee-stories {
    margin: 40px 0;
    padding: 30px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.coffee-stories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #8B4513;
}

.coffee-stories-header h3 {
    color: #8B4513;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    flex: 1;
}

.refresh-stories {
    background: #8B4513;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-stories:hover {
    background: #6d3410;
    transform: scale(1.05);
}

.refresh-stories:active {
    transform: scale(0.95);
}

.coffee-stories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: opacity 0.3s ease;
}

.coffee-story-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.coffee-story-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.coffee-story-item:last-child {
    margin-bottom: 0;
}

.coffee-story-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    gap: 12px;
}

.coffee-story-link:hover {
    background: #f8f4e6;
    color: #8B4513;
}

.story-index {
    font-weight: 700;
    color: #8B4513;
    font-size: 1.1rem;
    min-width: 25px;
    text-align: center;
}

.story-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: inherit;
    transition: color 0.3s ease;
}

.story-category {
    background: #8B4513;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 70px;
    text-align: center;
    transition: all 0.3s ease;
}

.coffee-story-link:hover .story-category {
    background: #6d3410;
    transform: scale(1.05);
}

.coffee-stories-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    text-align: center;
}

.view-all-posts-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #8B4513;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(139, 69, 19, 0.3);
}

.view-all-posts-btn:hover {
    background: #6d3410;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
}

.view-all-posts-btn:active {
    transform: translateY(0);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .more-coffee-stories {
        margin: 30px 0;
        padding: 20px;
    }
    
    .coffee-stories-header h3 {
        font-size: 1.4rem;
    }
    
    .coffee-story-link {
        padding: 12px 15px;
        gap: 8px;
    }
    
    .story-title {
        font-size: 1rem;
    }
    
    .story-category {
        font-size: 0.8rem;
        padding: 3px 8px;
        min-width: 60px;
    }
    
    .refresh-stories {
        font-size: 1rem;
        min-width: 35px;
        height: 35px;
    }
}

/* 기존 스타일 유지 (하위 호환성) */
.simple-post-list {
    margin-bottom: 30px;
}

.simple-post-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simple-post-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.simple-post-list li:last-child {
    border-bottom: none;
}

.simple-post-list a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.simple-post-list a:hover {
    color: #8B4513;
    background: #f8f4e6;
    transform: translateX(8px);
}

.view-all-posts {
    text-align: center;
}

.btn-view-all {
    display: inline-block;
    padding: 12px 30px;
    background: #8B4513;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: #6B3410;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

@media (max-width: 768px) {
    .post-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 15px;
    }
    
    .post-link .post-category {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .post-link .post-date {
        margin-left: 0;
        font-size: 0.8rem;
    }
}

/* Specialty Coffee Post Specific Styles */
.history-box {
    background: linear-gradient(135deg, #f8f4e6 0%, #f0e6d2 100%);
    border-left: 4px solid #8B4513;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.q-grader-info {
    background: linear-gradient(135deg, #e6f3ff 0%, #d2e9ff 100%);
    border-left: 4px solid #1e88e5;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.grade-insight {
    background: #f0f8ff;
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.microlot-info {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-left: 4px solid #ffa726;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.cultivation-conditions {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c8 100%);
    border-left: 4px solid #4caf50;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.cultivation-note {
    background: rgba(76, 175, 80, 0.1);
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    font-style: italic;
}

.harvest-methods {
    margin: 25px 0;
}

.method-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.method-box {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.method-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.method-box h5 {
    color: #8B4513;
    margin-bottom: 15px;
    border-bottom: 2px solid #8B4513;
    padding-bottom: 5px;
}

.processing-methods {
    margin: 25px 0;
}

.processing-type {
    background: #fafafa;
    border-left: 3px solid #8B4513;
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
}

.processing-type h5 {
    color: #8B4513;
    margin-bottom: 10px;
}

.specialty-grade-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.specialty-grade-table th,
.specialty-grade-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.specialty-grade-table th {
    background: #8B4513;
    color: white;
    font-weight: 600;
}

.specialty-grade-table tr:nth-child(even) {
    background: #f9f9f9;
}

.specialty-grade-table tr:hover {
    background: #f0f0f0;
}

@media (max-width: 768px) {
    .method-comparison {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .method-box {
        padding: 15px;
    }
    
    .specialty-grade-table {
        font-size: 0.8rem;
    }
    
    .specialty-grade-table th,
    .specialty-grade-table td {
        padding: 8px;
    }
}

/* Ethiopian Yirgacheffe Post Specific Styles */
.origin-info {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
    border-left: 4px solid #ff8f00;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.origin-info h3 {
    color: #e65100;
    margin-bottom: 15px;
}

.origin-info ul {
    list-style: none;
    padding: 0;
}

.origin-info li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.origin-info li:before {
    content: "☕";
    position: absolute;
    left: 0;
    color: #ff8f00;
}

.processing-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.grade-system {
    background: #f3e5f5;
    border-left: 4px solid #9c27b0;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.grade-detailed {
    margin: 30px 0;
}

.grade-box {
    padding: 25px;
    margin: 20px 0;
    border-radius: 10px;
    border-left: 5px solid;
}

.grade-box.g1 {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c8 100%);
    border-left-color: #2e7d32;
}

.grade-box.g2 {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left-color: #1976d2;
}

.grade-box.g3 {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-left-color: #f57c00;
}

.grade-box.g4 {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    border-left-color: #c2185b;
}

.grade-specs {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.grade-specs h5 {
    color: #333;
    margin-bottom: 10px;
}

.grade-specs ul {
    list-style: none;
    padding: 0;
}

.grade-specs li {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.grade-specs li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #8B4513;
    font-weight: bold;
}

.example-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #ddd;
}

.example-box h5 {
    color: #8B4513;
    margin-bottom: 10px;
}

.grade-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.grade-comparison-table th {
    background: #8B4513;
    color: white;
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
}

.grade-comparison-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
}

.grade-comparison-table tr:nth-child(even) {
    background: #f9f9f9;
}

.grade-comparison-table tr:hover {
    background: #f0f0f0;
}

.selection-guide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.selection-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #8B4513;
}

.selection-item h3 {
    color: #8B4513;
    margin-bottom: 15px;
}

.purchase-tips {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c8 100%);
    border-left: 4px solid #4caf50;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.purchase-tips h3 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.purchase-tips ul {
    list-style: none;
    padding: 0;
}

.purchase-tips li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.purchase-tips li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

.brewing-guide {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
}

.brewing-guide h3 {
    color: #8B4513;
    margin-bottom: 20px;
}

.brewing-method {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #8B4513;
}

.brewing-method h4 {
    color: #8B4513;
    margin-bottom: 15px;
}

.brewing-method p {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .processing-comparison {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .selection-guide {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .grade-comparison-table {
        font-size: 0.8rem;
    }
    
    .grade-comparison-table th,
    .grade-comparison-table td {
        padding: 8px 6px;
    }
    
    .grade-box {
        padding: 20px;
    }
}

/* Vietnam Coffee Industry Post Specific Styles */
.history-timeline {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 4px solid #607d8b;
}

.history-timeline h3 {
    color: #607d8b;
    margin-bottom: 20px;
    text-align: center;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timeline-year {
    background: #607d8b;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    min-width: 100px;
    text-align: center;
    margin-right: 20px;
}

.timeline-content {
    flex: 1;
    color: #333;
}

.statistics-box {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c8 100%);
    border-left: 4px solid #4caf50;
    padding: 25px;
    margin: 25px 0;
    border-radius: 10px;
}

.statistics-box h3 {
    color: #2e7d32;
    margin-bottom: 20px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.export-breakdown {
    background: #f3e5f5;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #9c27b0;
}

.export-breakdown h4 {
    color: #9c27b0;
    margin-bottom: 15px;
}

.export-chart {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.export-item {
    margin: 15px 0;
}

.export-bar {
    height: 30px;
    border-radius: 15px;
    margin-bottom: 5px;
    position: relative;
}

.export-bar.green {
    background: #4caf50;
}

.export-bar.orange {
    background: #ff9800;
}

.export-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.export-type {
    color: #333;
}

.export-percent {
    font-weight: bold;
    color: #607d8b;
}

.region-info {
    background: #fff8e1;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 4px solid #ff9800;
}

.region-info h3 {
    color: #e65100;
    margin-bottom: 20px;
    text-align: center;
}

.region-advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.advantage-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.advantage-item h4 {
    color: #ff9800;
    margin-bottom: 10px;
}

.economic-impact {
    background: #e3f2fd;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 4px solid #2196f3;
}

.economic-impact h3 {
    color: #1976d2;
    margin-bottom: 20px;
    text-align: center;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.impact-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.impact-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.impact-content h4 {
    color: #1976d2;
    margin-bottom: 5px;
}

.impact-content p {
    color: #666;
    margin: 0;
}

.market-trends {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.trend-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #8B4513;
}

.trend-item h3 {
    color: #8B4513;
    margin-bottom: 15px;
}

.challenges-opportunities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.challenges-section {
    background: #ffebee;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #f44336;
}

.challenges-section h3 {
    color: #d32f2f;
    margin-bottom: 20px;
    text-align: center;
}

.opportunities-section {
    background: #e8f5e8;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #4caf50;
}

.opportunities-section h3 {
    color: #2e7d32;
    margin-bottom: 20px;
    text-align: center;
}

.challenge-item,
.opportunity-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.challenge-item h4 {
    color: #d32f2f;
    margin-bottom: 10px;
}

.opportunity-item h4 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.future-outlook {
    background: #f3e5f5;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 4px solid #9c27b0;
}

.outlook-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.outlook-item h4 {
    color: #9c27b0;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-year {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .challenges-opportunities {
        grid-template-columns: 1fr;
    }
    
    .region-advantages {
        grid-template-columns: 1fr;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
    }
    
    .market-trends {
        grid-template-columns: 1fr;
    }
}
