/* --- SEVA PAGE SPECIFIC STYLES (Ultra Modern & Dynamic) --- */

/* ----------------------------------------------------------- */
/* 0. Keyframe Animations for Advanced Effects */
/* ----------------------------------------------------------- */

/* Pulsing effect for attention-grabbing CTA button */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.4); /* Start with transparent glow */
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 140, 0, 0); /* Expand and fade the glow */
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.4); /* Reset */
    }
}

/* ----------------------------------------------------------- */
/* 1. Guru Image and Story Hero Section - MOBILE DEFAULT */
/* ----------------------------------------------------------- */

.seva-hero-with-image {
    /* Mobile First: Column Layout */
    display: flex;
    flex-direction: column; 
    align-items: center;
    max-width: 1200px;
    margin: 20px auto 40px auto; 
    
    /* Rich Gradient Background */
    background: 
        linear-gradient(160deg, var(--color-primary) 0%, rgba(139, 69, 19, 0.85) 30%, var(--color-accent) 100%);
    
    border-radius: 10px; 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); 
    overflow: hidden; 
}

.guru-image-box {
    width: 100%;
    max-width: 400px; 
    padding: 20px 15px 0 15px; /* Mobile padding */
    flex-shrink: 0; 
    text-align: center;
}

.guru-profile-image {
    width: 100%;
    height: auto;
    border-radius: 10px; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); 
    border: 3px solid #FFD700; /* Golden border */
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
}
.guru-profile-image:hover {
    transform: scale(1.05); 
}

.hero-content-story {
    padding: 25px 20px; /* Mobile padding */
    color: var(--color-text-light);
    text-align: center; 
    flex-grow: 1; 
}

.seva-hero-with-image .page-main-title {
    color: #FFD700; /* Light Gold */
    font-size: 2.2em; 
    margin-top: 0;
    margin-bottom: 15px; 
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); 
}

.intro-text-story {
    font-size: 1em; 
    line-height: 1.7; 
    margin-bottom: 1.5em; 
    color: #f0f0f0; 
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}


/* ----------------------------------------------------------- */
/* 2. Service Card Grid Layout - ADVANCED CARDS */
/* ----------------------------------------------------------- */

.seva-grid-container {
    display: grid;
    /* Single column on mobile, adapts to grid on desktop via media query */
    grid-template-columns: 1fr; 
    gap: 25px; 
    padding: 20px 10px; 
}

.seva-card {
    /* Subtle GLOSSY effect */
    background: linear-gradient(145deg, #ffffff 50%, #f7f7f7 100%); 
    border-radius: 12px;
    padding: 30px; 
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); 
    
    /* Smooth 3D-like transition */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 5px solid var(--color-secondary); 
}

.seva-card:hover {
    /* Deeper 3D-like lift and glow on hover */
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 
                0 0 15px rgba(255, 140, 0, 0.4); /* Colored glow */
    border-bottom-color: #FF4500; 
}

/* Colorful Alternating Borders on the bottom (for variety) */
.seva-card:nth-child(3n+1) { border-bottom-color: var(--color-accent); }
.seva-card:nth-child(3n+2) { border-bottom-color: var(--color-secondary); }
.seva-card:nth-child(3n+3) { border-bottom-color: var(--color-primary); }


