/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for Light Mode (Default) */
:root {
    --background-color: #ffffff;
    --text-color: #333;
    --header-bg: #1a73e8; /* Blue background for header */
    --header-text: #ffffff;
    --link-color: #1a73e8;
    --link-hover: #ffd700;
    --section-bg: #f4f4f4;
    --footer-bg: #333;
    --footer-text: #ffffff;
    --button-bg: #1a73e8;
    --button-text: #ffffff;
    --button-hover: #1557b0;
    --shadow: rgba(0, 0, 0, 0.1);
    --accent-color: #ffd700; /* Gold accent for hover effects */
    --border-color: #e0e0e0; /* Light border for elements */
}

/* Dark Mode Styles */
[data-theme="dark"] {
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --header-bg: #0d47a1; /* Darker blue for header in dark mode */
    --header-text: #ffffff;
    --link-color: #64b5f6;
    --link-hover: #ffd700;
    --section-bg: #333333;
    --footer-bg: #121212;
    --footer-text: #ffffff;
    --button-bg: #1976d2;
    --button-text: #ffffff;
    --button-hover: #0d47a1;
    --shadow: rgba(255, 255, 255, 0.1);
    --border-color: #444; /* Darker border for dark mode */
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: all 0.3s ease;
}

/* Language-specific font for Hindi */
body.lang-hi {
    font-family: 'Noto Sans Devanagari', 'Mangal', sans-serif;
    font-size: 1.2rem;
    line-height: 1.9;
    color: #222;
}

/* Header Styles */
header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Container and Company Name */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 80px; /* Adjusted for better proportion */
    height: 80px;
    object-fit: contain;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--header-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Three-dot Menu (Mobile) */
