/*
Theme Name: TaniHebat
Theme URI: https://tanihebat.com
Author: Jenama Digital Nusantara
Author URI: https://jenama.digital
Description: Custom WordPress Theme untuk Portal Informasi Pertanian & Peternakan Indonesia. Dioptimasi untuk SEO, Bot Auto-Post, dan Mobile Responsiveness.
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tanihebat
Tags: blog, news, agriculture, responsive, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --tani-primary: #10b981;
    --tani-dark: #059669;
    --tani-darker: #047857;
    --tani-darkest: #064e3b;
    --ternak-primary: #d97706;
    --ternak-dark: #b45309;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-900);
    background-color: var(--gray-50);
    line-height: 1.6;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--tani-primary);
}

/* ===========================
   LAYOUT & CONTAINER
   =========================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--tani-darkest);
    text-transform: uppercase;
    letter-spacing: -0.05em;
    text-decoration: none;
}

.site-logo:hover {
    color: var(--tani-darkest);
}

.site-logo .logo-icon {
    background: var(--tani-dark);
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.site-logo:hover .logo-icon {
    transform: rotate(12deg);
}

.site-logo .logo-text .ternak {
    color: var(--ternak-primary);
}

.main-navigation {
    display: none;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 700;
    color: var(--gray-700);
    position: relative;
    padding: 0.5rem 0;
    text-decoration: none;
}

.main-navigation a:hover {
    color: var(--tani-primary);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tani-primary);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-button {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    color: var(--gray-600);
    transition: background 0.3s ease;
}

.search-button:hover {
    background: var(--gray-100);
}

.cta-button {
    display: none;
    background: var(--tani-dark);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    background: var(--tani-darker);
    box-shadow: 0 10px 15px rgba(5, 150, 105, 0.3);
    color: white;
}

.mobile-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: block;
}

.mobile-menu {
    display: none;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    margin-bottom: 1rem;
}

.mobile-menu a {
    font-weight: 700;
    color: var(--gray-800);
    display: block;
    padding: 0.5rem 0;
    text-decoration: none;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
    position: relative;
    margin-bottom: 4rem;
}

.hero-container {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--tani-primary), var(--tani-dark));
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.hero-container:hover .hero-image {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.4), transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
    max-width: 56rem;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: var(--tani-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.hero-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-author img {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid var(--tani-primary);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-cta {
    background: var(--tani-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: var(--tani-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    color: white;
}

.hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ===========================
   CATEGORY CARDS
   =========================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 4rem;
}

.category-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.category-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.category-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Category specific colors */
.category-card.pertanian .category-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--tani-primary);
}

.category-card.peternakan .category-icon {
    background: rgba(217, 119, 6, 0.1);
    color: var(--ternak-primary);
}

.category-card.edukasi .category-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.category-card.komunitas .category-icon {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

/* ===========================
   MAIN CONTENT LAYOUT
   =========================== */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.content-primary {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--gray-200);
}

.content-sidebar {
    display: grid;
    gap: 1rem;
    align-content: start;
}

/* ===========================
   ARTICLE CARDS
   =========================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.article-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--tani-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.article-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.article-excerpt {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-author img {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
}

/* ===========================
   NEWSLETTER CTA
   =========================== */
