/* Global Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333333;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- MODERN DARK NAVBAR (HEADER) --- */
.navbar {
    background-color: #1e293b;
    padding: 16px 0;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.nav-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-links a:hover {
    color: #ffffff;
}

/* Main Container Layout */
.main-container {
    width: 100%;
    max-width: 650px;
    margin: 30px auto;
    padding: 0 12px;
    flex: 1;
}

/* Ad Spaces */
.ad-space {
    background-color: #ebeff2;
    border: 1px dashed #b0bfc6;
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Calculator Content Card */
.calculator-box {
    background-color: #ffffff;
    border: 1px solid #d1d9e0;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    width: 100%;
    padding: 24px;
}

/* Modern Classic Title */
.calculator-title {
    font-size: 22px;
    font-weight: bold;
    color: #2b547e;
    margin-bottom: 6px;
    border-bottom: 2px solid #2b547e;
    padding-bottom: 6px;
}
.calculator-subtitle {
    font-size: 13px;
    color: #666666;
    margin-bottom: 24px;
}

/* Form Rows Alignment System */
.row {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 18px;
    width: 100%;
}
.label {
    font-size: 14px;
    color: #333333;
    text-align: right;
    padding-right: 20px;
    font-weight: bold;
    width: 140px;
    flex-shrink: 0;
}
.inputs-container {
    display: flex;
    gap: 8px;
    flex-grow: 1;
}
select, input[type="number"] {
    padding: 8px 10px;
    border: 1px solid #a6b9c7;
    border-radius: 4px;
    font-size: 14px;
    color: #333333;
    background-color: #ffffff;
    outline: none;
    flex: 1;
    min-width: 0;
}
select:focus, input[type="number"]:focus {
    border-color: #2b547e;
}

select { max-width: 110px; cursor: pointer; }
.day-select { max-width: 80px; }
.year-input { max-width: 90px; }

/* Action Form Button System */
.btn-row {
    display: flex;
    margin-left: 140px;
    margin-top: 8px;
    width: 100%;
}
.calc-btn {
    background-color: #4c7c2c;
    color: white;
    border: 1px solid #3c6323;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.calc-btn:hover { background-color: #5d9637; }
.calc-btn::after { content: " ▶"; font-size: 10px; margin-left: 4px; }

/* --- CLASSIC DATA TABLE RESULT PANEL --- */
.result-box {
    margin-top: 28px;
    border-top: 1px dashed #cbd5e1;
    padding-top: 24px;
    display: none;
    width: 100%;
}
.result-title {
    color: #2b547e;
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: bold;
}

/* हाइलाइटेड एज समरी पैनल */
.pro-summary-panel {
    background-color: #eff6ff;
    border-left: 4px solid #2b547e;
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: 0 4px 4px 0;
}
.pro-summary-panel .summary-value {
    font-size: 20px;
    font-weight: bold;
    color: #0f172a;
}
.pro-summary-panel .day-highlight {
    font-size: 13px;
    color: #475569;
    margin-top: 6px;
}

/* टेबल डिज़ाइन */
.pro-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.pro-data-table th {
    background-color: #f1f5f9;
    color: #334155;
    text-align: left;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
    border-bottom: 2px solid #cbd5e1;
}
.pro-data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #333333;
}
.pro-data-table tr:hover {
    background-color: #f8fafc;
}
.pro-data-table td:first-child {
    font-weight: bold;
    color: #555555;
    width: 45%;
}
.pro-data-table td:last-child {
    font-weight: bold;
    color: #000000;
    text-align: right;
}

/* SEO Editorial Wrapper */
.seo-content {
    margin-top: 36px;
    background: white;
    padding: 30px 24px;
    border-radius: 6px;
    border: 1px solid #d1d9e0;
    line-height: 1.7;
    overflow: hidden;
    word-wrap: break-word;
}
.seo-content h2 { 
    color: #2b547e; 
    font-size: 20px; 
    font-weight: bold; 
    margin-top: 32px;
    margin-bottom: 14px; 
    display: block;
    width: 100%;
}
.seo-content p { 
    color: #475569; 
    font-size: 16px; /* 12pt के बराबर */
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
    display: block;
}

/* --- MODERN DARK FOOTER LAYOUT --- */
.site-footer {
    background-color: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 32px 0;
    margin-top: 60px;
    font-size: 13px;
    border-top: 1px solid #334155;
    width: 100%;
}
.footer-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-links a { 
    color: #cbd5e1; 
    text-decoration: none; 
    transition: color 0.2s ease;
    font-weight: 500;
}
.footer-links a:hover {
    color: #ffffff;
}



/* मोबाइल के लिए डिफ़ॉल्ट (पुराने लेआउट में बिना बदलाव किए बटन के नीचे रहेगा) */
.countdown-container {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    margin-top: 25px; /* बटन से दूरी बनाए रखने के लिए */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.countdown-title {
    color: #166534;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.time-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    min-width: 50px;
    flex: 1;
}

.time-box span {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #15803d;
}

.time-box p {
    margin: 2px 0 0 0;
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}



/* FLUID RESPONSIVE ENGINE */
@media (max-width: 580px) {
    .navbar { padding: 16px 0; }
    .nav-container { justify-content: center; text-align: center; }
    
    /* मोबाइल व्यू में हेडर लिंक्स को पूरी तरह छिपा दिया */
    .nav-links { 
        display: none; 
    }
    
    .main-container { padding: 0 8px; margin: 15px auto; }
    .calculator-box { padding: 16px; }
    .row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 14px;
    }
    .label {
        text-align: left;
        padding-bottom: 4px;
        width: 100%;
    }
    .inputs-container {
        width: 100%;
    }
    select, .year-input {
        max-width: none;
    }
    .btn-row {
        margin-left: 0;
        width: 100%;
    }
    .calc-btn {
        width: 100%;
        justify-content: center;
    }
    .pro-summary-panel .summary-value {
        font-size: 16px;
    }
    .pro-data-table td {
        padding: 8px;
        font-size: 13px;
    }
    .site-footer { padding: 24px 0; }
    .footer-links { gap: 10px; }
}