/* CocoWells Digital Newspaper & Agro Journal Stylesheet */
:root {
    --cw-emerald: #064e3b;
    --cw-green: #059669;
    --cw-light-green: #d1fae5;
    --cw-earth: #78350f;
    --cw-sand: #fef3c7;
    --cw-dark: #111827;
    --cw-slate: #374151;
    --cw-muted: #6b7280;
    --cw-bg: #f9fafb;
    --cw-white: #ffffff;
    --cw-border: #e5e7eb;
    --cw-accent: #0284c7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    background-color: var(--cw-bg);
    color: var(--cw-slate);
    line-height: 1.8;
    font-size: 16.5px;
}

h1, h2, h3, h4, h5, .coco-headline, .coco-masthead h1, .coco-nav, .coco-byline, .coco-badge-agro, .coco-footer {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--cw-dark);
}

a {
    color: var(--cw-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--cw-emerald);
    text-decoration: underline;
}

.coco-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Live Ticker Bar */
.coco-topbar {
    background: #022c22;
    color: #a7f3d0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 1px solid #064e3b;
}

.coco-topbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coco-ticker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coco-ticker-badge {
    background: #10b981;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Newspaper Masthead */
.coco-masthead {
    background: var(--cw-white);
    border-bottom: 3px solid var(--cw-emerald);
    padding: 28px 0 16px 0;
    text-align: center;
}

.coco-masthead-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.coco-masthead-left, .coco-masthead-right {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.85rem;
    color: var(--cw-muted);
    text-align: left;
}

.coco-masthead-right {
    text-align: right;
}

.coco-masthead h1 {
    font-size: 3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cw-emerald);
    font-weight: 800;
    margin: 0;
}

.coco-tagline {
    font-size: 0.92rem;
    color: var(--cw-muted);
    font-style: italic;
    letter-spacing: 0.5px;
}

/* Sticky Category Nav */
.coco-nav-wrapper {
    border-top: 1px solid var(--cw-border);
    margin-top: 14px;
    padding-top: 10px;
    position: sticky;
    top: 0;
    background: var(--cw-white);
    z-index: 999;
}

.coco-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    list-style: none;
    font-size: 0.88rem;
    font-weight: 700;
    flex-wrap: wrap;
}

