@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #059669;         /* Vibrant Emerald Green */
    --primary-dark: #047857;    /* Deep Forest Emerald */
    --secondary: #0d9488;       /* Fresh Botanical Teal */
    --accent: #65a30d;          /* Sprout Lime Accent */
    --gradient: linear-gradient(135deg, #059669 0%, #0d9488 55%, #16a34a 100%);
    --gradient-soft: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(13, 148, 136, 0.12) 100%);
    --dark: #06281e;
    --text: #1e293b;
    --muted: #64748b;
    --light: #f3faf7;
    --mint-tint: #ecfdf5;
    --border: #d1fae5;
    --white: #ffffff;
    --shadow: 0 12px 30px -6px rgba(5, 150, 105, 0.14);
    --shadow-hover: 0 18px 36px -8px rgba(5, 150, 105, 0.24);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.65;
    overflow-x: hidden;
}
h1, h2, h3, h4, .brand-logo { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }
a { text-decoration: none; color: inherit; }
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.08);
    border-bottom: 1px solid #e2f5ec;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.brand-logo {
    font-size: 25px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.brand-logo i { -webkit-text-fill-color: #059669; }
.nav-links { display: flex; gap: 22px; align-items: center; font-weight: 600; font-size: 15px; }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.btn-primary {
    background: var(--gradient);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 14px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(5, 150, 105, 0.32);
}

/* Hero Banner */
.hero {
    background: var(--gradient);
    color: var(--white);
    padding: 46px 0 52px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -120px;
    right: -60px;
}
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    backdrop-filter: blur(6px);
}
.hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.hero p { font-size: 16px; opacity: 0.94; max-width: 680px; margin: 0 auto 28px; }

.search-box {
    background: var(--white);
    padding: 12px;
    border-radius: 16px;
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr auto;
    gap: 10px;
    box-shadow: 0 20px 40px rgba(6, 40, 30, 0.22);
}
.search-box select, .search-box input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1fae5;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    background: #f8fafc;
}
.search-box select:focus, .search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

/* Sections & Cards */
.section { padding: 48px 0; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-header h2 { font-size: 27px; font-weight: 800; color: var(--dark); }

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}
.cat-card {
    background: var(--white);
    border: 1px solid #d1fae5;
    border-radius: 16px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.05);
}
.cat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}
.cat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--gradient-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.cat-title { font-size: 16px; font-weight: 700; color: var(--dark); }
.cat-desc { font-size: 13px; color: var(--muted); line-height: 1.45; }
.cat-count { margin-top: auto; font-size: 12.5px; font-weight: 700; color: var(--primary); }

/* Blog Post Grid & Cards */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 26px;
}
.post-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e2f5ec;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.post-img-wrap { position: relative; height: 215px; overflow: hidden; background: #d1fae5; }
.post-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.post-card:hover .post-img-wrap img { transform: scale(1.04); }
.badge-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--gradient);
    color: #fff;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge-space {
    position: absolute;
    bottom: 12px;
    left: 14px;
    background: rgba(6, 40, 30, 0.84);
    color: #ecfdf5;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}
.post-body { padding: 22px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.post-meta-top { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.post-title { font-size: 19px; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.35; }
.post-card:hover .post-title { color: var(--primary); }
.post-excerpt { font-size: 14px; color: var(--muted); margin-bottom: 16px; line-height: 1.55; }
.post-footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #ecfdf5;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

/* =========================================================
   SINGLE POST PAGE WITH RICH SIDEBAR
   ========================================================= */
.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.15fr) minmax(300px, 1fr);
    gap: 30px;
    margin-top: 28px;
    align-items: start;
}
.article-card {
    background: var(--white);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid #e2f5ec;
    box-shadow: var(--shadow);
    margin-bottom: 26px;
}
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--primary); }
.article-hero-img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 16px;
    margin: 18px 0 22px;
}
.grow-facts-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    background: var(--mint-tint);
    border: 1px solid #a7f3d0;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 24px;
}
.grow-fact-item small { display: block; font-size: 11.5px; color: var(--primary-dark); font-weight: 600; text-transform: uppercase; }
.grow-fact-item strong { font-size: 14.5px; color: var(--dark); }

