/* --- CSS Variables (Base setup) --- */
:root {
    --color-primary: #8B4513; 
    --color-secondary: #FF8C00; 
    --color-accent: #006400; 
    --color-background: #F8F4EF; 
    --color-text-dark: #333333;
    --color-text-light: #ffffff;
    --font-family-main: 'Inter', sans-serif;
    --font-family-devanagari: 'Noto Serif Devanagari', serif;
}


/* --- 1. HERO SECTION FIX AND STYLE (Background Image Included) --- */
.hero-section {
    /* ✨ यह सुनिश्चित करता है कि आपकी छवि पृष्ठभूमि में लोड हो और टेक्स्ट के लिए डार्क ओवरले हो ✨ */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('images/background.jpg') center center/cover no-repeat;
    
    min-height: 50vh; 
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

.hero-title {
    font-family: var(--font-family-devanagari);
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}


/* --- 2. GURU WELCOME SECTION (Advanced Style) --- */

.guru-welcome-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
    padding: 40px;
    background-color: var(--color-text-light); 
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); 
    border: 1px solid #e0e0e0;
}

.guru-photo-container {
    flex-shrink: 0; 
    text-align: center;
}

.guru-big-photo {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--color-secondary); 
    padding: 3px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
    box-shadow: 0 0 0 4px var(--color-primary); 
}

.guru-big-photo:hover {
    transform: scale(1.03); 
    box-shadow: 0 0 0 6px var(--color-primary); 
}

.guru-text-content {
    flex-grow: 1;
    padding-left: 20px;
}

.guru-title {
    font-family: var(--font-family-devanagari);
    color: var(--color-primary);
    font-size: 2.8em;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--color-secondary);
    display: inline-block;
    padding-bottom: 5px;
}

.guru-message {
    font-size: 1.25em;
    color: var(--color-text-dark);
    margin-bottom: 30px;
    font-style: italic;
    border-left: 4px solid var(--color-accent); 
    padding-left: 20px;
}

.contact-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}


/* --- 3. NEW: MAIN CONTACT GRID LAYOUT (Split Screen) --- */
.contact-main-grid {
    display: grid;
    grid-template-columns: 3fr 2fr; 
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info-and-map-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


/* --- 4. CONTACT FORM ENHANCEMENT (Modern Inputs) --- */

.contact-form-card {
    padding: 40px;
    border-radius: 15px; 
    background-color: var(--color-text-light); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
    height: fit-content;
}

.contact-form label {
    display: block;
    font-weight: 700; 
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: 1.05em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px; 
    margin-bottom: 25px; 
    border: 1px solid #e0e0e0; 
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1.1em; 
    background-color: #fcfcfc; 
    font-family: var(--font-family-main);
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06); 
}

.contact-form textarea {
    resize: vertical; 
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.15); 
    background-color: var(--color-text-light);
    outline: none;
}

.form-status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    color: var(--color-primary);
    background-color: rgba(255, 140, 0, 0.1); 
    border: 1px solid var(--color-secondary);
}


/* --- 5. INTERACTIVE MAP SECTION --- */
.ashram-location-map {
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background-color: var(--color-text-light);
}

.map-embed-placeholder iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* --- 6. CONTACT INFO GRID ENHANCEMENT --- */

.contact-grid-info {
    grid-template-columns: 1fr 1fr; /* 2 columns for the info section */
    gap: 20px;
    text-align: center;
}

.contact-info-item {
    background-color: var(--color-text-light);
    border: none; 
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid var(--color-primary); 
}

.contact-info-item:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); 
    border-bottom-color: var(--color-secondary); 
}

.icon-resource {
    font-size: 1.8em; 
    color: var(--color-text-light); 
    background-color: var(--color-secondary); 
    width: 60px;
    height: 60px;
    line-height: 60px; 
    border-radius: 50%; 
    margin-bottom: 15px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-info-item h4 {
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: 1.4em;
    font-weight: 700;
}

.contact-info-item p {
    margin: 0;
    font-size: 1.05em;
    color: #555;
}

.social-links-small a {
    color: var(--color-primary);
    font-size: 1.8em;
    margin: 0 8px;
    transition: color 0.3s;
}


/* --- 7. RESPONSIVENESS ADJUSTMENTS --- */
@media (max-width: 1200px) {
    /* Tablet/Smaller Desktop: Revert to single column layout for main grid */
    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    /* गुरुजी सेक्शन को मोबाइल पर लंबवत स्टैक करें */
    .guru-welcome-section {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 20px;
    }
    
    .guru-big-photo {
        width: 200px;
        height: 200px;
        border: 6px solid var(--color-secondary);
    }
    
    .guru-text-content {
        padding-left: 0;
    }
    
    .contact-actions {
        flex-direction: column; 
        gap: 15px;
    }
    
    /* Contact Info Grid को दो कॉलम से एक कॉलम में बदलें */
    .contact-grid-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ashram-location-map {
        padding: 25px;
    }
    
    .contact-form-card {
        padding: 25px;
    }
}




/* --- KATHA SERVICES MOBILE OPTIMIZED --- */

.katha-services-grid {
    text-align: center;
    padding: 40px 15px !important; /* मोबाइल के लिए कम पैडिंग */
    background: linear-gradient(to bottom, #fff, #fffdfa);
}

.section-desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem; /* मोबाइल पर थोड़ा छोटा फॉन्ट */
    line-height: 1.5;
    padding: 0 10px;
}

/* ग्रिड को मोबाइल पर सिंगल कॉलम में बदला गया */
.katha-grid-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.katha-service-card {
    background: white;
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border: 1px solid #f1f1f1;
    border-left: 5px solid #FF8C00; /* आकर्षक साइड बॉर्डर */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* टेक्स्ट को लेफ्ट अलाइन किया मोबाइल के लिए */
    text-align: left;
}

/* मोबाइल पर टच इफेक्ट (Hover की जगह) */
.katha-service-card:active {
    transform: scale(0.98);
    background: #fdf7f2;
}

.katha-service-card .k-icon {
    font-size: 1.8rem;
    color: #FF8C00;
    margin-bottom: 12px;
}

.katha-service-card h3 {
    font-size: 1.2rem;
    color: #4B260F;
    font-weight: 800;
    margin-bottom: 8px;
    font-family: 'Noto Serif Devanagari', serif;
}

.katha-service-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* --- MAP & BUTTONS FOR MOBILE --- */

.map-embed-placeholder iframe {
    width: 100%;
    height: 280px; /* मोबाइल के लिए कम ऊंचाई */
    border-radius: 12px;
}

.contact-actions {
    display: flex;
    flex-direction: column; /* बटन्स एक के नीचे एक */
    gap: 12px;
    width: 100%;
}

.cta-button {
    width: 100%; /* फुल विड्थ बटन्स */
    justify-content: center;
    padding: 15px;
    font-size: 1.1rem;
}

/* टैबलेट और डेस्कटॉप के लिए ऑटो-एडजस्टमेंट */
@media (min-width: 768px) {
    .katha-grid-wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .katha-service-card {
        align-items: center;
        text-align: center;
        border-left: none;
        border-bottom: 5px solid #FF8C00;
    }

    .contact-actions {
        flex-direction: row;
    }
}