.newsletter-cta {
    background: linear-gradient(135deg, var(--tani-primary), var(--tani-dark));
    color: white;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

.newsletter-title {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.newsletter-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 28rem;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
}

.newsletter-button {
    background: white;
    color: var(--tani-primary);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-button:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* ===========================
   SIDEBAR WIDGETS
   =========================== */
.widget {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.widget-list a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.widget-list a:hover {
    color: var(--tani-primary);
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background: var(--gray-900);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--tani-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (min-width: 640px) {
    .cta-button {
        display: inline-block;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .main-navigation {
        display: block;
    }
    
    .mobile-toggle {
        display: none;
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .main-content {
        grid-template-columns: 2fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-content {
        padding: 4rem;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }

    .newsletter-form {
        flex-direction: row;
    }
}

@media (max-width: 767px) {
    .main-navigation {
        display: none !important;
    }
    
    .mobile-toggle {
        display: block !important;
    }

    .cta-button {
        display: none !important;
    }

    .hero-container {
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .category-card {
        padding: 1rem;
    }

    .category-title {
        font-size: 0.9rem;
    }

    .category-description {
        font-size: 0.75rem;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr !important;
    }

    .content-primary {
        padding: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-cta {
        padding: 2rem 1.5rem;
    }

    .newsletter-title {
        font-size: 1.25rem;
    }

    .newsletter-description {
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .main-content {
        grid-template-columns: 2fr 1fr;
    }

    .articles-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ===========================
   WORDPRESS ALIGNMENT CLASSES
   =========================== */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    text-align: center;
}

/* ===========================
   PROSE CONTENT WRAPPER
   BOT AUTO-POST CONTENT STYLING
   =========================== */
.prose,
.bot-content-wrapper {
    max-width: 100%;
    color: #374151;
    font-size: 1.125rem;
    line-height: 1.8;
}

.prose p,
.bot-content-wrapper p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.prose h1,
.bot-content-wrapper h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--earth-900);
}

.prose h2,
.bot-content-wrapper h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--earth-900);
}

.prose h3,
.bot-content-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--earth-900);
}

.prose h4,
.bot-content-wrapper h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--earth-900);
}

.prose h5,
.bot-content-wrapper h5,
.prose h6,
.bot-content-wrapper h6 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--earth-900);
}

.prose ul,
.bot-content-wrapper ul,
.prose ol,
.bot-content-wrapper ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.prose ul li,
.bot-content-wrapper ul li {
    list-style-type: disc;
    margin-bottom: 0.5em;
}

.prose ol li,
.bot-content-wrapper ol li {
    list-style-type: decimal;
    margin-bottom: 0.5em;
}

.prose blockquote,
.bot-content-wrapper blockquote {
    border-left: 4px solid var(--tani-500);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.prose a,
.bot-content-wrapper a {
    color: var(--tani-600);
    text-decoration: underline;
    font-weight: 600;
}

.prose a:hover,
.bot-content-wrapper a:hover {
    color: var(--tani-700);
}

.prose strong,
.bot-content-wrapper strong,
.prose b,
.bot-content-wrapper b {
    font-weight: 700;
    color: var(--earth-900);
}

.prose em,
.bot-content-wrapper em,
.prose i,
.bot-content-wrapper i {
    font-style: italic;
}

.prose code,
.bot-content-wrapper code {
    background: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.prose pre,
.bot-content-wrapper pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5em;
}

.prose pre code,
.bot-content-wrapper pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* ===========================
   TABLE STYLING - RESPONSIVE
   CRITICAL FOR BOT CONTENT
   =========================== */
.prose table,
.bot-content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.prose th,
.bot-content-wrapper th {
    background: var(--tani-600);
    color: white;
    font-weight: 700;
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--tani-700);
}

.prose td,
.bot-content-wrapper td {
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
}

.prose tr:nth-child(even),
.bot-content-wrapper tr:nth-child(even) {
    background: #f9fafb;
}

/* TABLE MOBILE RESPONSIVE - HORIZONTAL SCROLL */
@media (max-width: 768px) {
    .prose table,
    .bot-content-wrapper table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .prose th,
    .bot-content-wrapper th,
    .prose td,
    .bot-content-wrapper td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* ===========================
   MOBILE RESPONSIVE TYPOGRAPHY
   =========================== */
@media (max-width: 768px) {
    .prose,
    .bot-content-wrapper {
        font-size: 1rem;
    }
    
    .prose p,
    .bot-content-wrapper p {
        text-align: justify;
        margin-bottom: 1.25em;
    }
    
    .prose h1,
    .bot-content-wrapper h1 {
        font-size: 1.75rem;
    }
    
    .prose h2,
    .bot-content-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .prose h3,
    .bot-content-wrapper h3 {
        font-size: 1.25rem;
    }
    
    .prose h4,
    .bot-content-wrapper h4 {
        font-size: 1.125rem;
    }
}

/* ===========================
   PAGINATION STYLES
   =========================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-weight: 700;
    color: #374151;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background: var(--tani-500);
    color: white;
    border-color: var(--tani-500);
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background: var(--tani-600);
    color: white;
    border-color: var(--tani-600);
}

.pagination .prev,
.pagination .next {
    font-weight: 700;
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ===========================
   COMMENTS SECTION
   =========================== */
.comments-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #e5e7eb;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.comment-author {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.comment-content p {
    margin-bottom: 0.75rem;
}