.article-content { font-size: 16.5px; color: #1f2937; line-height: 1.8; }
.article-content h2 { font-size: 23px; color: var(--dark); margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 2px solid #d1fae5; }
.article-content h3 { font-size: 19px; color: var(--primary-dark); margin: 22px 0 10px; }
.article-content p { margin-bottom: 16px; }
.article-content .article-list { padding-left: 22px; margin-bottom: 18px; }
.article-content .article-list li { margin-bottom: 8px; }

.tag-pill {
    display: inline-block;
    background: var(--mint-tint);
    color: var(--primary-dark);
    border: 1px solid #a7f3d0;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    margin: 4px 4px 4px 0;
    transition: 0.2s;
}
.tag-pill:hover { background: var(--primary); color: #fff; }

/* Post Sidebar Widgets */
.post-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 22px; }
.sidebar-widget {
    background: var(--white);
    padding: 22px;
    border-radius: 18px;
    border: 1px solid #e2f5ec;
    box-shadow: var(--shadow);
}
.sidebar-widget h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-widget h3 i { color: var(--primary); }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.toc-list a {
    font-size: 13.5px;
    color: #334155;
    padding: 6px 10px;
    border-radius: 8px;
    display: block;
    border-left: 3px solid #a7f3d0;
    transition: 0.2s;
}
.toc-list a:hover { background: var(--mint-tint); color: var(--primary-dark); border-left-color: var(--primary); }

.mini-post-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.mini-post-item:last-child { border-bottom: none; }
.mini-post-item img { width: 68px; height: 54px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.mini-post-item h4 { font-size: 13.5px; font-weight: 600; color: var(--dark); line-height: 1.35; margin-bottom: 3px; }
.mini-post-item:hover h4 { color: var(--primary); }

.sidebar-cat-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sidebar-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    transition: 0.2s;
}
.sidebar-cat-list a:hover { background: var(--mint-tint); color: var(--primary-dark); }
.sidebar-cat-badge {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
}

/* =========================================================
   STICKY SHARE BUTTON (REPLACES FLOATING WHATSAPP)
   ========================================================= */
.sticky-share-wrapper {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.sticky-share-toggle {
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.38);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
}
.sticky-share-toggle:hover { transform: scale(1.04); }
.sticky-share-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    padding: 10px;
    border-radius: 16px;
    border: 1px solid #d1fae5;
    box-shadow: 0 14px 32px rgba(6, 40, 30, 0.16);
    transition: all 0.25s ease;
}
.sticky-share-menu.collapsed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.95);
    height: 0;
    padding: 0;
    overflow: hidden;
    border: none;
}
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}
.share-btn:hover { transform: translateX(-3px); }
.share-wa   { background: #16a34a; }
.share-fb   { background: #1877f2; }
.share-x    { background: #0f172a; }
.share-li   { background: #0a66c2; }
.share-tg   { background: #0284c7; }
.share-copy { background: #059669; }

.share-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #06281e;
    color: #ecfdf5;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 10000;
    display: none;
}

/* Comments Section */
.comment-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 14px;
}
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}
.admin-reply-box {
    margin-top: 12px;
    margin-left: 20px;
    padding: 12px 16px;
    background: var(--mint-tint);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    font-size: 14px;
}

/* Footer */
footer { background: var(--dark); color: #d1fae5; padding: 52px 0 24px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 30px; }
footer a { color: #a7f3d0; font-size: 14px; transition: 0.2s; }
footer a:hover { color: #ffffff; }

@media (max-width: 900px) {
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { position: static; }
    .search-box { grid-template-columns: 1fr; }
    .article-card { padding: 20px; }
}
@media (max-width: 640px) {
    .sticky-share-wrapper {
        right: 12px;
        top: auto;
        bottom: 18px;
        transform: none;
    }
}
