* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #60a5fa; /* Light blue from logo hands */
    --secondary-color: #22c55e; /* Vibrant green from logo leaf */
    --accent-color: #3b82f6; /* Deeper blue accent */
    --text-color: #374151; /* Dark charcoal grey from logo text */
    --light-bg: #ffffff; /* White background */
    --white: #ffffff;
    --light-blue: #e0f2fe; /* Very light blue for backgrounds */
    --light-green: #dcfce7; /* Very light green for accents */
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 5px 20px rgba(0,0,0,0.12);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background: var(--white);
    color: var(--text-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--light-blue);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.logo h1 a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--light-blue);
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    background: var(--light-blue);
    color: var(--text-color);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Section Styles */
.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

/* Project Cards */
.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card-content {
    padding: 1.5rem;
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Member Cards */
.member-card {
    text-align: center;
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.member-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.member-card .post {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-blue);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(34, 197, 94, 0.2);
}

.btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3);
}

.btn-secondary {
    background: var(--primary-color);
    box-shadow: 0 2px 5px rgba(96, 165, 250, 0.2);
}

.btn-secondary:hover {
    background: #3b82f6;
    box-shadow: 0 4px 10px rgba(96, 165, 250, 0.3);
}

.btn-danger {
    background: #e74c3c;
}

.btn-success {
    background: #27ae60;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Admin Panel Styles */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ddd;
}

.admin-nav {
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.admin-nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-nav a {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.admin-nav a:hover {
    background: var(--secondary-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
}

.admin-table tr:hover {
    background: #f5f5f5;
}

.admin-table img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

/* Footer */
.main-footer {
    background: var(--text-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 4px solid var(--secondary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Donate Section */
.donate-hero {
    background: var(--light-green);
    color: var(--text-color);
    padding: 3rem 0;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 2px solid var(--secondary-color);
}

.donate-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.donate-option {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.donate-option:hover {
    transform: translateY(-5px);
}

.donate-option h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.donate-amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 1rem 0;
}

/* Blog Styles */
.blog-hero {
    background: var(--light-blue);
    color: var(--text-color);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-color);
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-content h2 a:hover {
    color: var(--secondary-color);
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.blog-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.read-more:hover {
    color: var(--secondary-color);
    gap: 1rem;
}

/* Blog Single Post */
.blog-single {
    background: var(--white);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 600;
    transition: all 0.3s;
}

.back-link:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.blog-single-header {
    margin-bottom: 2rem;
}

.blog-single-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.95rem;
}

.blog-meta span strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.blog-featured-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.pagination-btn {
    padding: 0.75rem 1.25rem;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    font-weight: 600;
    transition: all 0.3s;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.related-blogs {
    margin-top: 4rem;
}

/* Improved UI Elements */
.hero {
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.card {
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.05);
}

.btn {
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.donate-btn-header:hover {
    background: #16a34a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3) !important;
}

/* Additional white background improvements */
.main-content {
    background: var(--white);
}

.section {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Card improvements */
.card {
    background: var(--white);
    border: 1px solid var(--light-blue);
}

/* Gallery improvements */
.gallery-item {
    background: var(--white);
    border: 1px solid var(--light-blue);
}

/* Project card improvements */
.project-card {
    background: var(--white);
    border: 1px solid var(--light-blue);
}

/* Member card improvements */
.member-card {
    background: var(--white);
    border: 1px solid var(--light-blue);
}

/* Donate option improvements */
.donate-option {
    background: var(--white);
    border: 2px solid var(--light-green);
}

.donate-option:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.15);
}

/* Banner Slider Styles */
.banner-slider {
    position: relative;
    margin-bottom: 2rem;
}

.banner-slider > div {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.banner-slider > div::-webkit-scrollbar {
    display: none;
}

.banner-slide {
    min-width: 100%;
    scroll-snap-align: start;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 2rem;
    color: white;
}

.banner-overlay h2 {
    margin: 0;
    font-size: 2rem;
}

/* Video Item Styles */
.video-item {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-item iframe,
.video-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Text Alignment Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Margin Utilities */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Padding Utilities */
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* Font Size Utilities */
.fs-small { font-size: 0.9rem; }
.fs-normal { font-size: 1rem; }
.fs-large { font-size: 1.1rem; }
.fs-xl { font-size: 1.2rem; }

/* Color Utilities */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-muted { color: #666; }

/* Display Utilities */
.flex { display: flex; }
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Blog Comments Section */
.blog-comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-blue);
}

.comment-item {
    background: var(--white);
    border: 1px solid var(--light-blue);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.comments-list {
    margin-top: 2rem;
}

/* Project Image Slider */
.project-image-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.project-image-slider > div {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.project-image-slider > div::-webkit-scrollbar {
    display: none;
}

.project-image-slider img {
    min-width: 100%;
    scroll-snap-align: start;
    height: 250px;
    object-fit: cover;
}

/* Member Avatar Placeholder */
.member-avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--secondary-color);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

