/* ==========================================================================
   1. General Reset & Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fcf8f8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   2. Header Section (Sticky Feature Added Here)
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #800020; /* Royal Maroon */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    
    /* Sticky Header Properties */
    position: sticky;
    top: 0;
    z-index: 100; /* यह सुनिश्चित करता है कि हेडर बाकी कंटेंट के ऊपर रहे */
}

header .logo img {
    height: 50px;
    width: auto;
    max-width: 100%;
}

header .logo a,
header .social-icons a,
header .language-selector select {
    color: #ffffff;
}

header .social-icons a {
    margin: 0 10px;
    font-size: 18px;
    transition: color 0.3s ease;
}

header .social-icons a:hover {
    color: #ffcc00;
}

header .language-selector select {
    background-color: transparent;
    border: 1px solid #ffffff;
    border-radius: 4px;
    padding: 8px;
    font-size: 14px;
    cursor: pointer;
}

header .language-selector #lang {
    background-color: #800020;
}

header .menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease;
}

header .menu-btn:hover {
    color: #ffcc00;
}

/* ==========================================================================
   3. Navigation Popup (Menu)
   ========================================================================== */
#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* ओवरले को हेडर से भी ऊपर रखने के लिए */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    padding: 40px;
    border-radius: 15px;
    position: relative;
    text-align: center;
    width: 350px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

#popup-overlay.show .popup-content {
    transform: scale(1);
}

#close-menu {
    position: absolute;
    top: 15px;
    right: 20px;
    border: none;
    background: none;
    font-size: 32px;
    cursor: pointer;
    color: #800020;
    transition: color 0.3s ease;
}

.popup-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.popup-content li {
    margin: 15px 0;
}

/* Premium Dark & Gold Style for Menu Links */
.popup-content a {
    text-decoration: none;
    display: block;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    background-color: #222831;
    color: #DAA520;
    border: 2px solid #DAA520;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.login-link { background-color:#DAA520; }

.popup-content a:hover, 
.popup-content a.active {
    background-color: #DAA520;
    color: #000000;
    transform: translateY(-2px);
}

.social-icons a {
    color: #DAA520;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #FFD700;
}

/* ==========================================================================
   4. Main Section
   ========================================================================== */
main {
    text-align: center;
    flex: 1;
    padding: 20px 20px 40px 20px; /* स्टिकी हेडर के हिसाब से पैडिंग को एडजस्ट किया गया है */
}

main section {
    padding: 60px 20px;
    border-bottom: 2px solid #e0e0e0;
}

main section:nth-child(even) {
    background-color: #f9f9f9;
}

/* ==========================================================================
   5. Footer Section
   ========================================================================== */
footer {
    text-align: center;
    padding: 30px 20px;
    background-color: #2b2b2b;
    color: #ffffff;
    margin-top: auto;
}

.footer-links a {
    margin: 0 15px;
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* ==========================================================================
   6. Responsive Design (Mobile / Tablet Layouts)
   ========================================================================== */
@media (max-width: 768px) {
    header {
        padding: 10px 15px;
    }
}