:root {
    --primary-color: #1e293b;
    --primary-hover: #0f172a;
    --accent-blue: #2563eb;
    --star-color: #f59e0b;
    --dark-text: #1e293b;
    --light-text: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Segoe UI", Roboto, sans-serif; color: var(--dark-text); background-color: var(--bg-light); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
.top-announcement { background: #0f172a; color: #cbd5e1; font-size: 0.82rem; padding: 7px 0; }
.main-header { padding: 0.95rem 0; }
.brand-logo { font-size: 1.35rem; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 6px; }
.main-nav ul { display: flex; gap: 1.5rem; align-items: center; font-size: 0.95rem; font-weight: 600; }
.main-nav a:hover { color: var(--accent-blue); }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.65rem 1.25rem; border-radius: 6px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; border: none; }
.btn-primary { background: #1e293b; color: #fff; }
.btn-primary:hover { background: #0f172a; }
.btn-blue { background: var(--accent-blue); color: #fff; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; border-radius: 5px; }

/* Hero */
.hero-section { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); color: #fff; padding: 3.2rem 0; text-align: center; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.12); padding: 4px 14px; border-radius: 20px; font-size: 0.85rem; margin-bottom: 0.8rem; font-weight: 600; }
.hero-title { font-size: 2.1rem; font-weight: 800; line-height: 1.35; margin-bottom: 0.8rem; }
.hero-subtitle { font-size: 1.02rem; color: #94a3b8; max-width: 720px; margin: 0 auto; }

/* Vertical Ranking Cards (Matched to user reference image) */
.rankings-section { padding: 3rem 0; }
.section-top-label { font-size: 0.8rem; font-weight: 700; color: #94a3b8; letter-spacing: 0.05em; text-align: center; margin-bottom: 4px; }
.section-main-heading { font-size: 1.9rem; font-weight: 800; color: #0f172a; text-align: center; margin-bottom: 2.5rem; }
.section-main-heading span { color: var(--accent-blue); }

.rank-card-list { display: flex; flex-direction: column; gap: 1rem; }
.rank-card-row { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.rank-card-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.rank-left-group { display: flex; align-items: center; gap: 1.25rem; flex: 1; }
.rank-badge-box { background: #1e293b; color: #fff; width: 68px; height: 68px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.rank-badge-num { font-size: 1.4rem; font-weight: 900; line-height: 1; }
.rank-badge-txt { font-size: 0.65rem; font-weight: 700; color: #94a3b8; margin-top: 2px; }

.rank-logo-box { width: 140px; height: 60px; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fafafa; flex-shrink: 0; }
.rank-logo-box img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.rank-info-box { display: flex; flex-direction: column; justify-content: center; }
.rank-title { font-size: 1.2rem; font-weight: 800; color: #0f172a; }
.rank-feature-txt { font-size: 0.88rem; color: #64748b; margin-top: 3px; line-height: 1.4; }
.rank-tags-wrap { display: flex; gap: 5px; margin-top: 6px; }
.rank-tag-item { background: #f1f5f9; color: #64748b; font-size: 0.75rem; padding: 2px 7px; border-radius: 4px; font-weight: 600; border: 1px solid #e2e8f0; }

.rank-right-group { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; flex-shrink: 0; min-width: 140px; }
.rank-benefit-txt { font-size: 1.05rem; font-weight: 800; color: var(--accent-blue); }
.rank-score-txt { font-size: 0.8rem; color: #94a3b8; font-weight: 600; }
.rank-visit-btn { display: inline-flex; align-items: center; justify-content: center; background: #1e293b; color: #fff; font-size: 0.85rem; font-weight: 700; padding: 0.45rem 1.25rem; border-radius: 20px; transition: background 0.2s; }
.rank-visit-btn:hover { background: #0f172a; }

/* SEO Rich Section */
.seo-guide-box { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 2.2rem; margin: 3rem 0; }
.seo-guide-box h2 { font-size: 1.45rem; font-weight: 800; color: #0f172a; margin-bottom: 0.8rem; border-left: 4px solid var(--accent-blue); padding-left: 10px; }
.seo-guide-box p { font-size: 0.96rem; line-height: 1.8; color: #334155; margin-bottom: 1rem; }
.seo-guide-box ul { margin: 0 0 1rem 1.5rem; list-style: disc; color: #334155; }
.seo-guide-box li { margin-bottom: 0.4rem; }

/* Posts Grid */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.post-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-sm); }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); transition: all 0.2s; }
.card-category { font-size: 0.78rem; font-weight: 700; color: var(--accent-blue); text-transform: uppercase; margin-bottom: 0.5rem; }
.card-title { font-size: 1.12rem; font-weight: 700; line-height: 1.45; margin-bottom: 0.75rem; color: #0f172a; }
.card-excerpt { font-size: 0.88rem; color: var(--light-text); line-height: 1.55; margin-bottom: 1rem; flex-grow: 1; }
.card-meta { font-size: 0.8rem; color: #94a3b8; display: flex; justify-content: space-between; border-top: 1px solid #f1f5f9; padding-top: 0.75rem; }

/* Single Post */
.post-layout { max-width: 840px; margin: 2.5rem auto; background: #fff; padding: 2.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border-color); }
.post-header { border-bottom: 1px solid var(--border-color); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.post-header h1 { font-size: 1.95rem; font-weight: 800; line-height: 1.35; color: #0f172a; margin: 0.5rem 0 1rem; }
.post-content { font-size: 1.02rem; line-height: 1.85; color: #334155; }
.post-content h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 0.8rem; color: #0f172a; border-left: 4px solid var(--accent-blue); padding-left: 10px; }
.post-content p { margin-bottom: 1.25rem; }
.cta-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-md); padding: 1.5rem; margin: 2rem 0; text-align: center; }

/* Footer */
.site-footer { background: #0f172a; color: #94a3b8; padding: 3.5rem 0 1.5rem; font-size: 0.9rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-logo { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.footer-notice-box { background: #1e293b; padding: 0.75rem; border-radius: 6px; margin-top: 1rem; color: #cbd5e1; font-size: 0.8rem; border-left: 3px solid var(--accent-blue); }
.footer-col h4 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.5rem; font-size: 0.8rem; text-align: center; color: #64748b; }

/* Admin */
.admin-container { display: flex; min-height: 100vh; font-size: 0.95rem; }
.admin-sidebar { width: 240px; background: #0f172a; color: #cbd5e1; padding: 1.5rem 1rem; flex-shrink: 0; }
.admin-sidebar h2 { color: #fff; font-size: 1.15rem; margin-bottom: 1.5rem; padding-left: 0.5rem; }
.admin-nav a { display: block; padding: 0.6rem 0.8rem; border-radius: 6px; color: #94a3b8; font-weight: 600; margin-bottom: 0.3rem; }
.admin-nav a:hover, .admin-nav a.active { background: #1e293b; color: #fff; }
.admin-content { flex-grow: 1; background: #f8fafc; padding: 2rem 2.5rem; overflow-y: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.admin-card { background: #fff; padding: 1.5rem; border-radius: var(--radius-md); border: 1px solid var(--border-color); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.35rem; color: #334155; }
.form-control { width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--border-color); border-radius: 6px; font-size: 0.92rem; }
textarea.form-control { min-height: 90px; resize: vertical; }

@media (max-width: 900px) {
    .rank-card-row { flex-direction: column; align-items: flex-start; }
    .rank-left-group { width: 100%; }
    .rank-right-group { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid #f1f5f9; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; border-bottom: 1px solid var(--border-color); padding: 1rem 1.25rem; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .mobile-toggle { display: block; }
}
@media (max-width: 600px) {
    .rank-left-group { flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.6rem; }
    .admin-container { flex-direction: column; }
    .admin-sidebar { width: 100%; }
}