/* Reset / base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: "Noto Sans Devanagari", Arial, sans-serif;
    background-color: #f5f6fa;
    color: #222;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #004f8b;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Top strip */
.top-strip {
    background-color: #0b4f8b;
    color: #fff;
    font-size: 14px;
}

.top-strip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.top-strip a {
    color: #fff;
    margin-left: 15px;
    font-size: 13px;
}

/* Header */
.site-header {
    background-color: #ffffff;
    border-bottom: 3px solid #f0a500;
}

.header-flex {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.header-left .emblem {
    height: 70px;
    width: auto;
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-center h1 {
    font-size: 20px;
    color: #0b4f8b;
    margin-bottom: 4px;
}

.header-center h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 2px;
}

.header-center p {
    font-size: 14px;
    color: #666;
}

.header-right {
    min-width: 150px;
    text-align: right;
    font-size: 14px;
}

.site-tag {
    background: #f0a500;
    color: #fff;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
}

/* Navigation */
.main-nav {
    background-color: #0b4f8b;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

/* nav icon (home etc.) */
.nav-icon {
    margin-right: 8px;
    font-size: 16px;
    display: inline-block;
    vertical-align: middle;
}

.nav-menu > li > a:hover {
    background-color: #083760;
}

/* Desktop dropdown */
.has-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 20;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown li a {
    display: block;
    padding: 8px 14px;
    color: #333;
    font-size: 14px;
}

.dropdown li a:hover {
    background-color: #f3f6fb;
}

/* Hamburger Icon */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    height: 7px;
    width: 150%;
    padding-bottom: 5px;
    margin-bottom: 5px;
    background: #f01800; /* saffron */
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Main content */
.main-content {
    padding: 20px 0 40px;
    flex: 1;
}

/* Two-column layout: content + sidebar */
.layout-two-col {
    display: flex;
    gap: 20px;
}

.content-area {
    flex: 1;
    min-width: 0;
}

/* Hero section */
.hero {
    background: #ffffff;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.hero-text {
    flex: 2;
}

.hero-text h2 {
    font-size: 22px;
    color: #0b4f8b;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 14px;
    color: #444;
}

.hero-side {
    flex: 1.2;
}

.highlight-box {
    background: #f8f3e6;
    border-left: 4px solid #f0a500;
    padding: 12px;
    border-radius: 4px;
}

.highlight-box h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #a95c00;
}

.highlight-box p {
    font-size: 14px;
}

/* Info grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.info-card {
    background: #ffffff;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.info-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #0b4f8b;
}

.info-card p {
    font-size: 14px;
    color: #444;
}

/* Inner page */
.inner-page h2 {
    font-size: 20px;
    color: #0b4f8b;
    margin-bottom: 10px;
}

.inner-page p {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
}

.inner-page ul {
    margin-top: 6px;
    margin-bottom: 10px;
}

.inner-page ul li {
    margin-bottom: 6px;      /* bullets के बीच gap */
    line-height: 1.5;
}


/* Right sidebar */
.sidebar-latest {
    width: 280px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 12px 14px;
    align-self: flex-start;
    position: sticky;
    top: 100px;
}

.sidebar-latest h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #0b4f8b;
    border-bottom: 1px solid #e0e4ec;
    padding-bottom: 6px;
}

.latest-list {
    list-style: none;
    margin-top: 8px;
}

.latest-list li {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e0e0e0;
}

.latest-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.latest-list a {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #004f8b;
    margin-bottom: 2px;
}

.latest-desc {
    display: block;
    font-size: 12px;
    color: #666;
}

/* Footer */
.site-footer {
    background: #002744;
    color: #fff;
    margin-top: auto;
    padding-top: 20px;
}

.footer-top {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
}

.footer-column {
    flex: 1;
    font-size: 13px;
}

.footer-column h4 {
    font-size: 14px;
    margin-bottom: 6px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 4px;
}

