/*
Theme Name: AgriConnect Hub
Theme URI: https://agriconnect.example
Author: AgriConnect Hub Team
Author URI: https://agriconnect.example
Description: Modern, professional, and scalable WordPress theme for AgriConnect Hub - a digital collaboration platform connecting farmers, investors, traders, buyers, agricultural professionals, researchers, NGOs, and government stakeholders. Elementor-compatible, mobile-first, and built for community-driven agriculture.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agriconnect
Tags: agriculture, community, marketplace, elementor, mobile-first, sustainable, custom-colors, custom-logo, custom-menu, featured-images, translation-ready, threaded-comments
*/

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

:root {
    --ac-green-900: #0f3d2e;
    --ac-green-700: #1f6f43;
    --ac-green-500: #2fa066;
    --ac-green-300: #7fc99f;
    --ac-green-100: #e6f4ec;
    --ac-earth-900: #3b2a1a;
    --ac-earth-700: #6a4a2c;
    --ac-earth-500: #a97c50;
    --ac-earth-100: #f5ecdd;
    --ac-white: #ffffff;
    --ac-grey-100: #f8faf8;
    --ac-grey-300: #dfe6e0;
    --ac-grey-700: #4a5a4d;
    --ac-grey-900: #1c2820;
    --ac-accent: #f6a821;
    --ac-danger: #c0392b;
    --ac-success: #27ae60;
    --ac-radius: 10px;
    --ac-radius-lg: 18px;
    --ac-shadow: 0 6px 24px rgba(15, 61, 46, 0.08);
    --ac-shadow-lg: 0 14px 40px rgba(15, 61, 46, 0.12);
    --ac-font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ac-font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ac-container: 1200px;
    --ac-transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--ac-font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ac-grey-900);
    background: var(--ac-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ac-font-heading);
    font-weight: 700;
    color: var(--ac-green-900);
    line-height: 1.25;
    margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p  { margin: 0 0 1em; color: var(--ac-grey-700); }
a  { color: var(--ac-green-700); text-decoration: none; transition: color var(--ac-transition); }
a:hover, a:focus { color: var(--ac-green-500); }
img { max-width: 100%; height: auto; display: block; }

.ac-container {
    width: 100%;
    max-width: var(--ac-container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.ac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--ac-radius);
    border: 2px solid transparent;
    background: var(--ac-green-700);
    color: var(--ac-white);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--ac-transition);
    text-align: center;
    line-height: 1.2;
}
.ac-btn:hover, .ac-btn:focus {
    background: var(--ac-green-900);
    color: var(--ac-white);
    transform: translateY(-1px);
    box-shadow: var(--ac-shadow);
}
.ac-btn--outline {
    background: transparent;
    color: var(--ac-green-700);
    border-color: var(--ac-green-700);
}
.ac-btn--outline:hover {
    background: var(--ac-green-700);
    color: var(--ac-white);
}
.ac-btn--accent {
    background: var(--ac-accent);
    color: var(--ac-green-900);
}
.ac-btn--accent:hover {
    background: #e79a15;
    color: var(--ac-green-900);
}
.ac-btn--block { width: 100%; }

/* Header */
.ac-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--ac-grey-300);
}
.ac-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}
.ac-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ac-green-900);
}
.ac-logo svg { width: 34px; height: 34px; }
.ac-logo img,
.ac-logo .custom-logo,
.ac-logo .custom-logo-link img {
    width: auto;
    height: auto;
    max-width: 250px;
    max-height: 100px;
    display: block;
    object-fit: contain;
}
.ac-logo .custom-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 768px) {
    .ac-logo img,
    .ac-logo .custom-logo,
    .ac-logo .custom-logo-link img {
        max-width: 150px;
        max-height: 50px;
    }
}
.ac-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.ac-nav a {
    color: var(--ac-grey-900);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}
