/* Custom Styles for Helpest Charity Template - Adapted for Samasra */

/* General */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

.bg-primary {
    background-color: #ff6b35 !important;
}

.text-primary {
    color: #ff6b35 !important;
}

.bg-secondary {
    background-color: #1a3c34 !important;
}

.text-secondary {
    color: #2c3e50 !important;
}

.bg-dark {
    background-color: #1a202c !important;
}

/* Navigation */
.header {
    transition: all 0.3s ease;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-section .lead {
    font-size: 1.25rem;
}

/* Causes Section */
#causes .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

#causes .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

#causes .card-img-top {
    height: 200px;
    object-fit: cover;
}

.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
}

/* Counters Section */
.counters-section .display-4 {
    font-weight: 700;
    font-size: 3rem;
    color: #ff6b35;
}

/* Testimonials */
#testimonial-carousel .carousel-item {
    padding: 2rem;
}

#testimonial-carousel img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.newsletter-section .form-control {
    border-radius: 25px 0 0 25px;
}

.newsletter-section .btn {
    border-radius: 0 25px 25px 0;
    background: white;
    color: #ff6b35;
}

/* Footer */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ff6b35 !important;
}

footer .input-group .form-control {
    border-radius: 25px 0 0 25px;
}

footer .input-group .btn {
    border-radius: 0 25px 25px 0;
    background-color: #ff6b35;
    border-color: #ff6b35;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .counters-section .display-4 {
        font-size: 2rem;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.back-to-top.show {
    display: flex;
}

.back-to-top .material-icons {
    font-size: 24px;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* Additional Charity Theme Styles */
.btn-primary, .get-started-btn, .donate-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-color: #ff6b35;
    border-radius: 25px;
    padding: 10px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover, .get-started-btn:hover, .donate-btn:hover {
    background: linear-gradient(45deg, #f7931e, #ff6b35);
    border-color: #f7931e;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
    border-radius: 25px;
    padding: 10px 30px;
    font-weight: 500;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    transform: translateY(-2px);
}

.card, .cause-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.card:hover, .cause-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Stat Cards */
.stat-card {
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.shadow {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
}

section {
    padding: 80px 0;
}

.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Hero Overlay */
.hero-overlay {
    opacity: 0.6;
}

/* Counter Animation */
@keyframes count {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.counter {
    animation: count 1s ease-out;
    font-size: 3rem;
    font-weight: bold;
    color: #ff6b35;
}