.seva-icon-box {
    width: 75px; 
    height: 75px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em; 
    color: var(--color-text-light);
    margin-bottom: 20px;
    border: 5px solid #fff; 
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Icon Box Background Gradients */
.seva-icon-box.primary-bg { background-image: linear-gradient(135deg, var(--color-primary), #A0522D); }
.seva-icon-box.secondary-bg { background-image: linear-gradient(135deg, var(--color-secondary), #FF4500); }
.seva-icon-box.accent-bg { background-image: linear-gradient(135deg, var(--color-accent), #38761D); }
.seva-icon-box.dark-bg { background-image: linear-gradient(135deg, #5a5a5a, #3c3c3c); }


.seva-title {
    font-family: var(--font-family-hindi); 
    font-size: 1.65em; 
    font-weight: 800; 
    color: #4B260F; /* Darker brown */
    margin-top: 0;
    margin-bottom: 15px;
}

.seva-description {
    color: #555;
    font-size: 1.05em;
    margin-bottom: 25px;
    flex-grow: 1; /* Ensures buttons align at the bottom */
}

.seva-cta {
    width: 100%;
    padding: 14px 20px; 
    font-weight: 700; 
    margin-top: auto; 
    text-transform: uppercase;
    font-size: 1em;
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25); 
}


/* ----------------------------------------------------------- */
/* 3. Large CTA Section - ADVANCED STYLING & BUTTON FIX */
/* ----------------------------------------------------------- */
.large-cta-section {
    padding: 50px 30px; 
    margin-top: 70px; 
    /* Dynamic Radial Gradient */
    background-image: radial-gradient(circle at center, #6aa84f 0%, var(--color-accent) 70%, #38761D 100%);
    border-radius: 15px; 
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); 
    text-align: center;
    color: var(--color-text-light);
}

.large-cta-section .section-heading {
    color: #FFFACD; /* Light Gold */
    font-size: 2.3em;
    font-weight: 900;
    margin-bottom: 15px;
}
.large-cta-section p {
    color: #f0f0f0;
    font-size: 1.1em; 
    margin-bottom: 35px;
}

.contact-buttons-wrapper {
    /* FIX: Using Flexbox for proper spacing and centering */
    display: flex;
    justify-content: center;
    gap: 20px; /* **बटनों के बीच का गैप (Desktop)** */
    margin-top: 25px;
}
.contact-buttons-wrapper .cta-button {
    min-width: 200px; 
}

/* Button Backgrounds and Animation */
.contact-buttons-wrapper .primary-cta {
    animation: pulse-glow 2s infinite; 
    background-image: linear-gradient(135deg, var(--color-secondary), #FF4500); 
    border: none;
    padding: 15px 30px;
}
.contact-buttons-wrapper .secondary-cta {
    background-image: linear-gradient(135deg, var(--color-primary), #A0522D); 
    border: none;
    padding: 15px 30px;
}


/* ----------------------------------------------------------- */
/* --- MEDIA QUERIES (Responsiveness) --- */
/* ----------------------------------------------------------- */

/* --- DESKTOP VIEW (min-width: 769px) --- */
@media (min-width: 769px) {
    /* 1. Hero Section Desktop Layout (Image next to Text) */
    .seva-hero-with-image {
        flex-direction: row;
        margin: 50px auto 60px auto;
        border-radius: 15px;
    }
    .guru-image-box {
        width: 350px; 
        padding: 40px;
        z-index: 1; 
    }
    .hero-content-story {
        padding: 40px 60px 40px 20px; 
        text-align: left;
    }
    .seva-hero-with-image .page-main-title {
        font-size: 3.5em;
    }
    
    /* 2. Grid Desktop Layout */
    .seva-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
        gap: 40px; 
    }
}


/* --- MOBILE VIEW (max-width: 768px) --- */
@media (max-width: 768px) {
    
    /* 1. Hero Section Mobile Adjustments */
    .seva-hero-with-image {
        margin: 20px auto 40px auto;
        border-radius: 10px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }
    .hero-content-story {
        padding: 25px 20px;
    }
    .seva-hero-with-image .page-main-title {
        font-size: 2.2em;
    }

    /* 2. CTA Button Mobile Stack FIX */
    .contact-buttons-wrapper {
        /* Mobile: Stack vertically */
        flex-direction: column; 
        gap: 15px; /* **बटन के बीच 15px का गैप** */
    }
    .contact-buttons-wrapper .cta-button {
        /* Mobile: Full width */
        min-width: 100%; 
        box-sizing: border-box; 
    }

    /* 3. CTA Heading Adjustments */
    .large-cta-section {
        padding: 40px 20px;
    }
    .large-cta-section .section-heading {
        font-size: 2.2em; 
        letter-spacing: 1px;
        margin-bottom: 12px;
    }
}











/* Story Style Card for Ashram Seva */
.seva-story-card {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
}

.story-card-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.story-image-side {
    flex: 1;
    min-width: 350px;
    position: relative;
    padding: 30px;
}

.story-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border: 5px solid white; /* Floating Border Look */
}

.img-badge {
    position: absolute;
    bottom: 50px;
    right: 50px;
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.story-content-side {
    flex: 1.5;
    padding: 50px;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-heading {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
}

.story-heading::after {
    content: '';
    position: absolute;
    left: 0; bottom: -5px;
    width: 60px; height: 5px;
    background: var(--primary);
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.story-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .story-content-side { padding: 30px; }
    .story-heading { font-size: 1.8rem; }
    .story-img { height: 300px; }
}




/* Donation Section Styling */
.donation-container {
    padding: 60px 20px;
    background: #fdfaf7;
    border-radius: 40px;
    margin: 40px 0;
}

.donation-header {
    text-align: center;
    margin-bottom: 40px;
}

.donation-main-title {
    font-size: 2.5rem;
    color: #b33939; /* Deep Red for attention */
    font-weight: 800;
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Common Card Style */
.service-rates-card, .bank-details-card, .digital-pay-card {
    background: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid #ff9f43; /* Saffron border */
    transition: transform 0.3s ease;
}

.service-rates-card:hover, .bank-details-card:hover, .digital-pay-card:hover {
    transform: translateY(-5px);
}

/* Service Rates */
.rate-list { list-style: none; padding: 0; margin: 20px 0; }
.rate-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
    font-weight: 600;
}
.service-price { color: #27ae60; font-weight: 800; }

/* Bank Details */
.bank-info-item { margin-bottom: 15px; }
.bank-info-item label { font-size: 0.9rem; color: #777; display: block; }
.bank-info-item p { font-size: 1.1rem; font-weight: 700; color: #333; margin: 0; }
.ac-number { color: #b33939; font-size: 1.3rem !important; }

/* QR & Pay */
.qr-placeholder {
    text-align: center;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
}
.qr-img { width: 150px; height: 150px; }
.upi-apps { display: flex; justify-content: center; gap: 15px; height: 25px; margin-bottom: 15px; }
.pay-phone {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #25d366; /* WhatsApp Green */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .donation-main-title { font-size: 1.8rem; }
}