/* =============================================
   Aameriya Agro – Custom Styles
   ============================================= */

/* Alpine.js cloak */
[x-cloak] {
    display: none !important;
}

/* Base */
body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* ── Frontend Components ── */

.nav-link {
    color: #374151;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-link:hover {
    color: #15803d;
}

.btn-primary {
    background-color: #15803d;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}
.btn-primary:hover {
    background-color: #166534;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.btn-outline {
    border: 2px solid #15803d;
    color: #15803d;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}
.btn-outline:hover {
    background-color: #15803d;
    color: #fff;
}

.card-hover {
    transition: transform 0.3s, box-shadow 0.3s;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* ── Enquiry Modal ── */

.captcha-code {
    letter-spacing: 0.35em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* ── Rich Text Output (Frontend) ── */

.rich-text ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}
.rich-text ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}
.rich-text li {
    margin: 0.3rem 0;
}
.rich-text p {
    margin: 0.6rem 0;
}
.rich-text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
    color: #111827;
}
.rich-text h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    color: #111827;
}
.rich-text h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0.75rem 0 0.4rem;
    color: #111827;
}
.rich-text strong {
    font-weight: 600;
}
.rich-text em {
    font-style: italic;
}
.rich-text a {
    color: #15803d;
    text-decoration: underline;
}
.rich-text blockquote {
    border-left: 4px solid #15803d;
    padding-left: 1rem;
    margin: 0.75rem 0;
    color: #4b5563;
    font-style: italic;
}
.rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}
.rich-text table th,
.rich-text table td {
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    text-align: left;
}
.rich-text table th {
    background-color: #f3f4f6;
    font-weight: 600;
    color: #111827;
}
.rich-text table tr:nth-child(even) {
    background-color: #f9fafb;
}
.rich-text code {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    padding: 0.1em 0.4em;
    font-size: 0.875em;
    font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
    color: #b91c1c;
}
.rich-text pre {
    background-color: #1e293b;
    color: #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin: 0.75rem 0;
    overflow-x: auto;
    font-size: 0.875rem;
    font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
    line-height: 1.6;
}
.rich-text pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}
.rich-text hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 1.5rem 0;
}


/* ── Summernote: fix Tailwind preflight resetting list styles inside editor ── */

.note-editable ul {
    list-style-type: disc !important;
    padding-left: 2em !important;
    margin: 0.5em 0 !important;
}
.note-editable ol {
    list-style-type: decimal !important;
    padding-left: 2em !important;
    margin: 0.5em 0 !important;
}
.note-editable li {
    display: list-item !important;
    margin: 0.2em 0 !important;
}