.footer-column a {
    color: #e0e7ff;
    font-size: 13px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 10px;
    padding: 8px 0;
    font-size: 12px;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===========================================
   RESPONSIVE BREAKPOINTS
============================================= */

/* Tablet */
@media (max-width: 900px) {
    .header-flex {
        flex-direction: column;
        text-align: center;
    }

    .header-right {
        margin-top: 8px;
    }

    .hero {
        flex-direction: column;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .layout-two-col {
        flex-direction: column;
        gap: 15px;
    }

    .sidebar-latest {
        width: 100% !important;
        max-width: none;
        position: static !important;
        top: auto;
        align-self: stretch;
        margin-top: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .latest-list li {
        margin-bottom: 12px;
        padding: 12px 0;
        border-bottom: 1px solid #e0e0e0;
    }

    .latest-list a {
        font-size: 15px;
        line-height: 1.3;
    }

    .latest-desc {
        font-size: 13px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .header-left .emblem {
        height: 60px;
    }
}

/* Mobile Navigation + Dropdown */
@media (max-width: 700px) {

    .nav-toggle {
        display: flex !important;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 102;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        background: #0b4f8b;
        flex-direction: column;
        box-shadow: 0 4px 20px rgba(0,0,0,0.4);
        z-index: 101;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-menu.open {
        display: flex !important;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu > li > a {
        padding: 18px 20px;
        font-size: 16px;
        font-weight: 500;
        color: #ffffff !important;
        justify-content: space-between;
    }

    /* Mobile dropdown container */
    .has-dropdown .dropdown {
        display: none;
        position: static !important;
        width: 100%;
        background: rgba(11, 79, 139, 0.95);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
        margin: 0;
    }

    .has-dropdown.open .dropdown {
        display: block !important;
    }

    .has-dropdown .dropdown li a {
        color: #ffffff !important;
        padding: 12px 40px;
        font-size: 15px;
        background: rgba(0,0,0,0.1);
    }

    .has-dropdown .dropdown li a:hover {
        background: rgba(255,255,255,0.2);
        color: #ffffff !important;
    }

    /* Arrow icon for parent */
    .has-dropdown > a::after {
        content: "▼";
        margin-left: 8px;
        font-size: 12px;
        transition: transform 0.3s;
        color: #ffffff;
    }

    .has-dropdown.open > a::after {
        transform: rotate(180deg);
    }

    /* Hamburger animation (optional, if JS side uses .open on menu) */
    .nav-menu.open ~ .nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-menu.open ~ .nav-toggle span:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }

    .nav-menu.open ~ .nav-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .sidebar-latest {
        padding: 15px;
    }

    .sidebar-latest h3 {
        font-size: 17px;
    }

    .hero {
        padding: 15px;
    }
}

/* Desktop only */
@media (min-width: 701px) {
    .nav-menu {
        display: flex !important;
    }

    .nav-toggle {
        display: none !important;
    }

    .has-dropdown:hover .dropdown {
        display: block;
    }
}
/* HFRH Calculator form */
.hfrh-form {
    background: #ffffff;
    border-radius: 4px;
    padding: 15px 15px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-top: 10px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}

.form-group input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 3px;
    border: 1px solid #ccd2e0;
    font-size: 14px;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: #0b4f8b;
    box-shadow: 0 0 0 1px rgba(11,79,139,0.2);
}

.btn-primary {
    background: #0b4f8b;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #083760;
}

/* Result box */
.hfrh-result {
    background: #f8f9ff;
    border-left: 4px solid #0b4f8b;
    padding: 12px 14px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.hfrh-result h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: #0b4f8b;
}

.hfrh-result p {
    font-size: 14px;
    margin-bottom: 4px;
}

/* Info box */
.hfrh-info {
    background: #ffffff;
    border-radius: 4px;
    padding: 12px 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.hfrh-info h3 {
    font-size: 15px;
    margin-bottom: 6px;
    color: #0b4f8b;
}

.hfrh-info ul {
    list-style: disc;
    padding-left: 18px;
    font-size: 14px;
}

/* Alert */
.alert {
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.alert-warning {
    background: #fff8e5;
    border: 1px solid #f0c36d;
    color: #8a5a00;
}

/* Surrender / HFRH forms shared styles */
/* (पहले से hfrh-form, form-group, btn-primary, hfrh-result, hfrh-info दिए थे) */

.form-inline label {
    font-size: 14px;
    cursor: pointer;
}

.form-inline input[type="checkbox"] {
    margin-right: 6px;
}

/* Top DA/NPA info box */
.rate-info-box {
    background: #f0f4ff;
    border-left: 4px solid #0b4f8b;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    margin: 8px 0 10px;
}

.rate-info-box p {
    margin-bottom: 2px;
}
.arrear-table-container {
    overflow-x: auto;
}

.arrear-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.arrear-table th,
.arrear-table td {
    border: 1px solid #d8dfec;
    padding: 6px 8px;
    text-align: right;
}

.arrear-table th:first-child,
.arrear-table td:first-child {
    text-align: left;
}

.arrear-table thead {
    background: #0b4f8b;
    color: #ffffff;
}

.arrear-table tfoot {
    background: #f3f6fb;
    font-weight: 600;
}

.arrear-table input[type="number"] {
    width: 100%;
    padding: 4px 6px;
    font-size: 13px;
    border-radius: 3px;
    border: 1px solid #ccd2e0;
}

.arrear-table input[type="number"]:focus {
    outline: none;
    border-color: #0b4f8b;
    box-shadow: 0 0 0 1px rgba(11,79,139,0.2);
}
/* Common text/number inputs */
.hfrh-form input[type="text"],
.hfrh-form input[type="date"],
.hfrh-form input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 3px;
    border: 1px solid #ccd2e0;
    font-size: 14px;
}

.hfrh-form input[type="text"]:focus,
.hfrh-form input[type="date"]:focus,
.hfrh-form input[type="number"]:focus {
    outline: none;
    border-color: #0b4f8b;
    box-shadow: 0 0 0 1px rgba(11,79,139,0.2);
}
@media (min-width: 701px) {
    #arrear-step1-form .form-row {
        display: flex;
        gap: 15px;
    }
    #arrear-step1-form .form-row .form-group {
        flex: 1;
    }
}

