/* AbdiKami Theme - style.css */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1E293B;
    line-height: 1.6;
    background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Utility */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-title { font-size: 36px; font-weight: 800; text-align: center; margin-bottom: 12px; color: #1E293B; }
.section-subtitle { text-align: center; color: #64748B; font-size: 16px; margin-bottom: 48px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 72px;
    gap: 32px;
}
.logo { display: flex; flex-direction: column; flex-shrink: 0; }
.logo-text { font-size: 22px; font-weight: 800; color: #2D6A4F; line-height: 1.2; }
.logo-subtitle { font-size: 10px; color: #64748B; letter-spacing: 0.5px; }
.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 24px; justify-content: center; }
.main-nav a { font-size: 14px; font-weight: 500; color: #1E293B; transition: color 0.2s; }
.main-nav a:hover { color: #2D6A4F; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.search-btn { background: none; border: none; cursor: pointer; color: #64748B; padding: 4px; }
.search-btn:hover { color: #2D6A4F; }
.btn-text { font-size: 14px; font-weight: 500; color: #1E293B; }
.btn-text:hover { color: #2D6A4F; }
.btn-primary {
    background: #2D6A4F;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background 0.2s;
}
.btn-primary:hover { background: #1B4332; }
.btn-outline {
    border: 2px solid #2D6A4F;
    color: #2D6A4F;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s;
    background: transparent;
}
.btn-outline:hover { background: #2D6A4F; color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: #1E293B; }

/* Hero */
.hero {
    background: #F8FAF9;
    padding: 60px 0;
}
.hero-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; gap: 48px; align-items: center; }
.hero-card { flex: 1; min-width: 0; }
.hero-card-img { width: 100%; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); display: block; }
.hero-text { flex: 1; min-width: 0; }
.hero-text h1 { font-size: 32px; font-weight: 800; color: #1B4332; line-height: 1.3; margin-bottom: 16px; }
.hero-desc { font-size: 16px; color: #64748B; margin-bottom: 28px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary { background: #2D6A4F; border-color: #2D6A4F; color: #fff; }
.hero .btn-primary:hover { background: #1B4332; }
.hero .btn-outline { border-color: #2D6A4F; color: #2D6A4F; }
.hero .btn-outline:hover { background: #2D6A4F; color: #fff; }
.hero-label {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #1E293B;
}
.hero-desc { font-size: 17px; color: #64748B; margin-bottom: 32px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #2D6A4F;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Features */
.features { padding: 80px 0; background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
    background: #F0F7F4;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.feature-icon {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: #1E293B; }
.feature-card p { font-size: 14px; color: #64748B; line-height: 1.6; }

/* Posts Grid */
.latest-posts { padding: 80px 0; background: #F0F7F4; }
.posts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.post-card-image-link { display: block; }
.post-card-image { width: 100%; height: 180px; object-fit: cover; }
.post-card-content { padding: 20px; }
.post-card-tag {
    display: inline-block;
    background: #D8F3DC;
    color: #2D6A4F;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}
.post-card-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.post-card-title a { color: #1E293B; }
.post-card-title a:hover { color: #2D6A4F; }
.post-card-excerpt { font-size: 14px; color: #64748B; margin-bottom: 16px; line-height: 1.5; }
.post-card-meta { display: flex; justify-content: space-between; font-size: 12px; color: #64748B; }
.post-card-author { font-weight: 600; color: #2D6A4F; }

/* Stats Bar */
.stats-bar {
    background: linear-gradient(135deg, #2D6A4F 0%, #1B4332 100%);
    padding: 48px 0;
}
.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 32px;
}
.stat { text-align: center; }
.stat-number { display: block; font-size: 36px; font-weight: 800; color: #fff; }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.8); font-weight: 500; }

/* CTA */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: #fff;
}
.cta-section h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; color: #1E293B; }
.cta-section p { font-size: 16px; color: #64748B; margin-bottom: 32px; }

/* Footer */
.site-footer {
    background: #1B4332;
    color: #fff;
    padding: 64px 0 0;
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { font-size: 24px; font-weight: 800; color: #52B788; margin-bottom: 8px; display: block; }
.footer-tagline { font-size: 14px; color: #52B788; font-style: italic; margin-bottom: 12px; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 20px; }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s;
}
.social-icons a:hover { background: #52B788; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: #52B788; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: 13px; color: rgba(255,255,255,0.7); }
.footer-col a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* Post / Page */
.post-full, .page-full { padding-bottom: 64px; }
.post-header, .page-header {
    background: linear-gradient(135deg, #F0F7F4 0%, #D8F3DC 100%);
    padding: 64px 0;
    text-align: center;
}
.post-header-container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.post-tag {
    display: inline-block;
    background: #D8F3DC;
    color: #2D6A4F;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}
.post-title { font-size: 40px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; color: #1E293B; }
.post-meta { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 14px; color: #64748B; flex-wrap: wrap; }
.post-author { display: flex; align-items: center; gap: 8px; }
.author-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.reading-time { color: #64748B; }
.post-image { max-width: 900px; margin: -32px auto 40px; padding: 0 24px; }
.post-image img { border-radius: 12px; width: 100%; }
.post-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    font-size: 17px;
    line-height: 1.8;
    color: #1E293B;
}
.post-content h2 { font-size: 28px; font-weight: 700; margin: 40px 0 16px; }
.post-content h3 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; }
.post-content p { margin-bottom: 20px; }
.post-content img { border-radius: 8px; margin: 24px 0; }
.post-content blockquote {
    border-left: 4px solid #2D6A4F;
    padding: 16px 24px;
    margin: 24px 0;
    background: #F0F7F4;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #64748B;
}
.post-content a { color: #2D6A4F; font-weight: 500; text-decoration: underline; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 20px; }
.post-content li { margin-bottom: 8px; }

/* Tag/Author Pages */
.tag-page, .author-page { padding: 64px 0; background: #F0F7F4; }
.tag-header, .author-header { margin-bottom: 48px; text-align: center; }
.author-avatar-lg { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }
.author-location { font-size: 14px; color: #64748B; }
.pagination { text-align: center; margin-top: 48px; }

/* Responsive */
@media (max-width: 1024px) {
    .features-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .main-nav ul { gap: 16px; }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.active { display: block; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #E2E8F0; padding: 16px 24px; }
    .main-nav.active ul { flex-direction: column; gap: 12px; }
    .mobile-menu-btn { display: block; }
    .header-actions .btn-text, .header-actions .search-btn { display: none; }
    .hero h1 { font-size: 24px; }
    .hero { padding: 32px 0; }
    .hero-container { flex-direction: column; gap: 24px; }
    .features, .latest-posts, .cta-section { padding: 48px 0; }
    .section-title { font-size: 28px; }
    .features-grid, .posts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .stats-container { flex-direction: column; gap: 24px; }
    .post-title { font-size: 28px; }
    .hero-badges { flex-direction: column; align-items: center; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Partners Section */
.partners { padding: 64px 0; background: #f8f9fa; }
.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
    align-items: center;
    margin-top: 40px;
}
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s;
}
.partner-logo:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.partner-logo img { max-width: 100%; height: 40px; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: all 0.2s; }
.partner-logo:hover img { filter: grayscale(0%); opacity: 1; }

@media (max-width: 768px) {
    .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .partners-grid { grid-template-columns: repeat(3, 1fr); }
}
