/* --- Global Variables --- */
:root {
    --bg-color: #0a0a0a;       /* Deep Black */
    --card-bg: #161616;        /* Slightly lighter for cards */
    --primary-gold: #FFD700;   /* Gold (Karna/Sun theme) */
    --primary-dim: #b89b00;    /* Darker Gold for hover */
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --accent-red: #ff4d4d;     /* For SOS button */
}

/* --- Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

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

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(10, 10, 10, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

.nav_left h3 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav_right a {
    color: var(--text-white);
    margin-left: 25px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav_right a:hover {
    color: var(--primary-gold);
}

/* SOS Button Styling */
.nav_right .sos-btn {
    background-color: var(--accent-red);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.nav_right .sos-btn:hover {
    color: white; /* Keep white text */
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.6);
}

/* --- Hero Section --- */
.Greeting {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 10px;
}

.gold-text {
    color: var(--primary-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}
.red-text{
    color: var(--accent-red);
    text-shadow: 0 0 20px rgba(255, 77, 77, 0.3);
}
.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
}

.hero-content .sub-text {
    margin-top: 20px;
    font-style: italic;
    color: var(--primary-gold);
}

/* --- Blog / Stories Section --- */
.Blogs {
    padding: 60px 10%;
    text-align: center;
}

.search_blog {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#searchInput {
    padding: 12px 20px;
    width: 300px;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: var(--card-bg);
    color: white;
    outline: none;
}

#searchButton {
    padding: 12px 25px;
    background-color: var(--primary-gold);
    border: none;
    border-radius: 5px;
    color: black;
    font-weight: 600;
    cursor: pointer;
}

.section-title h2 {
    color: var(--primary-gold);
    margin-bottom: 10px;
}

/* Blog Cards Grid */
.blog_cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

/* Style for dynamic cards (used in JS) */
.story-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
    text-align: left;
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
}

/* --- Partners Section --- */
.partners-section {
    padding: 60px 10%;
    text-align: center;
    background-color: #0f0f0f;
}

.partners-section h2 {
    margin-bottom: 40px;
    color: var(--text-white);
}

.partner_grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.partner-card {
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #222;
    border-radius: 8px;
    color: #555;
    font-weight: 600;
    border: 1px dashed #444;
    transition: all 0.3s ease;
    cursor: pointer;
}
.partner-card>a{
    color: var(--text-white);
}
.partner-card:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

/* --- Footer --- */
footer {
    background-color: #000;
    border-top: 1px solid #222;
    padding: 40px 10% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-content h3 {
    color: var(--primary-gold);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-content a {
    color: var(--text-gray);
    transition: color 0.3s;
}

.footer-content a:hover {
    color: white;
}
.middle{
    width: 3px;
    height: 100%px;
    background-color: var(--primary-gold);
}
.bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #444;
    font-size: 0.8rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav_left{
        display: none;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .search_blog {
        flex-direction: column;
        align-items: center;
    }
    
    #searchInput {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}
/* --- Infinite Partner Scroll --- */
.partner_grid {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.partner_track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollPartners 25s linear infinite;
}

@keyframes scrollPartners {
    
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-80%);
    }
}

/* Optional: pause on hover */
.partner_grid:hover .partner_track {
    animation-play-state: paused;
}