/* =========================================
   1. GLOBAL RESET
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

.container {
    max-width: 1100px;
    width: 95%;
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================================
   2. NAVBAR & HOME BUTTON
   ========================================= */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: 4px solid #e67e22;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo { font-size: 24px; font-weight: 800; color: #2c3e50; text-transform: uppercase; letter-spacing: 1px; }
.logo span { color: #e67e22; }

.nav-menu { display: flex; gap: 15px; align-items: center; }

/* Normal Links */
.nav-menu a { font-weight: 600; color: #555; padding: 8px 12px; border-radius: 4px; font-size: 15px; }
.nav-menu a:hover { color: #e67e22; background: #fff0e6; }

/* 🔥 ORANGE HOME BUTTON (High Priority) 🔥 */
.nav-menu a.home-btn {
    background-color: #e67e22 !important;
    color: white !important;
    border: 1px solid #e67e22;
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(230, 126, 34, 0.3);
}

.nav-menu a.home-btn:hover {
    background-color: #d35400 !important;
    border-color: #d35400;
    transform: translateY(-2px);
}

/* =========================================
   3. LAYOUT & CARDS
   ========================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border: 1px solid #eee;
}

input, select { width: 100%; padding: 12px; margin: 8px 0; border: 1px solid #ccc; border-radius: 6px; }
button { background: #e67e22; color: white; border: none; padding: 14px; font-weight: bold; border-radius: 6px; cursor: pointer; width: 100%; font-size: 16px; }
button:hover { background: #d35400; }

/* Analysis Results */
.analysis-box { line-height: 1.6; }
.analysis-box h2 { margin-top: 0; font-size: 22px; }
.danger { color: #c0392b; }
.success { color: #27ae60; }

/* Comparison Grid */
.comp-section { margin: 40px 0; }
.section-title { text-align: center; color: #2c3e50; margin-bottom: 30px; }
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.comp-card { background: #fff; border: 1px solid #e1e1e1; border-radius: 8px; padding: 20px; display: flex; align-items: center; gap: 15px; transition: 0.3s; }
.comp-card:hover { transform: translateY(-5px); border-color: #e67e22; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.comp-icon { width: 50px; height: 50px; background: linear-gradient(135deg, #e67e22, #f39c12); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.comp-info h3 { font-size: 16px; margin: 0 0 5px 0; color: #333; }
.comp-info span { font-size: 13px; color: #777; background: #f4f4f4; padding: 2px 8px; border-radius: 10px; }

/* =========================================
   4. BLOG & CONTENT STYLING
   ========================================= */
.blog-post { background: #fff; padding: 50px; border-radius: 12px; box-shadow: 0 2px 20px rgba(0,0,0,0.03); margin-top: 40px; line-height: 1.8; color: #444; font-size: 17px; }
.blog-post h1 { color: #2c3e50; font-size: 32px; margin-bottom: 20px; border-bottom: 3px solid #eee; padding-bottom: 15px; }
.blog-post h2 { color: #2c3e50; font-size: 24px; margin-top: 40px; margin-bottom: 15px; font-weight: 700; }
.blog-post p { margin-bottom: 20px; }
.blog-post ul, .blog-post ol { margin-bottom: 25px; padding-left: 25px; }
.blog-post li { margin-bottom: 10px; }

/* TOC & Alerts */
.toc-box { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; padding: 25px; margin-bottom: 40px; display: inline-block; min-width: 300px; }
.toc-title { font-weight: bold; color: #2c3e50; margin-bottom: 10px; font-size: 18px; display: block; }
.toc-box ul { list-style: none; padding: 0; margin: 0; }
.toc-box li { margin-bottom: 8px; }
.toc-box a { color: #e67e22; text-decoration: none; font-weight: 500; }
.toc-box a:hover { text-decoration: underline; }

.alert-box { padding: 20px; border-left: 5px solid; border-radius: 4px; margin: 30px 0; }
.alert-info { background: #e3f2fd; border-color: #2196f3; color: #0d47a1; }
.alert-warning { background: #fff3e0; border-color: #ff9800; color: #e65100; }
.alert-box strong { display: block; margin-bottom: 5px; font-size: 18px; }

.faq-item { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.faq-question { font-weight: bold; font-size: 18px; color: #333; margin-bottom: 10px; display: block; }
.faq-answer { color: #666; font-size: 16px; }

/* =========================================
   5. FOOTER & MOBILE
   ========================================= */
.site-footer { background: #2c3e50; color: #ecf0f1; padding: 50px 0 20px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.footer-col h3 { color: #e67e22; border-bottom: 2px solid #e67e22; display: inline-block; padding-bottom: 5px; margin-bottom: 15px; }
.footer-col a { color: #bdc3c7; display: block; margin-bottom: 8px; }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #34495e; font-size: 14px; color: #95a5a6; }

@media (max-width: 768px) {
    .navbar-inner { flex-direction: column; height: auto; padding: 15px 0; }
    .nav-menu { flex-wrap: wrap; justify-content: center; margin-top: 10px; }
    .blog-post { padding: 25px; }
    .grid-2, .comp-grid { grid-template-columns: 1fr; }
}
/* =========================================
   6. MOBILE RESPONSIVE RULES (Sab se End ma rakhain)
   ========================================= */
@media (max-width: 768px) {
    
    /* Navbar Mobile Settings */
    .site-header { height: auto !important; padding-bottom: 10px; }
    .navbar-inner { 
        flex-direction: column !important; 
        height: auto !important; 
        padding: 10px 0 !important;
        gap: 15px;
    }
    
    .nav-menu { 
        flex-wrap: wrap; 
        justify-content: center; 
        width: 100%; 
        gap: 10px !important;
    }

    .nav-menu a {
        font-size: 14px !important;
        padding: 8px 10px !important;
        display: inline-block;
        margin-bottom: 5px;
    }

    /* Calculator Inputs (Ek line ma 1 ho jaye) */
    .grid-2 { 
        grid-template-columns: 1fr !important; 
        gap: 10px !important;
    }
    
    /* Inputs chote na hon */
    .grid-2 div { width: 100%; }
    input[type="number"] { font-size: 16px; } /* iPhone Zoom fix */

    /* Headings choti karein */
    h1 { font-size: 28px !important; line-height: 1.3; }
    
    /* Padding kam karein taake screen se bahar na jaye */
    .container { width: 95% !important; padding: 0 10px !important; }
    .card, .blog-post { padding: 20px !important; }
    
    /* Footer Stack */
    .footer-grid { grid-template-columns: 1fr !important; text-align: center; }
}