/* Rural Theme CSS - Modern, responsive styling with rural colors and design elements */

:root {
    /* Enhanced Rural Color Palette */
    --rural-green-dark: #1c4b1f;    /* Dark forest green */
    --rural-green: #2e6e32;         /* Primary green */
    --rural-green-light: #4a8a4e;   /* Light green */
    --rural-green-pale: #e7f0e7;    /* Very pale green for backgrounds */
    
    --rural-earth: #8b6c42;         /* Earth brown */
    --rural-wood: #a97e44;          /* Wood brown */
    --rural-straw: #e3c27a;         /* Straw yellow */
    --rural-wheat: #f2d694;         /* Light wheat */
    
    --rural-sky: #6bafd6;           /* Sky blue */
    --rural-lavender: #a991cc;      /* Lavender purple */
    
    /* Text colors */
    --rural-text-dark: #2d3436;     /* Dark text */
    --rural-text-medium: #636e72;   /* Medium text */
    --rural-text-light: #b2bec3;    /* Light text */
    
    /* Background colors */
    --rural-bg-cream: #fcfaf7;      /* Cream background */
    --rural-bg-warm: #faf5eb;       /* Warm background */
    
    /* Status colors */
    --rural-success: #27ae60;       /* Success green */
    --rural-warning: #e67e22;       /* Warning orange */
    --rural-danger: #e74c3c;        /* Danger red */
    
    /* Card and element styling */
    --rural-radius-sm: 6px;         /* Small border radius */
    --rural-radius: 10px;           /* Standard border radius */
    --rural-radius-lg: 16px;        /* Large border radius */
    
    /* Shadows */
    --rural-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --rural-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); 
    --rural-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --rural-transition-fast: 0.2s ease;
    --rural-transition: 0.3s ease;
    --rural-transition-slow: 0.5s ease;
}

/* ===== Page Headers with Image Backgrounds ===== */
.rural-page-header {
    position: relative;
    border-radius: var(--rural-radius-lg);
    overflow: hidden;
    height: 180px;
    margin-bottom: 2rem;
    color: #fff;
}

.rural-header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.rural-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 110, 50, 0.85), rgba(28, 75, 31, 0.75));
    z-index: 2;
}

.rural-header-content {
    position: relative;
    padding: 2rem;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rural-header-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-size: 2.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.rural-header-subtitle {
    margin: 0.5rem 0 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== Card Layouts ===== */
.rural-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.rural-card {
    background: #fff;
    border-radius: var(--rural-radius);
    overflow: hidden;
    box-shadow: var(--rural-shadow);
    transition: transform var(--rural-transition), 
                box-shadow var(--rural-transition);
}

.rural-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--rural-shadow-lg);
}

.rural-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rural-card-body {
    padding: 1.5rem;
}

.rural-card-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: #f9f9f9;
}

/* ===== Icons and Badges ===== */
.rural-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.rural-icon-primary {
    background: var(--rural-green-light);
    color: #fff;
}

.rural-icon-accent {
    background: var(--rural-wood);
    color: #fff;
}

.rural-icon-info {
    background: var(--rural-sky);
    color: #fff;
}

.rural-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.rural-badge-primary {
    background: rgba(46, 110, 50, 0.15);
    color: var(--rural-green-dark);
}

.rural-badge-accent {
    background: rgba(169, 126, 68, 0.15);
    color: var(--rural-wood);
}

.rural-badge-info {
    background: rgba(107, 175, 214, 0.15);
    color: var(--rural-sky);
}

/* ===== Alerts and Messages ===== */
.rural-alert {
    padding: 1.25rem;
    border-radius: var(--rural-radius);
    margin: 1.5rem 0;
    position: relative;
}

.rural-alert-icon {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.rural-alert-icon i {
    font-size: 1.5rem;
}

.rural-alert-success {
    background: #eaf7ea;
    border-left: 4px solid var(--rural-green);
    color: var(--rural-green-dark);
}

.rural-alert-warning {
    background: #fff8e1;
    border-left: 4px solid var(--rural-warning);
    color: #b7651d;
}

.rural-alert-danger {
    background: #fde8e8;
    border-left: 4px solid var(--rural-danger);
    color: #c53030;
}

.rural-alert-info {
    background: #e6f6ff;
    border-left: 4px solid var(--rural-sky);
    color: #2c5282;
}

/* ===== Buttons ===== */
.rural-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--rural-radius);
    font-weight: 600;
    transition: all var(--rural-transition);
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.rural-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.rural-btn-primary {
    background: var(--rural-green);
    color: #fff;
}

.rural-btn-primary:hover {
    background: var(--rural-green-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(46, 110, 50, 0.25);
}

.rural-btn-accent {
    background: var(--rural-wood);
    color: #fff;
}

.rural-btn-accent:hover {
    background: #8e6935;
    color: #fff;
    box-shadow: 0 4px 12px rgba(169, 126, 68, 0.25);
}

.rural-btn-outline {
    background: transparent;
    color: var(--rural-green);
    border: 2px solid var(--rural-green);
}

.rural-btn-outline:hover {
    background: var(--rural-green-pale);
    box-shadow: 0 4px 12px rgba(46, 110, 50, 0.1);
}

.rural-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.rural-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.rural-btn-block {
    display: flex;
    width: 100%;
}

/* ===== Form Elements ===== */
.rural-form-group {
    margin-bottom: 1.5rem;
}

.rural-form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.rural-form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #dfe6e9;
    border-radius: var(--rural-radius);
    font-size: 1rem;
    background: #f9f9f9;
    transition: all var(--rural-transition-fast);
}

.rural-form-control:focus {
    outline: none;
    border-color: var(--rural-green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46, 110, 50, 0.1);
}

.rural-form-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--rural-text-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== Stats and Info Cards ===== */
.rural-stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--rural-radius);
    box-shadow: var(--rural-shadow);
    transition: transform var(--rural-transition);
}

.rural-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rural-shadow-lg);
}

.rural-stat-icon {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    color: var(--rural-green);
}

.rural-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--rural-text-dark);
}

.rural-stat-label {
    color: var(--rural-text-medium);
    font-size: 0.95rem;
}

.rural-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rural-info-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--rural-radius);
}

.rural-info-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--rural-text-medium);
    margin-bottom: 0.5rem;
}

.rural-info-value {
    font-weight: 500;
    font-size: 1.05rem;
    word-break: break-all;
}

/* ===== Background Patterns ===== */
.rural-pattern-bg {
    background-color: var(--rural-bg-cream);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232e6e32' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.rural-texture-bg {
    background-color: var(--rural-bg-warm);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%238b6c42' fill-opacity='0.1' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
}

/* ===== Utilities ===== */
.rural-section {
    padding: 3rem 0;
}

.rural-container {
    max-width: 1200px;
    margin: 0 auto;
}

.rural-text-success {
    color: var(--rural-success) !important;
}

.rural-text-warning {
    color: var(--rural-warning) !important;
}

.rural-text-danger {
    color: var(--rural-danger) !important;
}

.rural-border-top {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1.5rem;
}

.rural-border-bottom {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 1.5rem;
}

.rural-shadow {
    box-shadow: var(--rural-shadow);
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .rural-card-grid {
        grid-template-columns: 1fr;
    }
    
    .rural-header-title {
        font-size: 1.8rem;
    }
    
    .rural-header-subtitle {
        font-size: 1rem;
    }
    
    .rural-stat-value {
        font-size: 2rem;
    }
}