/* Custom Styles */

:root {
    /* Primary Color - Red */
    --primary-color: #119751;
    --primary-dark: #157450;
    --primary-light: #fee2e2;

    /* Secondary Color - Amber */
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --secondary-light: #fbbf24;

    /* Button Colors */
    --btn-primary: #119751;
    --btn-default: #6b7280;
    --btn-info: #3b82f6;
    --btn-success: #10b981;
    --btn-warning: #f59e0b;
    --btn-danger: #dc2626;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
}

/* Header Styles */
header {
    background-color: white;
    border-bottom: 1px solid #f0f0f0;
}

header h1 {
    font-size: 1.125rem;
    font-weight: 700;
}

/* Navigation */
nav a,
nav button {
    transition: all 0.3s ease;
}

/* Header Shadow */
header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Breadcrumb */
.breadcrumb-section {
    background-color: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.breadcrumb-section a {
    color: #119751;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-section a:hover {
    color: #157450;
    text-decoration: underline;
}

.breadcrumb-section .separator {
    color: #9ca3af;
    margin: 0 0.5rem;
}

/* Cards */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn-primary {
    background-color: var(--btn-primary);
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-default {
    background-color: var(--btn-default);
}

.btn-info {
    background-color: var(--btn-info);
}

.btn-success {
    background-color: var(--btn-success);
}

.btn-warning {
    background-color: var(--btn-warning);
}

.btn-danger {
    background-color: var(--btn-danger);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

/* Search Box */
.search-box {
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Breadcrumb */
.breadcrumb {
    padding: 0.75rem 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h2 {
        font-size: 1.875rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* Breadcrumb */
.breadcrumb {
    background-color: #f3f4f6;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    margin-bottom: 0.1rem;
}

.breadcrumb a {
    color: #119751;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a,
.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination button:hover {
    border-color: #119751;
    color: #119751;
    background-color: #fef2f2;
}

.pagination .active {
    background-color: #119751;
    color: white;
    border-color: #119751;
}

/* Article Content */
.article-content {
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1rem;
    color: #374151;
}

.article-content h2 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #111827;
    font-weight: bold;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

/* Tags */
.tag {
    display: inline-block;
    background-color: #e2feee;
    color: #119751;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* List Items */
.list-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.list-item:hover {
    border-color: #119751;
    background-color: #e2feee;
}

.menu-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #374151;
}

.menu-item:hover {
    background-color: #ecfdf5;
    color: #15803d;
}

/* WhatsApp Widget */
#whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Floating Button */
#wa-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #25d366;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}

/* Popup */
#wa-popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    display: none;
    overflow: hidden;
}

/* Header */
.wa-header {
    background: #25d366;
    color: #fff;
    padding: 10px;
    position: relative;
}

#wa-close {
    position: absolute;
    right: 10px;
    top: 5px;
    background: none;
    border: none;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
}

#wa-status {
    display: block;
    font-size: 12px;
}

/* Body */
.wa-body {
    padding: 10px;
}

.wa-admin {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
}

.wa-admin i {
    font-size: 26px;
    color: #25d366;
    margin-right: 10px;
}

.wa-admin span {
    font-size: 14px;
}

/* Footer */
.wa-footer {
    text-align: center;
    font-size: 12px;
    padding: 6px;
    background: #f3f4f6;
}

/* Mobile */
@media (max-width: 640px) {
    #wa-popup {
        width: 260px;
    }
}

/* Form Elements */
.form-input,
.form-textarea,
.form-select {
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #119751;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Container Width */
.header-container {
    max-width: 1280px;
    margin: 0 auto;
}

.content-container {
    max-width: 1024px;
    margin: 0 auto;
    background-color: transparent;
}

/* Image Popup Modal */
.image-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.image-popup.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.image-popup img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
}

.image-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.image-popup-close:hover {
    transform: scale(1.2);
}

/* Fade Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.fade-out {
    animation: fadeOut 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    header .header-container {
        gap: 2rem;
    }

    header nav {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    header .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    header .flex-items-center:nth-child(2) {
        order: 3;
        width: 100%;
    }
}

/* Print Styles */
@media print {

    nav,
    header,
    footer,
    .no-print {
        display: none;
    }
}