/* Custom styles for Charitable Trust website */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6f42c1;
    --accent-color: #ff9800;
    --dark-color: #0b3d91;
    --light-color: #e8f0ff;
    --text-color: #1b1b1b;
    --text-light: #555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.navbar {
    background-color: var(--primary-color) !important;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #F57C00;
    border-color: #F57C00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

/* Dashboard Project Styles */
.project-card-img {
    height: 150px;
    object-fit: cover;
}

.project-placeholder {
    height: 150px;
}

.project-progress {
    height: 6px;
}

.project-card-footer {
    background-color: var(--primary-color);
    color: white;
}



.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path fill="%23ffffff" fill-opacity="0.05" d="M0,0 C500,300 500,700 1000,1000 L1000,0 Z"/></svg>');
    background-size: cover;
    pointer-events: none;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 80px 0;
}

.bg-light-green {
    background-color: var(--light-color);
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.progress {
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
}

.project-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
    width: var(--progress-width, 0%);
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
}

.social-icons a {
    font-size: 1.5rem;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.testimonial-card {
    text-align: center;
    padding: 30px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.1;
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.event-date {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.event-date .month {
    text-transform: uppercase;
    font-size: 0.9rem;
}

.blog-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

.donation-amount-btn {
    margin: 5px;
    transition: all 0.3s ease;
}

.donation-amount-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    z-index: 10;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.blog-content ul,
.blog-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.alert {
    border-radius: 10px;
    border: none;
}

.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.list-group-item {
    border-radius: 10px;
    margin-bottom: 0.5rem;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.list-group-item:hover {
    background-color: var(--light-color);
}

.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .counter {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .card-img-top {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation for elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
