/* Google Fonts for better readability */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --primary-color: #2563eb; /* Professional Blue */
    --secondary-color: #64748b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #475569;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- HEADER & NAVIGATION --- */
header {
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* असली इमेज को यहाँ से कंट्रोल करें */
.logo img {
    height: 45px; /* हेडर के हिसाब से 40px से 50px बेस्ट रहता है */
    width: auto;  /* Aspect ratio बना रहेगा, इमेज खिंचेगी नहीं */
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* डेस्कटॉप पर थोड़ा बड़ा और मोबाइल पर छोटा दिखाने के लिए */
@media (max-width: 768px) {
    .logo img {
        height: 35px; /* मोबाइल के लिए थोड़ा छोटा साइज */
    }
    
    .logo h1 {
        font-size: 1.2rem; /* टेक्स्ट भी छोटा कर दें */
    }
}

/* लोगो पर हल्का सा होवर इफ़ेक्ट (Optional) */
.logo:hover img {
    transform: scale(1.05);
}
/* PC Navigation Links Wrapper */
#nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

/* Desktop links styling */
#nav a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap; /* Text को एक लाइन में रखेगा */
}

/* Login/Signup Buttons Container */
.auth-links {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

/* Desktop पर Mobile Top Bar को छुपाएं */
.mobile-top {
    display: none;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- RESPONSIVE DESIGN (Mobile) --- */
@media (max-width: 992px) {
    header { padding: 1rem 5%; }
    
    .menu-toggle { 
        display: block; 
    }

    #nav {
        position: fixed;
        right: -100%; /* Hidden by default */
        top: 0;
        width: 300px; 
        height: 100vh;
        background: #ffffff;
        flex-direction: column; 
        align-items: flex-start; 
        justify-content: flex-start;
        padding: 0; 
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 999;
    }

    #nav.active { 
        right: 0; 
    }

    /* Mobile Top Section inside Drawer */
    .mobile-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 20px;
        background: var(--primary-color);
        color: white;
    }

    .mobile-top .brand {
        font-weight: 700;
        font-size: 1.2rem;
    }

    .mobile-top .close-btn {
        font-size: 1.5rem;
        cursor: pointer;
    }

    #nav a {
        margin: 0;
        padding: 15px 20px;
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }

    .auth-links {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
    }

    .auth-links a {
        border-bottom: 1px solid #f1f5f9;
    }
}
nav a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/*search box css */
/* --- SEARCH BOX STYLING --- */
.search-container {
    max-width: 600px;
    margin: 2rem auto;
    width: 100%;
    padding: 0 20px;
}

.search-input-group {
    display: flex;
    background: #ffffff;
    border-radius: 50px;
    padding: 5px 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: 0.3s;
}

.search-input-group:focus-within {
    border-color: #2563eb; /* Primary Blue */
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

#searchInput {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
}

.search-btn {
    background: #2563eb;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.search-btn:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.search-btn span {
    color: white;
    font-size: 1.2rem;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .search-container {
        margin: 1.5rem auto;
    }
    #searchInput {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}


/* --- HERO SECTION --- */
.hero {
    padding: 80px 10%;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #0f172a;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 25px;
}

.btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, background 0.3s;
}

.btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* --- CARDS & SECTIONS --- */
.section {
    padding: 60px 10%;
}

.section h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.card h4 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
/* --- MEDIA SECTION STYLING --- */
.media-section {
    background-color: #ffffff;
}

.media-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: stretch; /* 'flex-start' से बदलकर 'stretch' किया ताकि कार्ड्स की हाइट बराबर रहे */
}

.media-box {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column; /* अंदर के कंटेंट को वर्टिकली अलाइन करने के लिए */
}

.media-box h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Video & Image Wrapper (दोनों के लिए सेम रेशियो) */
.video-wrapper, .image-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
}

.video-wrapper iframe, .image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* इमेज को बिना स्ट्रेच किए बॉक्स में फिट करेगा */
}

.media-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: auto; /* अगर टेक्स्ट छोटा-बड़ा हो, तो भी नीचे से अलाइन रहेगा */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .media-container {
        flex-direction: column;
    }
    .media-box {
        width: 100%;
    }
}

/* --- FOOTER --- */
/* Footer Main Styling */
footer {
    background: #0f172a; /* Dark Navy Blue */
    color: #f1f5f9;
    padding: 60px 8% 20px;
    margin-top: 50px;
    border-top: 5px solid #3b82f6; /* Your primary color */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Container for all columns */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

/* Individual Column Styling */
.footer-col {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

/* Brand/Bio Column (Wider than others) */
.footer-col:first-child {
    flex: 2;
    min-width: 280px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.footer-logo span {
    color: #3b82f6; /* Primary Color for .in */
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 20px;
}

/* Heading Styling */
.footer-col h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* List Styling */
.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Hover Effect on Links */
.footer-col ul li a:hover {
    color: #3b82f6;
    padding-left: 8px;
}

/* Social Links Styling */
.social-links a {
    color: #f1f5f9;
    margin-right: 15px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.social-links a:hover {
    color: #3b82f6;
}

/* Footer Bottom Section */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #64748b;
}

/* --- Responsive Design (Mobile Friendly) --- */
@media (max-width: 768px) {
    footer {
        padding: 40px 5% 20px;
        text-align: left; /* Small devices par left-align zyada achha lagta hai */
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-col {
        margin-bottom: 20px;
        border-bottom: 1px solid #1e293b;
        padding-bottom: 15px;
    }

    .footer-col:last-child {
        border-bottom: none;
    }

    .footer-col:first-child {
        flex: 1;
    }
}

@media (max-width: 768px) {
    header { 
        padding: 1rem 5%; 
    }
    
    .menu-toggle { 
        display: block; 
        color: var(--primary-color);
        font-size: 2rem;
    }

    nav {
        position: fixed;
        right: -100%; /* Default hidden */
        top: 0;
        width: 280px; /* Specific width for better look */
        height: 100vh;
        background: #ffffff;
        display: flex;
        flex-direction: column; /* Items stack vertically */
        align-items: flex-start; /* Align text to left */
        padding: 80px 30px; /* Space from top and sides */
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 999;
    }

    nav.active { 
        right: 0; 
    }

    nav a {
        margin: 0;
        padding: 15px 0;
        font-size: 1.1rem;
        width: 100%; /* Full width for better click area */
        border-bottom: 1px solid #f1f5f9; /* Subtle divider */
        color: var(--text-main);
        display: block;
        transition: padding-left 0.3s ease;
    }

    nav a:last-child {
        border-bottom: none;
    }

    nav a:hover {
        color: var(--primary-color);
        padding-left: 10px; /* Small slide effect on hover */
    }

    /* Hero adjustments for mobile */
    .hero h2 { font-size: 1.8rem; }
    .hero { padding: 60px 5%; }
}

.header-title {
    font-size: 1.5rem; /* smaller size */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.share-buttons a {
    text-decoration: none;
    background: #0077b6; /* blue, you can change per platform */
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.share-buttons a:hover {
    background: #023e8a;
}

.wikipedia-link {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 10px;
    background: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #0077b6;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.wikipedia-link:hover {
    background: #0077b6;
    color: #fff;
}

.footer .social-links a {
    text-decoration: none;
    margin-right: 10px;
    padding: 6px 10px;
    background: #0077b6;
    color: #fff;
    border-radius: 4px;
    transition: background 0.3s;
}

.footer .social-links a:hover {
    background: #023e8a;
}