.ac-nav a:hover {
    color: var(--ac-green-700);
}
.ac-nav .current-menu-item > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--ac-green-500);
    border-radius: 2px;
}
.ac-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.ac-nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--ac-green-900);
    margin: 5px 0;
    transition: transform var(--ac-transition), opacity var(--ac-transition);
}
.ac-header-cta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Hero */
.ac-hero {
    position: relative;
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, var(--ac-green-100) 0%, var(--ac-white) 100%);
    overflow: hidden;
}
.ac-hero.has-bg { color: #fff; }
.ac-hero.has-bg .lead { color: rgba(255,255,255,0.92); }
.ac-hero.has-bg .ac-hero-stat strong { color: #fff; }
.ac-hero.has-bg .ac-hero-stat span { color: rgba(255,255,255,0.85); }
.ac-hero.has-bg .ac-tag {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
}
.ac-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}
.ac-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 42, 22, 0.85) 0%, rgba(6, 42, 22, 0.55) 45%, rgba(6, 42, 22, 0.25) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
}
.ac-hero.has-bg h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.ac-hero.has-bg .lead { color: rgba(255,255,255,0.95); text-shadow: 0 1px 6px rgba(0,0,0,0.35); }
.ac-hero .ac-container { position: relative; z-index: 1; }
.ac-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(47, 160, 102, 0.12) 0%, transparent 60%);
    pointer-events: none;
}
.ac-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.ac-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    margin-bottom: 1rem;
}
.ac-hero .lead {
    font-size: 1.15rem;
    color: var(--ac-grey-700);
    margin-bottom: 1.75rem;
}
.ac-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.ac-hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.ac-hero-stat strong {
    display: block;
    font-size: 1.75rem;
    color: var(--ac-green-900);
    font-weight: 700;
}
.ac-hero-stat span {
    font-size: 0.9rem;
    color: var(--ac-grey-700);
}
.ac-hero-visual {
    position: relative;
    aspect-ratio: 3 / 4;
    max-height: 560px;
    background: var(--ac-green-100);
    border-radius: var(--ac-radius-lg);
    box-shadow: var(--ac-shadow-lg);
    overflow: hidden;
    background-image: linear-gradient(135deg, var(--ac-green-500), var(--ac-green-700));
}
.ac-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.ac-muted { color: var(--ac-grey-700); font-size: 1rem; }
.ac-pagination { display: flex; justify-content: center; }
.ac-pagination ul, .ac-pagination .page-numbers { display: flex; gap: .35rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.ac-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.25rem; height: 2.25rem; padding: 0 .75rem;
    border-radius: var(--ac-radius-sm, .5rem);
    border: 1px solid var(--ac-grey-200, #e5e7eb);
    background: #fff; color: var(--ac-grey-900, #111827);
    text-decoration: none; font-weight: 500; transition: all .15s ease;
}
.ac-pagination .page-numbers:hover { background: var(--ac-green-100); border-color: var(--ac-green-500); }
.ac-pagination .page-numbers.current { background: var(--ac-green-700, #1f7a42); color: #fff; border-color: var(--ac-green-700, #1f7a42); }
.ac-pagination .page-numbers.dots { border: none; background: transparent; }
/* WordPress the_posts_pagination() also renders here — same look */
.ac-pagination .nav-links { display: flex; justify-content: center; gap: .35rem; flex-wrap: wrap; }

/* Prev/next post navigation on single posts */
.ac-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem auto 3rem;
}
.ac-post-nav-item a {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--ac-radius-sm, .5rem);
    border: 1px solid var(--ac-grey-200, #e5e7eb);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: all .15s ease;
    min-height: 4rem;
}
.ac-post-nav-item a:hover { border-color: var(--ac-green-500); background: var(--ac-green-100); }
.ac-post-nav-label { font-size: .8rem; color: var(--ac-grey-700); text-transform: uppercase; letter-spacing: .04em; }
.ac-post-nav-title { font-weight: 600; color: var(--ac-green-900); }
.ac-post-nav-next { text-align: right; }
@media (max-width: 640px) {
    .ac-post-nav { grid-template-columns: 1fr; }
    .ac-post-nav-next { text-align: left; }
}

/* Archive page-hero with background image */
.ac-page-hero { position: relative; overflow: hidden; }
.ac-page-hero.has-bg { color: #fff; padding: 4rem 0 3.5rem; }
.ac-page-hero.has-bg h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.ac-page-hero.has-bg .lead { color: rgba(255,255,255,0.95); text-shadow: 0 1px 6px rgba(0,0,0,0.4); }
.ac-page-hero.has-bg a { color: #fff; }
.ac-page-hero.has-bg .breadcrumb, .ac-page-hero.has-bg .breadcrumbs { color: rgba(255,255,255,0.85); }
.ac-page-hero .ac-container { position: relative; z-index: 1; }
.ac-page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}
.ac-page-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 42, 22, 0.82) 0%, rgba(6, 42, 22, 0.45) 55%, rgba(6, 42, 22, 0.2) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
}

/* Contact section */
.ac-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2rem;
    align-items: start;
}
.ac-contact-info { display: grid; gap: 1rem; }
.ac-contact-card {
    display: flex; flex-direction: column; gap: .25rem;
    padding: 1.25rem;
    border-radius: var(--ac-radius-md, .75rem);
    background: #fff;
    border: 1px solid var(--ac-grey-200, #e5e7eb);
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.ac-contact-card .eyebrow { font-size: .75rem; letter-spacing: .06em; color: var(--ac-grey-700); }
.ac-contact-card a { color: var(--ac-green-900); text-decoration: none; font-weight: 600; }
.ac-contact-card a:hover { color: var(--ac-green-700); text-decoration: underline; }
.ac-contact-social { display: flex; flex-wrap: wrap; gap: .5rem; }
.ac-contact-social a {
    padding: .35rem .75rem; border-radius: 999px;
    border: 1px solid var(--ac-grey-200, #e5e7eb);
    text-decoration: none; font-size: .85rem; color: var(--ac-grey-900, #111827); background: #fff;
}
.ac-contact-social a:hover { border-color: var(--ac-green-500); background: var(--ac-green-100); }

.ac-contact-form {
    display: grid; gap: 1rem;
    padding: 1.75rem;
    border-radius: var(--ac-radius-lg, 1rem);
    background: #fff;
    border: 1px solid var(--ac-grey-200, #e5e7eb);
    box-shadow: var(--ac-shadow-lg);
}
.ac-contact-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; color: var(--ac-grey-700); }
.ac-contact-form input,
.ac-contact-form textarea {
    padding: .7rem .85rem;
    border-radius: var(--ac-radius-sm, .5rem);
    border: 1px solid var(--ac-grey-200, #e5e7eb);
    font: inherit; color: var(--ac-grey-900);
    background: #fff;
}
.ac-contact-form input:focus,
.ac-contact-form textarea:focus { outline: 2px solid var(--ac-green-500); outline-offset: 1px; border-color: transparent; }
.ac-contact-form button { justify-self: start; }
@media (max-width: 768px) {
    .ac-contact-grid { grid-template-columns: 1fr; }
}

/* Footer (one-pager layout) */
.ac-footer-grid--onepager { grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2.5rem; }
.ac-footer-brand { display: flex; flex-direction: column; gap: .75rem; }
.ac-footer-logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.ac-footer-logo img { filter: brightness(0) invert(1); }
.ac-footer-tagline { color: rgba(255,255,255,.78); max-width: 340px; margin: 0; }
.ac-header-user { font-size: .9rem; color: var(--ac-grey-700); margin-right: .25rem; }
@media (max-width: 640px) { .ac-header-user { display: none; } }

/* Member "home" dashboard: the header nav already carries all links, so drop
   the plugin's left-rail sidebar and collapse the shell to a single column. */
/* Member "home" dashboard polish — override the plugin's base look */
.ac-dashboard-home .ac-dashboard { grid-template-columns: 1fr; gap: 0; padding: 0; }
.ac-dashboard-home .ac-dashboard-sidebar { display: none; }
.ac-dashboard-home .ac-dashboard-main {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}
.ac-dashboard-home .ac-dashboard-main > h2 {
    font-size: 1.35rem;
    color: var(--ac-green-900);
    margin: 0 0 .35rem;
}
.ac-dashboard-home .ac-dashboard-main > p { color: var(--ac-grey-700); margin: 0 0 1.5rem; }
.ac-dashboard-home .ac-dashboard-main > h3 {
    font-size: 1.05rem;
    color: var(--ac-green-900);
    margin: 2rem 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--ac-grey-200, #e5e7eb);
}

/* Big polished KPI cards */
.ac-dashboard-home .ac-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
    margin-bottom: 0;
}
.ac-dashboard-home .ac-stat {
    background: #fff;
    border: 1px solid var(--ac-grey-200, #e5e7eb);
    border-left: 4px solid var(--ac-green-500);
    border-radius: var(--ac-radius-lg);
    padding: 1.4rem 1.5rem;
    box-shadow: 0 1px 3px rgba(15,61,46,.04), 0 8px 24px -12px rgba(15,61,46,.15);
    position: relative;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}
.ac-dashboard-home .ac-stat:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(15,61,46,.06), 0 14px 32px -12px rgba(15,61,46,.22); }
.ac-dashboard-home .ac-stat::after {
    content: "";
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(31,111,67,.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.ac-dashboard-home .ac-stat strong { font-size: 2.25rem; font-weight: 700; }
.ac-dashboard-home .ac-stat span { font-size: .82rem; color: var(--ac-grey-700); text-transform: uppercase; letter-spacing: .04em; }

/* Quick actions row */
.ac-dashboard-home .ac-dashboard-main .ac-flex .ac-btn { font-size: .85rem; padding: .55rem 1rem; }

/* Table refresh */
.ac-dashboard-home .ac-table {
    background: #fff;
    border-radius: var(--ac-radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15,61,46,.04), 0 8px 24px -12px rgba(15,61,46,.12);
    border: 1px solid var(--ac-grey-200, #e5e7eb);
    font-size: .9rem;
}
.ac-dashboard-home .ac-table th {
    background: linear-gradient(180deg, #f7faf8 0%, #eef4ef 100%);
    color: var(--ac-green-900);
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .06em;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--ac-grey-200, #e5e7eb);
}
.ac-dashboard-home .ac-table td {
    padding: .95rem 1rem;
    border-bottom: 1px solid #f0f2f0;
    vertical-align: middle;
}
.ac-dashboard-home .ac-table tbody tr:last-child td { border-bottom: 0; }
.ac-dashboard-home .ac-table tbody tr:nth-child(even) td { background: #fbfcfb; }
.ac-dashboard-home .ac-table tbody tr:hover td { background: var(--ac-green-100); }
.ac-dashboard-home .ac-table a { color: var(--ac-green-900); font-weight: 600; text-decoration: none; }
.ac-dashboard-home .ac-table a:hover { color: var(--ac-green-700); text-decoration: underline; }
.ac-dashboard-home .ac-badge {
    padding: .3rem .7rem;
    font-size: .68rem;
    letter-spacing: .04em;
}

/* Welcome strip */
.ac-section--tint { background: linear-gradient(180deg, #f4f9f5 0%, #ffffff 100%); }
.ac-dashboard-home + * { margin-top: 0; }
@media (max-width: 900px) {
    .ac-footer-grid--onepager { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .ac-footer-grid--onepager { grid-template-columns: 1fr; }
}

/* Search bar */
.ac-search-bar {
    background: var(--ac-white);
    border-radius: var(--ac-radius-lg);
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    box-shadow: var(--ac-shadow);
    margin-top: 2rem;
    flex-wrap: wrap;
}
.ac-search-bar select,
.ac-search-bar input[type="text"] {
    flex: 1 1 180px;
    min-width: 0;
    border: none;
    padding: 0.85rem 1rem;
    border-radius: var(--ac-radius);
    background: var(--ac-grey-100);
    font-size: 0.95rem;
    font-family: inherit;
}
.ac-search-bar select:focus,
.ac-search-bar input[type="text"]:focus {
    outline: 2px solid var(--ac-green-500);
    background: var(--ac-white);
}

/* Section */
.ac-section {
    padding: 4.5rem 0;
}
.ac-section--tint { background: var(--ac-grey-100); }
.ac-section--green { background: var(--ac-green-100); }
.ac-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}
.ac-section-header .eyebrow {
    display: inline-block;
    background: var(--ac-green-100);
    color: var(--ac-green-700);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.ac-section-header h2 { margin-bottom: 0.6rem; }
.ac-section-header p { color: var(--ac-grey-700); }

/* Grid + card */
.ac-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.ac-card {
    background: var(--ac-white);
    border-radius: var(--ac-radius-lg);
    border: 1px solid var(--ac-grey-300);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--ac-transition), box-shadow var(--ac-transition);
}
.ac-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ac-shadow-lg);
    border-color: transparent;
}
.ac-card-media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--ac-green-300), var(--ac-green-700));
    position: relative;
}
.ac-card-media img { width: 100%; height: 100%; object-fit: cover; }
.ac-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}
.ac-card-body .meta {
    font-size: 0.8rem;
    color: var(--ac-green-700);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.ac-card-body h3 {
    font-size: 1.15rem;
    margin: 0;
}
.ac-card-body p { margin: 0; color: var(--ac-grey-700); font-size: 0.92rem; flex: 1; }
.ac-card-footer {
    padding: 0 1.25rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ac-tag {
    display: inline-block;
    background: var(--ac-green-100);
    color: var(--ac-green-700);
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
}

/* Features */
.ac-features {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.ac-feature {
    background: var(--ac-white);
    padding: 1.75rem;
    border-radius: var(--ac-radius-lg);
    box-shadow: var(--ac-shadow);
    text-align: left;
}
.ac-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--ac-green-100);
    color: var(--ac-green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* CTA banner */
.ac-cta-banner {
    background: linear-gradient(135deg, var(--ac-green-700) 0%, var(--ac-green-900) 100%);
    color: var(--ac-white);
    border-radius: var(--ac-radius-lg);
    padding: 3.5rem 2rem;
    text-align: center;
}
.ac-cta-banner h2 { color: var(--ac-white); }
.ac-cta-banner p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 0 auto 1.5rem; }

/* Footer */
.ac-site-footer {
    background: var(--ac-green-900);
    color: rgba(255, 255, 255, 0.75);
    padding: 3.5rem 0 1.5rem;
}
.ac-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.ac-site-footer h4 { color: var(--ac-white); font-size: 1rem; margin-bottom: 1rem; }
.ac-site-footer ul { list-style: none; padding: 0; margin: 0; }
.ac-site-footer li { margin-bottom: 0.5rem; }
.ac-site-footer a { color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; }
.ac-site-footer a:hover { color: var(--ac-white); }
.ac-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
}
.ac-newsletter {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.ac-newsletter input {
    flex: 1;
    padding: 0.7rem 0.9rem;
    border: none;
    border-radius: var(--ac-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--ac-white);
    font-family: inherit;
}
.ac-newsletter input::placeholder { color: rgba(255, 255, 255, 0.5); }

/* Forms */
.ac-form label {
    display: block;
    font-weight: 600;
    color: var(--ac-green-900);
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
}
.ac-form input[type="text"],
.ac-form input[type="email"],
.ac-form input[type="password"],
.ac-form input[type="url"],
.ac-form input[type="tel"],
.ac-form input[type="number"],
.ac-form input[type="date"],
.ac-form select,
.ac-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--ac-radius);
    border: 1px solid var(--ac-grey-300);
    background: var(--ac-white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--ac-transition), box-shadow var(--ac-transition);
}
.ac-form input:focus,
.ac-form select:focus,
.ac-form textarea:focus {
    outline: none;
    border-color: var(--ac-green-500);
    box-shadow: 0 0 0 3px rgba(47, 160, 102, 0.15);
}
.ac-form .field { margin-bottom: 1.1rem; }
.ac-form .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.ac-form-note { font-size: 0.85rem; color: var(--ac-grey-700); margin-top: 0.35rem; }
.ac-form-error {
    background: #fdecea;
    color: var(--ac-danger);
    padding: 0.7rem 1rem;
    border-radius: var(--ac-radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.ac-form-success {
    background: #eafaf1;
    color: var(--ac-success);
    padding: 0.7rem 1rem;
    border-radius: var(--ac-radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Dashboard */
.ac-dashboard {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    padding: 2rem 0 4rem;
}
.ac-dashboard-sidebar {
    background: var(--ac-white);
    border-radius: var(--ac-radius-lg);
    padding: 1.25rem;
    box-shadow: var(--ac-shadow);
    height: fit-content;
    position: sticky;
    top: 90px;
}
.ac-dashboard-user {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ac-grey-300);
    margin-bottom: 1rem;
}
.ac-dashboard-user .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ac-green-500);
    color: var(--ac-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.ac-dashboard-user .name { font-weight: 600; color: var(--ac-green-900); font-size: 0.95rem; }
.ac-dashboard-user .role { font-size: 0.8rem; color: var(--ac-green-700); text-transform: capitalize; }
.ac-dashboard-nav ul { list-style: none; padding: 0; margin: 0; }
.ac-dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.85rem;
    color: var(--ac-grey-900);
    border-radius: var(--ac-radius);
    font-size: 0.93rem;
    font-weight: 500;
    transition: background var(--ac-transition);
}
.ac-dashboard-nav a:hover { background: var(--ac-green-100); color: var(--ac-green-700); }
.ac-dashboard-nav a.active { background: var(--ac-green-700); color: var(--ac-white); }
.ac-dashboard-main {
    background: var(--ac-white);
    border-radius: var(--ac-radius-lg);
    padding: 2rem;
    box-shadow: var(--ac-shadow);
}
.ac-dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--ac-grey-300);
}
.ac-dashboard-tabs a {
    padding: 0.7rem 1rem;
    border-radius: var(--ac-radius) var(--ac-radius) 0 0;
    color: var(--ac-grey-700);
    font-weight: 500;
    font-size: 0.92rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.ac-dashboard-tabs a.active {
    color: var(--ac-green-700);
    border-bottom-color: var(--ac-green-500);
}
.ac-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.ac-stat {
    background: var(--ac-green-100);
    padding: 1.25rem;
    border-radius: var(--ac-radius-lg);
    border-left: 4px solid var(--ac-green-500);
}
.ac-stat strong {
    display: block;
    font-size: 1.75rem;
    color: var(--ac-green-900);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.ac-stat span { font-size: 0.85rem; color: var(--ac-grey-700); }

/* Table */
.ac-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.ac-table th, .ac-table td {
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--ac-grey-300);
}
.ac-table th { color: var(--ac-green-900); font-weight: 600; background: var(--ac-grey-100); }
.ac-table tr:hover td { background: var(--ac-grey-100); }
.ac-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--ac-green-100);
    color: var(--ac-green-700);
}
.ac-badge--pending { background: #fff4d6; color: #b57810; }
.ac-badge--rejected { background: #fdecea; color: var(--ac-danger); }

/* Page hero */
.ac-page-hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, var(--ac-green-100), var(--ac-white));
    text-align: center;
}
.ac-page-hero .breadcrumb {
    font-size: 0.85rem;
    color: var(--ac-grey-700);
    margin-bottom: 0.75rem;
}
.ac-page-hero h1 { margin-bottom: 0.5rem; }

/* Post / article */
.ac-article {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 0;
}
.ac-article .meta { color: var(--ac-grey-700); font-size: 0.9rem; margin-bottom: 1.5rem; }
.ac-article img { border-radius: var(--ac-radius-lg); margin: 1.5rem 0; }
.ac-article blockquote {
    border-left: 4px solid var(--ac-green-500);
    padding: 0.5rem 1.5rem;
    color: var(--ac-grey-900);
    font-style: italic;
    background: var(--ac-green-100);
    border-radius: 0 var(--ac-radius) var(--ac-radius) 0;
    margin: 1.5rem 0;
}

/* Utility */
.ac-text-center { text-align: center; }
.ac-mt-2 { margin-top: 2rem; }
.ac-mb-2 { margin-bottom: 2rem; }
.ac-flex { display: flex; gap: 1rem; align-items: center; }
.ac-hidden { display: none !important; }
.ac-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animations */
@keyframes acFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.ac-fade-up { animation: acFadeUp 0.6s ease-out both; }

/* Responsive */
@media (max-width: 1024px) {
    .ac-hero-inner { grid-template-columns: 1fr; }
    .ac-hero-visual { max-height: 360px; }
    .ac-footer-grid { grid-template-columns: 1fr 1fr; }
    .ac-dashboard { grid-template-columns: 1fr; }
    .ac-dashboard-sidebar { position: static; }
}

@media (max-width: 768px) {
    .ac-nav-toggle { display: block; }
    .ac-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ac-white);
        border-bottom: 1px solid var(--ac-grey-300);
        padding: 1rem 1.25rem;
        display: none;
        box-shadow: var(--ac-shadow);
    }
    .ac-nav.open { display: block; }
    .ac-nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
    .ac-nav a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--ac-grey-300); }
    .ac-header-cta .ac-btn { padding: 0.55rem 1rem; font-size: 0.85rem; }
    .ac-section { padding: 3rem 0; }
    .ac-footer-grid { grid-template-columns: 1fr; }
    .ac-form .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .ac-container { padding: 0 1rem; }
    .ac-hero { padding: 3rem 0 2.5rem; }
    .ac-hero-stats { gap: 1.25rem; }
    .ac-cta-banner { padding: 2.25rem 1.25rem; }
    .ac-dashboard-main { padding: 1.25rem; }
}

/* Print + reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
