/* Global Styles */
:root {
    --primary-color: #04b630ff;
    --secondary-color: #04b630ff;
    --accent-color: #04b630ff;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: #3da8d8;
}

/* Header Styles */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    font-weight: 500;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 15px;
}

.mobile-menu ul li a {
    font-weight: 500;
}



/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Causes Grid */
.causes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.cause-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;

}

.cause-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
.cause-img {
    width: 100%;
    height: 580px;
    overflow: hidden;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}
.cause-img img {
    width: 100%;
    height: 580px;
    object-fit: cover;
    filter: grayscale(8%) brightness(0.98);
    transition: filter var(--transition), transform var(--transition);
    display: block;
}

.cause-card:hover .cause-img img {
    transform: scale(1.1);
}

.cause-content {
    padding: 20px;
}

.cause-content h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.progress-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin: 15px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 5px;
}

.cause-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #6c757d;
}

/* Donation Form */
.donation-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.25);
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option input {
    margin-right: 5px;
}

/* Footer Styles */
.main-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #adb5bd;
}

.footer-section ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #495057;
    color: #adb5bd;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .section {
        padding: 60px 0;
    }

    .main-footer .container {
        grid-template-columns: 1fr;
    }
}

/* Admin Dashboard Styles */
.dashboard-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 80px);
}

.admin-sidebar {
    background-color: var(--dark-color);
    color: white;
    padding: 20px 0;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar ul li {
    margin-bottom: 10px;
}

.admin-sidebar ul li a {
    display: block;
    padding: 10px 20px;
    color: #adb5bd;
    border-left: 3px solid transparent;
}

.admin-sidebar ul li a:hover, .admin-sidebar ul li a.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--accent-color);
}

.admin-main {
    padding: 30px;
    background-color: #f8f9fa;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dashboard-card h3 {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 10px;
}

.dashboard-card p {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Content Management */
.content-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.content-table th, .content-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.content-table th {
    background-color: var(--primary-color);
    color: white;
}

.content-table tr:hover {
    background-color: #f5f5f5;
}

.content-table .actions {
    display: flex;
    gap: 10px;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* Featured Content Grid */
.featured-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.content-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.content-card-image {
    height: 200px;
    overflow: hidden;
}

.content-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.content-card:hover .content-card-image img {
    transform: scale(1.05);
}

.content-card-body {
    padding: 20px;
}

.content-title {
    font-size: 1.4rem;
    margin: 0 0 10px;
    color: #2c3e50;
}

.content-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.content-date {
    display: flex;
    align-items: center;
}

.content-date::before {
    content: "📅";
    margin-right: 5px;
}

.content-excerpt {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 20px;
}

.content-read-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: #3498db;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.content-read-more:hover {
    background-color: #2980b9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .featured-content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-card-image {
        height: 250px;
    }
}
/* Single Content Page Styles */
.single-content-section {
    padding: 60px 0;
}

.single-content-article {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.single-content-image {
    height: 400px;
    overflow: hidden;
}

.single-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-content-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.single-content-header h1 {
    font-size: 2rem;
    margin: 0 0 10px;
    color: #2c3e50;
}

.single-content-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.content-category {
    background: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.single-content-body {
    padding: 30px;
    line-height: 1.8;
    color: #34495e;
}

.single-content-body p {
    margin-bottom: 20px;
}

.single-content-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.back-to-list {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-list:hover {
    color: #2980b9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .single-content-image {
        height: 250px;
    }
    
    .single-content-header,
    .single-content-body {
        padding: 20px;
    }
}
.imageicon {
   height: 40px; 
   vertical-align: middle;
}


/* News Section Styles */
.news-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.news-image {
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-body {
    padding: 25px;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #6c757d;
}

.news-meta i {
    margin-right: 5px;
    color: #04b630ff;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.news-excerpt {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-read-more {
    display: inline-block;
    color: #04b630ff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-read-more:hover {
    color: #04b630ff;
}

/* Pagination Styles */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
}

.page-link {
    padding: 8px 15px;
    border-radius: 5px;
    color: #04b630ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #f0f4f8;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-numbers a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    color: #04b630ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers a:hover,
.page-numbers a.active {
    background-color: #04b630ff;
    color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-pagination {
        flex-direction: column;
        gap: 10px;
    }
}