.three-dot-menu {
    display: none; /* Hidden on desktop */
    font-size: 1.5rem;
    color: var(--header-text);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.three-dot-menu:hover {
    color: var(--link-hover);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 0;
}

.nav-links a {
    color: var(--header-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--link-hover);
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Screen Reader Button */
.screen-reader-btn {
    background: none;
    border: none;
    color: var(--header-text);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.screen-reader-btn:hover {
    background-color: var(--link-hover);
    color: #333;
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-btn {
    background: none;
    border: 1px solid var(--header-text);
    color: var(--header-text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: var(--link-hover);
}

.search-input {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    width: 0;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.search-container.active .search-input {
    width: 150px;
    opacity: 1;
}

.search-input:focus {
    outline: none;
    border-color: var(--link-color);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: none;
    border: 1px solid var(--header-text); 
    color: var(--header-text);
    padding: 5px;
    border-radius: 5px;
    font-size: 1.2rem; /* Icon size */
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 40px; /* Fixed width for icon */
    height: 40px; /* Fixed height for icon */
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background-color: var(--link-hover);
    color: #333;
}

.lang-btn::after {
    content: attr(data-tooltip); /* Tooltip shows language name */
    position: absolute;
    top: -30px;
    background: var(--header-bg);
    color: var(--header-text);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.8rem;
    display: none;
}

.lang-btn:hover::after {
    display: block;
}

.lang-btn.active {
    background-color: var(--link-hover);
    color: #333;
} 

/* Notification Section */
.notification-section {
    position: relative;
}

.notification-icon {
    background: none;
    border: 1px solid var(--header-text);
    font-size: 1.2rem;
    color: var(--header-text);
    padding: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.notification-icon:hover {
    color: var(--link-hover);
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    width: 200px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.notification-section:hover .notification-dropdown {
    display: block;
}

/* Ensure notification dropdown visibility on click */
.notification-dropdown[aria-hidden="false"] {
    display: block;
}

.notification-dropdown p {
    font-size: 0.9rem;
    margin: 5px 0;
}

/* Dark Mode Toggle Button */
.dark-mode-btn {
    background: none;
    border: 1px solid var(--header-text);
    font-size: 1.2rem;
    color: var(--header-text);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.dark-mode-btn:hover {
    color: var(--link-hover);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo-container {
        flex: 1;
    }

    .company-name {
        font-size: 1.2rem;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .three-dot-menu {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        padding: 10px 0;
        display: none;
        transition: all 0.3s ease-in-out;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .header-right {
        flex: 1;
        justify-content: flex-end;
        gap: 10px;
    }

    .screen-reader-btn {
        font-size: 0.8rem;
        padding: 3px 8px;
    }

    .search-container.active .search-input {
        width: 120px;
    }

    .lang-btn {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}

/* About Section */
.about-section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.about-content img {
    max-width: 100%;
    height: auto;
    flex: 1;
    min-width: 300px;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 2rem 1rem;
    background-color: #f9f9f9;
    text-align: center;
}

.testimonials h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.testimonial {
    margin: 1rem 0;
}

.testimonial p {
    font-style: italic;
    font-size: 1.1rem;
}

/* Services Section */
.services-list {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-list h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.service-item {
    margin-bottom: 2rem;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-item p {
    font-size: 1.1rem;
}

/* MP Online Services and Stock Market Services */
.service-category {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-category h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service-category ul {
    list-style: disc;
    padding-left: 2rem;
}

.service-category ul li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Blog Section */
.blog-section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.blog-section .description {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.blog-section img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.blog-post {
    margin-bottom: 2rem;
}

.blog-post h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-post h4 {
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem;
}

.blog-post p {
    font-size: 1.1rem;
}

/* Call-to-Action Section */
.cta-section {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--header-bg);
    color: var(--header-text);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--link-hover);
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #e6c200;
}

/* Payment Section */
.payment-details {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.payment-details h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.payment-details p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.qr-code img {
    max-width: 200px;
    height: auto;
    margin: 1rem 0;
}

/* Contact Section */
.contact-info {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.map {
    margin: 2rem 0;
}

.map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Newsletter Section */
.newsletter {
    padding: 2rem 1rem;
    background-color: var(--section-bg);
    text-align: center;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.newsletter input[type="email"] {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 300px;
    max-width: 100%;
}

.newsletter button {
    padding: 0.75rem 1.5rem;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter button:hover {
    background-color: var(--button-hover);
}

/* WhatsApp Chat */
.whatsapp-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1000;
}

.whatsapp-chat a {
    text-decoration: none;
    color: #25d366;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.whatsapp-icon {
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.whatsapp-text {
    font-size: 1rem;
    margin-top: 5px;
    font-weight: 500;
    color: #25d366;
}

.whatsapp-chat a:hover .whatsapp-icon {
    transform: scale(1.1);
}

.whatsapp-chat a:hover .whatsapp-text {
    color: #20b354;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 1.5rem 0;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--link-hover);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--footer-text);
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--link-hover);
    transform: scale(1.2);
}

footer p {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        gap: 1rem;
    }

    .about-content {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Additional Hindi-specific adjustments */
body.lang-hi h1,
body.lang-hi h2,
body.lang-hi h3,
body.lang-hi h4 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.5;
}

body.lang-hi p,
body.lang-hi li {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    word-spacing: 0.1em;
    text-align: justify;
}

body.lang-hi .hero h1 {
    font-size: 2.8rem;
}

body.lang-hi .hero p {
    font-size: 1.3rem;
}

body.lang-hi .testimonial p {
    font-size: 1.2rem;
}

body.lang-hi .service-item h3 {
    font-size: 1.7rem;
}

body.lang-hi .blog-post h3 {
    font-size: 1.7rem;
}

body.lang-hi .blog-post h4 {
    font-size: 1.4rem;
}

body.lang-hi .cta-section h2 {
    font-size: 2.2rem;
}

body.lang-hi .cta-section p {
    font-size: 1.2rem;
}

/* Magnifying Glass */
.magnifier {
    display: none;
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #000;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1000;
}

/* High-Contrast Mode for Screen Reader */
.high-contrast {
    background-color: #000 !important;
    color: #fff !important; /* Yellow links for visibility */
}

.high-contrast a {
    color: #ff0 !important;
}

.high-contrast .header-container {
    background-color: #333 !important;
}

.high-contrast .nav-menu {
    background-color: #333 !important;
}

/* Search Highlight */
.highlight {
    background-color: yellow;
    color: black;
}

/* Ensure mobile menu works with JS toggle */
.nav-menu.active {
    display: block;
}

#reset-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
    padding: 5px;
    transition: color 0.3s ease;
}

#reset-btn:hover {
    color: var(--primary-color); /* Change to your theme’s hover color, e.g., #007bff */
}

[data-theme="dark"] #reset-btn {
    color: #fff; /* Ensure visibility in dark mode */
}

[data-theme="dark"] #reset-btn:hover {
    color: #0af; /* Light blue hover in dark mode */
}

.high-contrast #reset-btn {
    color: #fff !important; /* White in high-contrast mode */
}

.high-contrast #reset-btn:hover {
    color: #ff0 !important; /* Yellow hover in high-contrast mode */
}

.hero-image-left, .hero-image-right {
    max-width: 48%;
    height: auto;
    vertical-align: top;
}
.image-container {
    overflow: hidden;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--section-bg, #f9f9f9);
}

.hero img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.status-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color, #333);
    margin-left: 10px;
    padding: 0;
    transition: transform 0.2s;
}

.status-text {
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.status-icon {
    width: 16px;
    height: auto;
    max-width: 16px;
    min-width: 14px;
}

/* Responsive Design for Hero Section */
@media (max-width: 768px) {
    .status-button {
        margin-left: 8px;
    }
    .status-text {
        font-size: 0.6rem;
    }
    .status-icon {
        width: 14px;
        max-width: 14px;
        min-width: 12px;
    }
}

@media (max-width: 480px) {
    .status-button {
        margin-left: 6px;
    }
    .status-text {
        font-size: 0.55rem;
    }
    .status-icon {
        width: 12px;
        max-width: 12px;
        min-width: 10px;
    }
}


/* Status Header */
.status-header {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--section-bg, #f9f9f9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo {
    max-width: 150px;
    height: auto;
    vertical-align: middle;
}

.status-header h2 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-color, #333);
    vertical-align: middle;
}

/* Status Section */
.status-section {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--section-bg, #f9f9f9);  
}

.status-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#media-container iframe {
    max-width: 600px; /* Reduced from 600px to make the black box smaller */
    margin: 1rem auto;
    display: block;
    border: none;
    height: 300px; /* Adjusted height to match the reduced width */
}

#media-container img,
#media-container video {
    max-width: 600px;
    margin: 1rem auto;
    display: block;
    border: 1px solid #ddd;
}

#prev-btn,
#next-btn {
    padding: 10px 20px;
    background: #1a73e8;
    color: #fff;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

#prev-btn:hover,
#next-btn:hover {
    background: #1557b0;
}

/* Responsive Design for Status Section */
@media (max-width: 768px) {
    #media-container img,
    #media-container video {
        max-width: 400px;
    }
    #prev-btn,
    #next-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #media-container img,
    #media-container video {
        max-width: 300px;
    }
    #prev-btn,
    #next-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Define fallback variables */
:root {
    --section-bg: #f9f9f9;
    --text-color: #333;
    --button-bg: #1a73e8;
    --button-hover: #1557b0;
    --border-color: #ddd;
    --shadow: rgba(0, 0, 0, 0.2);
}

.pay-btn {
    background-color: #00cc00;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 0;
}
.pay-btn:hover {
    background-color: #009900;
}
.payment-options {
    margin: 20px 0;
}

/* Login/Signup Button Styling */
.login-btn {
    padding: 0.8rem 1.5rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}
.login-btn:hover {
    background: #0056b3;
}