.reply {
    margin-top: 1rem;
}

.reply a {
    color: var(--tani-600);
    font-weight: 600;
    font-size: 0.875rem;
}

/* ===========================
   RESPONSIVE UTILITIES
   =========================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }
}

/* ===========================
   TAILWIND-LIKE UTILITY CLASSES
   =========================== */

/* Display */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flex */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Gap */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Padding */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-16 { padding: 4rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-8 { padding-top: 2rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-12 { padding-bottom: 3rem; }

/* Margin */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }

/* Width */
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-lg { max-width: 32rem; }
.max-w-none { max-width: none; }

/* Height */
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-20 { height: 5rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-full { height: 100%; }
.h-auto { height: auto; }

/* Text */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }

/* Font Weight */
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

/* Text Align */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Color */
.text-white { color: #ffffff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-tani-600 { color: var(--tani-600); }
.text-tani-900 { color: var(--tani-900); }
.text-ternak-500 { color: var(--ternak-500); }

/* Background */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-tani-50 { background-color: var(--tani-50); }
.bg-tani-100 { background-color: var(--tani-100); }
.bg-tani-500 { background-color: var(--tani-500); }
.bg-tani-600 { background-color: var(--tani-600); }
.bg-tani-900 { background-color: var(--tani-900); }
.bg-ternak-500 { background-color: var(--ternak-500); }
.bg-earth-900 { background-color: var(--earth-900); }

/* Border */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-b { border-bottom-width: 1px; }
.border-b-4 { border-bottom-width: 4px; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-tani-100 { border-color: var(--tani-100); }
.border-tani-500 { border-color: var(--tani-500); }
.border-tani-600 { border-color: var(--tani-600); }

/* Border Radius */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Transition */
.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.duration-300 { transition-duration: 300ms; }
.duration-700 { transition-duration: 700ms; }

/* Hover States */
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-tani-50:hover { background-color: var(--tani-50); }
.hover\:bg-tani-500:hover { background-color: var(--tani-500); }
.hover\:bg-tani-600:hover { background-color: var(--tani-600); }
.hover\:bg-tani-700:hover { background-color: var(--tani-700); }
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-tani-500:hover { color: var(--tani-500); }
.hover\:text-tani-600:hover { color: var(--tani-600); }
.hover\:border-tani-500:hover { border-color: var(--tani-500); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }

/* Group Hover */
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:text-tani-500 { color: var(--tani-500); }
.group:hover .group-hover\:text-tani-600 { color: var(--tani-600); }
.group:hover .group-hover\:underline { text-decoration: underline; }

/* Line Clamp */
.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* Space */
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }
.space-y-12 > * + * { margin-top: 3rem; }

/* Leading */
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

/* Tracking */
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* Uppercase */
.uppercase { text-transform: uppercase; }

/* Italic */
.italic { font-style: italic; }

/* Object Fit */
.object-cover { object-fit: cover; }

/* Responsive - Medium (md) */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:w-1\/3 { width: 33.333333%; }
    .md\:w-2\/3 { width: 66.666667%; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:p-8 { padding: 2rem; }
    .md\:p-16 { padding: 4rem; }
}

/* Responsive - Large (lg) */
@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:w-1\/3 { width: 33.333333%; }
    .lg\:w-2\/3 { width: 66.666667%; }
}

/* Responsive - Small (sm) */
@media (min-width: 640px) {
    .sm\:block { display: block; }
    .sm\:flex-row { flex-direction: row; }
}


/* ===========================
   RESPONSIVE GRIDS (front-page)
   =========================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    text-align: center;
}

.responsive-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .responsive-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}