.coco-nav a {
    color: var(--cw-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 0;
    display: block;
}

.coco-nav a.active, .coco-nav a:hover {
    color: var(--cw-green);
    text-decoration: none;
    border-bottom: 2px solid var(--cw-green);
}

/* Main Layout Grid with Sidebar */
.coco-layout-grid {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 35px;
    margin: 30px 0;
}

/* Lead Featured Story */
.coco-lead-story {
    background: var(--cw-white);
    border: 1px solid var(--cw-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.coco-lead-img {
    width: 100%;
    height: auto;
    display: block;
}

.coco-lead-body {
    padding: 30px;
}

.coco-lead-body h2 {
    font-size: 2.1rem;
    line-height: 1.25;
    margin: 12px 0 14px 0;
}

.coco-badge-agro {
    display: inline-block;
    background: var(--cw-light-green);
    color: var(--cw-emerald);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.coco-byline {
    font-size: 0.85rem;
    color: var(--cw-muted);
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.coco-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* 2-Col News Cards */
.coco-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 35px;
}

.coco-card {
    background: var(--cw-white);
    border: 1px solid var(--cw-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.coco-card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.coco-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.coco-card h3 {
    font-size: 1.25rem;
    margin: 10px 0;
    line-height: 1.35;
}

.coco-card p {
    font-size: 0.92rem;
    color: #4b5563;
    flex-grow: 1;
    margin-bottom: 14px;
}

.coco-card-meta {
    border-top: 1px solid var(--cw-border);
    padding-top: 10px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    color: var(--cw-muted);
    display: flex;
    justify-content: space-between;
}

/* Sidebar Widgets */
.coco-sidebar-box {
    background: var(--cw-white);
    border: 1px solid var(--cw-border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 25px;
}

.coco-sidebar-title {
    font-size: 1.15rem;
    color: var(--cw-emerald);
    border-bottom: 2px solid var(--cw-light-green);
    padding-bottom: 8px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coco-trending-list {
    list-style: none;
}

.coco-trending-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.coco-trending-list li:last-child {
    border-bottom: none;
}

.coco-trending-num {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #cbd5e1;
    line-height: 1;
}

.coco-trending-list a {
    color: var(--cw-dark);
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.4;
}

.coco-trending-list a:hover {
    color: var(--cw-green);
}

/* Standalone Full Article Layout */
.coco-article-container {
    max-width: 860px;
    margin: 30px auto;
    background: var(--cw-white);
    border: 1px solid var(--cw-border);
    border-radius: 8px;
    padding: 45px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.coco-breadcrumb {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.85rem;
    color: var(--cw-muted);
    margin-bottom: 20px;
}

.coco-article-header h1 {
    font-size: 2.5rem;
    line-height: 1.25;
    margin: 15px 0 20px 0;
    color: var(--cw-dark);
}

.coco-lead-paragraph {
    font-size: 1.2rem;
    font-weight: 500;
    color: #1f2937;
    border-left: 4px solid var(--cw-green);
    padding-left: 20px;
    margin: 25px 0;
    line-height: 1.7;
}

.coco-article-content h2 {
    font-size: 1.6rem;
    margin: 35px 0 15px 0;
    color: var(--cw-emerald);
}

.coco-article-content h3 {
    font-size: 1.3rem;
    margin: 25px 0 12px 0;
    color: var(--cw-dark);
}

.coco-article-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.coco-article-content ul, .coco-article-content ol {
    margin: 0 0 25px 30px;
}

.coco-article-content li {
    margin-bottom: 8px;
}

.coco-takeaways {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 24px 28px;
    margin: 30px 0;
}

.coco-takeaways h4 {
    color: var(--cw-emerald);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

/* Author Box */
.coco-author-box {
    background: #f8fafc;
    border: 1px solid var(--cw-border);
    border-radius: 8px;
    padding: 24px;
    margin: 40px 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.coco-author-box img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.coco-author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.coco-author-info p {
    font-size: 0.9rem;
    color: var(--cw-muted);
    margin: 0;
}

/* Comments Stream */
.coco-comments-section {
    border-top: 2px solid var(--cw-border);
    padding-top: 30px;
    margin-top: 40px;
}

.coco-comment {
    background: #fdfdfd;
    border: 1px solid var(--cw-border);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.coco-comment-head {
    display: flex;
    justify-content: space-between;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.coco-comment-user {
    font-weight: 700;
    color: var(--cw-dark);
}

.coco-comment-date {
    color: var(--cw-muted);
}

/* Newsletter Bar */
.coco-newsletter {
    background: #064e3b;
    color: #ffffff;
    border-radius: 8px;
    padding: 35px 30px;
    text-align: center;
    margin: 35px 0;
}

.coco-newsletter h3 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.coco-newsletter p {
    color: #d1fae5;
    max-width: 600px;
    margin: 0 auto 20px auto;
    font-size: 0.95rem;
}

.coco-sub-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}

.coco-sub-form input {
    flex-grow: 1;
    padding: 12px 16px;
    border-radius: 4px;
    border: none;
    font-family: inherit;
}

.coco-btn {
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.coco-btn:hover {
    background: #059669;
}

/* Footer */
.coco-footer {
    background: #022c22;
    color: #9ca3af;
    border-top: 3px solid var(--cw-green);
    padding: 50px 0 25px 0;
    font-size: 0.88rem;
}

.coco-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.coco-footer h4 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 1rem;
}

.coco-footer ul {
    list-style: none;
}

.coco-footer li {
    margin-bottom: 8px;
}

.coco-footer a {
    color: #d1fae5;
}

.coco-footer a:hover {
    color: #ffffff;
}

.coco-footer-bottom {
    border-top: 1px solid #064e3b;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Cookie Notice */
.coco-cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #064e3b;
    color: #ffffff;
    padding: 14px 20px;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.88rem;
    border-top: 2px solid #10b981;
}

@media (max-width: 868px) {
    .coco-layout-grid, .coco-grid-2, .coco-footer-grid {
        grid-template-columns: 1fr;
    }
    .coco-masthead-inner {
        flex-direction: column;
        gap: 10px;
    }
    .coco-nav {
        gap: 15px;
    }
    .coco-masthead h1 {
        font-size: 2.2rem;
    }
}
