/* Biography Stylesheet: Optimized for Performance & SEO 
   Founder: Ashok Kumar Yadav (Xenors.in)
*/

:root {
    --primary-color: #007bff;
    --text-dark: #222;
    --text-light: #555;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --border-color: #eee;
    --success-green: #28a745;
}

/* Global Reset & Base */
* { box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    max-width: 900px;
    margin: 0 auto;
    padding: 0; /* Nav uses full width, article uses max-width */
    background-color: var(--bg-light);
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 10px 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo-link { display: flex; align-items: center; text-decoration: none; }
.nav-logo { height: 40px; width: auto; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 25px; list-style: none; margin: 0; padding: 0; }
.nav-item { text-decoration: none; color: var(--text-dark); font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
.nav-item:hover { color: var(--primary-color); }

.nav-profile-group { display: flex; align-items: center; gap: 10px; }
.nav-profile-img { 
    width: 35px; height: 35px; border-radius: 50%; 
    object-fit: cover; border: 2px solid var(--primary-color);
}

/* Main Content Wrapper */
article {
    background: var(--white);
    padding: 40px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Typography */
h1 { font-size: 2.2rem; color: var(--text-dark); margin-bottom: 0.5rem; }
h2.subtitle { font-size: 1.1rem; color: var(--text-light); font-weight: 400; margin-top: 0; margin-bottom: 30px; }
h2.section-title { 
    font-size: 1.6rem; border-left: 5px solid var(--primary-color); 
    padding-left: 15px; margin-top: 45px; margin-bottom: 20px;
}

p { margin-bottom: 20px; text-align: justify; color: #444; }
.highlight { font-weight: 600; color: var(--primary-color); }

/* Tables & Lists */
.info-table { width: 100%; border-collapse: collapse; margin: 25px 0; }
.info-table tr { border-bottom: 1px solid var(--border-color); }
.info-table td { padding: 15px; }
.info-table td:first-child { font-weight: bold; color: var(--text-light); width: 35%; background-color: #fcfcfc; }
.info-table a { color: var(--primary-color); text-decoration: none; }

.education-list { list-style: none; padding: 0; margin: 25px 0; }
.education-list li { padding: 12px 0; border-bottom: 1px dashed var(--border-color); display: flex; justify-content: space-between; }
.education-list li span.school-name { font-weight: 600; }

/* Components: Cards, Grids, & Badges */
.grid-container { display: flex; gap: 20px; margin: 20px 0; flex-wrap: wrap; }
.grid-item { flex: 1; min-width: 250px; padding: 15px; border: 1px solid var(--border-color); border-radius: 6px; }

.tag, .badge { padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; }
.tag { background: #eef5ff; color: var(--primary-color); border: 1px solid #d0e3ff; }
.badge { background: #fff8e1; color: #f57f17; border: 1px solid #ffecb3; }

.brand-card { 
    background: #fff; border: 1px solid var(--border-color); border-radius: 12px; 
    padding: 25px; margin: 30px 0; display: flex; align-items: center; gap: 20px; 
}
.brand-icon { width: 80px; height: 80px; border-radius: 18px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.project-card { border-left: 4px solid var(--success-green); background: #f9fff9; padding: 15px; margin: 15px 0; }

/* Philosophy & Goals */
blockquote { 
    background: #f0f7ff; border-left: 4px solid var(--primary-color); 
    padding: 20px; margin: 30px 0; font-style: italic; 
}
.philosophy-card { flex: 1; min-width: 200px; background: #fff; border: 1px dashed var(--primary-color); padding: 15px; border-radius: 10px; text-align: center; }

/* Blog Section */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 30px 0; }
.blog-card { 
    background: #fff; border: 1px solid var(--border-color); border-radius: 12px; 
    overflow: hidden; transition: 0.3s; text-decoration: none; color: inherit; display: flex; flex-direction: column; 
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: var(--primary-color); }
.blog-image { width: 100%; height: 160px; background: #eee; display: flex; align-items: center; justify-content: center; color: #888; }
.blog-content { padding: 20px; }

/* FAQ & Footer */
.faq-container { margin-top: 40px; border-top: 2px solid var(--primary-color); padding-top: 30px; }
.faq-item { margin-bottom: 20px; padding: 15px; border: 1px solid #eee; border-radius: 8px; }
.faq-question { font-weight: bold; display: block; margin-bottom: 8px; }

footer { margin-top: 50px; text-align: center; font-size: 0.9rem; color: #888; padding-bottom: 40px; }

/* Responsive Adjustments */
@media (max-width: 600px) {
    article { padding: 20px; }
    .navbar { padding: 10px 15px; }
    .info-table td { display: block; width: 100% !important; padding: 10px; }
    .education-list li { flex-direction: column; }
    .brand-card { flex-direction: column; text-align: center; }
}
