/* General Reset and Font Import */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif; 
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

/* Header Styling */
header {
    background-color: #1a4a87;
    color: white;
    padding: 25px 0;
    text-align: center;
    border-bottom: 5px solid #ff9900;
}

header h1 {
    font-size: 2.4em;
    font-weight: 700;
}

header h2 {
    font-size: 1.6em;
    font-weight: 600;
}

/* Main Content and Sections */
main {
    padding: 20px 0;
}

section {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

section h3 {
    color: #1a4a87;
    border-bottom: 2px solid #ff9900;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 600;
}

/* Staff Section Styling */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px;
}

.staff-card {
    background: #f9f9f9;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: transform 0.3s, box-shadow 0.3s;
}

.staff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.photo-placeholder {
    width: 120px;
    height: 120px;
    background-color: #e0e0e0;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: #666;
    border: 3px solid #1a4a87;
    font-weight: 600;
}
/* सुनिश्चित करता है कि फोटो placeholder के अंदर फिट हो और गोल दिखे */
.photo-placeholder img {
    width: 100%;       /* छवि को उसके पेरेंट कंटेनर की पूरी चौड़ाई में फैलाता है */
    height: 100%;      /* छवि को उसके पेरेंट कंटेनर की पूरी ऊंचाई में फैलाता है */
    object-fit: cover; /* यह सुनिश्चित करता है कि छवि विकृत न हो और कंटेनर को पूरी तरह से भरे */
    border-radius: 50%; /* यह मुख्य प्रॉपर्टी है जो छवि को गोल बनाती है */
    display: block;    /* कुछ ब्राउज़र इश्यू से बचने के लिए */
}

.hindi-designation {
    color: #1a4a87;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.contact {
    margin-top: 10px;
    font-weight: 700;
    color: #333;
    background-color: #eaf1fa;
    padding: 5px;
    border-radius: 4px;
}

/* New CSS for Map Embed */
.map-container {
    position: relative;
    overflow: hidden;
    /* मैप की ऊँचाई को नियंत्रित करता है */
    padding-top: 56.25%; /* 16:9 आस्पेक्ट रेश्यो */ 
    height: 0;
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#contact-info h4 {
    margin-top: 20px;
    color: #333;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.map-link-text {
    margin-top: 10px;
    font-size: 1em;
}

.map-link-text a {
    color: #ff9900;
    text-decoration: none;
    font-weight: bold;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* Footer Styling */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    .staff-grid {
        grid-template-columns: 1fr;
    }
    .map-container {
        padding-top: 75%; /* छोटे स्क्रीन के लिए अधिक ऊँचाई */
    }
}