/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
header {
    background-color: #74B83E;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 40;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    width: 48px;
    margin-right: 0.5rem;
}

.logo-container h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

nav {
    display: none;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

nav a span {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

nav a p {
    font-weight: 600;
    margin: 0;
}

nav a:hover {
    color: #9ae6b4;
}

.mobile-menu-btn {
    display: block;
    color: white;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

#mobile-menu {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: #74B83E;
    min-height: 100vh;
    z-index: 50;
    padding: 0 1.5rem;
    display: none;
}

#mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

#mobile-menu a:hover {
    color: #9ae6b4;
}

/* Main Content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #74B83E 0%, #48bb78 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.hero-buttons a,
.hero-buttons button {
    background-color: white;
    color: #059669;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero-buttons a:hover,
.hero-buttons button:hover {
    background-color: #f3f4f6;
}

.hero-buttons .secondary {
    background-color: #10b981;
    color: white;
}

.hero-buttons .secondary:hover {
    background-color: #059669;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: #1f2937;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Card Styles */
.card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
    cursor: pointer;
}

.card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.card p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #74B83E;
}

/* Search and Filter Section */
.search-section {
    background-color: #f9fafb;
    padding: 2rem 0;
}

.search-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.search-grid .col-span-2 {
    grid-column: span 1;
}

/* Form Elements */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Button Styles */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: #059669;
    color: white;
}

.btn-primary:hover {
    background-color: #047857;
}

.btn-secondary {
    background-color: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    color: #374151;
    background-color: #f9fafb;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Schemes Container */
.schemes-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.scheme-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.scheme-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.scheme-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.scheme-content {
    padding: 1.5rem;
}

.scheme-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.scheme-description {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.scheme-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.scheme-category {
    background-color: #e5f3ff;
    color: #0066cc;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.scheme-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.scheme-status.active {
    background-color: #d1fae5;
    color: #065f46;
}

.scheme-status.inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

.scheme-actions {
    display: flex;
    gap: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background-color: #f9fafb;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

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

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

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

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

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}


/* Responsive Design */
@media (min-width: 768px) {
    header {
        padding: 0 2rem;
    }
    
    .logo-container img {
        width: 64px;
    }
    
    .logo-container h1 {
        font-size: 1.875rem;
    }
    
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2.5rem;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero h1 {
        font-size: 3.75rem;
    }
    
    .hero p {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-cols-1.md\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .grid-cols-1.md\:grid-cols-5 {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .search-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .search-grid .col-span-2 {
        grid-column: span 2;
    }
    
    .schemes-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.bg-white {
    background-color: white;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-md {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.transition-colors {
    transition: color 0.3s, background-color 0.3s;
}

.transition-shadow {
    transition: box-shadow 0.3s;
}

.cursor-pointer {
    cursor: pointer;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.error {
    text-align: center;
    padding: 2rem;
    color: #dc2626;
    background-color: #fef2f2;
    border-radius: 0.5rem;
    margin: 1rem 0;
}