/* --- GLOBAL VARIABLES & RESET --- */
:root {
    --primary: #2563eb;       /* Professional Blue */
    --primary-dark: #1d4ed8;  /* Darker Blue for Hover */
    --secondary: #e0e7ff;     /* Light Blue Backgrounds */
    --dark: #0f172a;          /* Deep Black/Blue for Text */
    --light: #f8fafc;         /* Clean Background */
    --text: #334155;          /* Soft Gray for Reading */
    --accent: #d93025;        /* Red for Hover/Alerts */
}

/* Smooth Scrolling & Box Sizing */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }

body { 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    margin: 0; 
    padding: 0; 
    background: var(--light); 
    color: var(--text);
    line-height: 1.6; /* Padhne mein aasaani ke liye */
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- HEADER (STICKY & MODERN) --- */
header { 
    background: rgba(255, 255, 255, 0.95); /* Thoda transparent */
    padding: 15px 5%; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    position: sticky; /* Scroll karne par upar chipka rahega */
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px); /* Blur effect like Apple */
}

.logo { font-size: 26px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
nav a { margin-left: 25px; font-weight: 600; color: var(--text); font-size: 15px; }
nav a:hover { color: var(--primary); }

/* --- LAYOUT & GRID --- */
.container { max-width: 1200px; margin: 50px auto; padding: 0 20px; }

/* Cards Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

/* --- MODERN CARDS (Hover Effects) --- */
.card { 
    background: #fff; 
    border-radius: 16px; 
    overflow: hidden; 
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); 
    transition: all 0.3s ease; 
}

.card:hover { 
    transform: translateY(-8px); /* Upar uthega */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); 
}

.card img { width: 100%; height: 220px; object-fit: cover; transition: 0.5s; }
.card:hover img { transform: scale(1.05); /* Image zoom hogi */ }

.card-content { padding: 25px; }

.category { 
    background: var(--secondary); 
    color: var(--primary); 
    padding: 6px 12px; 
    border-radius: 20px; 
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.card h3 { margin: 15px 0 10px; font-size: 20px; font-weight: 700; color: var(--dark); line-height: 1.4; }
.card p { font-size: 15px; color: #64748b; margin: 0; }

/* --- FORMS (Clean & Professional) --- */
.form-box { 
    max-width: 800px; 
    background: #fff; 
    padding: 40px; 
    margin: auto; 
    border-radius: 12px; 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); 
}

label { font-weight: 600; font-size: 14px; color: var(--dark); display: block; margin-top: 15px; }

input, textarea, select { 
    width: 100%; 
    padding: 14px; 
    margin: 8px 0; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    font-size: 15px; 
    font-family: inherit;
    transition: 0.2s;
    background: #f8fafc;
}

input:focus, textarea:focus, select:focus { 
    outline: none; 
    border-color: var(--primary); 
    background: #fff; 
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); 
}

button { 
    background: var(--primary); 
    color: #fff; 
    border: none; 
    padding: 14px 30px; 
    cursor: pointer; 
    border-radius: 8px; 
    font-size: 16px; 
    font-weight: 600; 
    margin-top: 20px;
    transition: 0.2s;
}

button:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* --- 📝 BLOG CONTENT STYLING (The Best Part) --- */
/* Ye section aapke blog post ko "Medium.com" jaisa clean banayega */

.content { font-size: 18px; line-height: 1.8; color: var(--text); }

/* Headings inside blog */
.content h1, .content h2, .content h3 { 
    color: var(--dark); 
    font-weight: 800; 
    margin-top: 40px; 
    margin-bottom: 15px; 
}

.content h2 { font-size: 28px; border-left: 5px solid var(--primary); padding-left: 15px; }
.content h3 { font-size: 24px; }
.content p { margin-bottom: 25px; }

/* Quotes */
.content blockquote {
    background: #f1f5f9;
    border-left: 5px solid var(--primary);
    margin: 30px 0;
    padding: 20px;
    font-style: italic;
    font-size: 18px;
    color: #475569;
    border-radius: 0 8px 8px 0;
}

/* Lists */
.content ul, .content ol { margin-bottom: 25px; padding-left: 20px; }
.content li { margin-bottom: 10px; padding-left: 10px; }

/* --- 🔗 LINKS STYLING (High Visibility for SEO) --- */
.content a {
    color: var(--primary);      
    font-weight: 700;           
    text-decoration: underline; 
    text-decoration-thickness: 2px; /* Moti line */
    text-underline-offset: 3px; 
    transition: all 0.2s ease;
}

.content a:hover {
    color: var(--accent);          
    background-color: #fef08a; /* Yellow Highlighter Effect */
    text-decoration: none;
    padding: 2px 4px;
    margin: 0 -4px; /* Text flow na bigde */
    border-radius: 4px;
}