﻿/* Classic Government / RWA website styling */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Verdana, Geneva, Tahoma, "DejaVu Sans", sans-serif;
    font-size: 12px;
    color: #333;
    background: #e8eef3 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='4' height='4'><rect width='4' height='4' fill='%23e8eef3'/><rect width='1' height='1' fill='%23dde4ea'/></svg>");
}

a {
    color: #1f5fa8;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.gov-wrap {
    width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border-left: 1px solid #b8c7d6;
    border-right: 1px solid #b8c7d6;
    box-shadow: 0 0 12px rgba(0,0,0,.08);
}

/* Top bar */
.gov-top {
    background: #0b3d7a;
    color: #fff;
    font-size: 11px;
    padding: 4px 14px;
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #f08a1c;
}

    .gov-top a {
        color: #ffd99a;
    }

/* Header */
.gov-header {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(to bottom, #fafdff 0%, #e6eef7 100%);
    border-bottom: 1px solid #c9d4e0;
}

    .gov-header .crest {
        width: 78px;
        height: 78px;
        background: #0b3d7a;
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: Georgia, serif;
        font-size: 30px;
        font-weight: bold;
        border: 3px solid #f08a1c;
        margin-right: 18px;
    }

    .gov-header .titles {
        flex: 1;
    }

    .gov-header h1 {
        margin: 0;
        font-family: Georgia, "Times New Roman", serif;
        color: #0b3d7a;
        font-size: 26px;
        letter-spacing: .3px;
    }

    .gov-header .subtitle {
        color: #5a6b7d;
        font-size: 12px;
        margin-top: 2px;
    }

    .gov-header .hindi {
        color: #b9421a;
        font-size: 13px;
        margin-top: 1px;
        font-family: Georgia, serif;
    }

.gov-search input[type=text] {
    border: 1px solid #b8c7d6;
    padding: 4px 8px;
    width: 180px;
    font-size: 11px;
}

.gov-search button {
    background: #f08a1c;
    color: #fff;
    border: 0;
    padding: 5px 10px;
    font-size: 11px;
    cursor: pointer;
    font-weight: bold;
}

/* Primary nav */
.gov-nav {
    background: linear-gradient(to bottom, #1656a3 0%, #0b3d7a 100%);
    border-top: 1px solid #2a6dba;
    border-bottom: 3px solid #f08a1c;
}

    .gov-nav ul {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-wrap: wrap;
    }

    .gov-nav li {
        border-right: 1px solid #2a6dba;
    }

    .gov-nav a {
        display: block;
        color: #fff;
        font-weight: bold;
        font-size: 11.5px;
        padding: 9px 16px;
        text-transform: uppercase;
        letter-spacing: .4px;
    }

        .gov-nav a:hover, .gov-nav a.active {
            background: #f08a1c;
            color: #fff;
            text-decoration: none;
        }

/* Breadcrumb */
.gov-crumb {
    background: #f4f7fa;
    border-bottom: 1px solid #d6dee8;
    padding: 6px 14px;
    font-size: 11px;
    color: #5a6b7d;
}

    .gov-crumb a {
        color: #1f5fa8;
    }

/* Main layout */
.gov-main {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 14px;
    padding: 14px;
}

.gov-content {
    min-width: 0;
}

.gov-side > * + * {
    margin-top: 14px;
}

/* Banner / marquee */
.gov-banner {
    background: linear-gradient(135deg, #0b3d7a 0%, #1656a3 60%, #2a6dba 100%);
    color: #fff;
    padding: 22px 24px;
    border: 1px solid #0b3d7a;
    margin-bottom: 14px;
}

    .gov-banner h2 {
        margin: 0;
        font-family: Georgia, serif;
        font-size: 22px;
        font-weight: normal;
    }

    .gov-banner p {
        margin: 6px 0 0;
        font-size: 12px;
        color: #cfe0f5;
    }

.gov-marquee {
    background: #fff7e6;
    border: 1px solid #f0c98a;
    border-left: 4px solid #f08a1c;
    padding: 7px 12px;
    font-size: 11.5px;
    margin-bottom: 14px;
}

    .gov-marquee strong {
        color: #b9421a;
        margin-right: 8px;
    }

/* Section block */
.gov-section {
    border: 1px solid #c9d4e0;
    margin-bottom: 14px;
    background: #fff;
}

    .gov-section > h3 {
        margin: 0;
        background: linear-gradient(to bottom, #1656a3 0%, #0b3d7a 100%);
        color: #fff;
        font-size: 13px;
        padding: 7px 12px;
        font-family: Verdana, sans-serif;
        border-bottom: 2px solid #f08a1c;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .gov-section > h3 a {
            color: #ffd99a;
            font-size: 11px;
            font-weight: normal;
        }

    .gov-section .body {
        padding: 10px 12px;
    }

/* Tabs */
.gov-tabs {
    display: flex;
    border-bottom: 2px solid #0b3d7a;
    background: #eaf0f7;
}

    .gov-tabs .tab {
        padding: 7px 14px;
        font-size: 11.5px;
        font-weight: bold;
        color: #0b3d7a;
        border: 1px solid #c9d4e0;
        border-bottom: 0;
        background: #f4f7fa;
        margin-right: 2px;
    }

        .gov-tabs .tab.active {
            background: #0b3d7a;
            color: #fff;
            border-color: #0b3d7a;
        }

/* News/circular list */
ul.gov-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

    ul.gov-list li {
        padding: 7px 6px 7px 18px;
        border-bottom: 1px dashed #d6dee8;
        background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'><polygon points='0,0 8,5 0,10' fill='%23f08a1c'/></svg>") no-repeat 4px 11px;
        font-size: 12px;
    }

        ul.gov-list li:last-child {
            border-bottom: 0;
        }

    ul.gov-list .date {
        color: #b9421a;
        font-size: 10.5px;
        display: block;
        margin-top: 2px;
    }

    ul.gov-list .new {
        background: #d83b3b;
        color: #fff;
        font-size: 9px;
        font-weight: bold;
        padding: 1px 5px;
        margin-left: 6px;
        border-radius: 2px;
        text-transform: uppercase;
    }

/* Sidebar widgets */
.gov-widget {
    border: 1px solid #c9d4e0;
    background: #fff;
}

    .gov-widget h4 {
        margin: 0;
        background: #f08a1c;
        color: #fff;
        font-size: 12px;
        padding: 6px 10px;
        font-family: Verdana, sans-serif;
    }

    .gov-widget .body {
        padding: 10px;
        font-size: 11.5px;
    }

    .gov-widget ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

        .gov-widget ul li {
            padding: 5px 0 5px 14px;
            border-bottom: 1px dotted #d6dee8;
            background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8'><rect width='6' height='6' x='1' y='1' fill='%230b3d7a'/></svg>") no-repeat 0 9px;
        }

            .gov-widget ul li:last-child {
                border-bottom: 0;
            }

/* Quick links grid */
.gov-quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

    .gov-quick a {
        display: block;
        background: linear-gradient(to bottom, #fafdff, #e6eef7);
        border: 1px solid #c9d4e0;
        text-align: center;
        padding: 14px 6px;
        color: #0b3d7a;
        font-weight: bold;
        font-size: 11.5px;
    }

        .gov-quick a:hover {
            background: #f08a1c;
            color: #fff;
            border-color: #b9421a;
            text-decoration: none;
        }

        .gov-quick a .icon {
            display: block;
            font-size: 22px;
            margin-bottom: 4px;
        }

/* Tables */
table.gov-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
}

    table.gov-table th {
        background: #0b3d7a;
        color: #fff;
        padding: 6px 8px;
        text-align: left;
        border: 1px solid #0b3d7a;
    }

    table.gov-table td {
        padding: 6px 8px;
        border: 1px solid #c9d4e0;
    }

    table.gov-table tr:nth-child(even) td {
        background: #f4f7fa;
    }

/* Buttons / form */
.gov-btn {
    display: inline-block;
    background: linear-gradient(to bottom, #f08a1c, #c97312);
    color: #fff;
    border: 1px solid #a35d0e;
    padding: 6px 14px;
    font-weight: bold;
    font-size: 11.5px;
    cursor: pointer;
}

    .gov-btn:hover {
        text-decoration: none;
        background: #b9421a;
    }

    .gov-btn.alt {
        background: linear-gradient(to bottom, #1656a3, #0b3d7a);
        border-color: #0b3d7a;
    }

.gov-form label {
    display: block;
    margin: 8px 0 3px;
    font-weight: bold;
    color: #0b3d7a;
    font-size: 11.5px;
}

.gov-form input[type=text], .gov-form input[type=email], .gov-form input[type=password], .gov-form textarea, .gov-form select {
    width: 100%;
    border: 1px solid #b8c7d6;
    padding: 5px 7px;
    font-size: 12px;
    font-family: inherit;
    background: #fff;
}

/* Gallery */
.gov-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

    .gov-gallery figure {
        margin: 0;
        border: 1px solid #c9d4e0;
        padding: 4px;
        background: #fff;
    }

    .gov-gallery .thumb {
        aspect-ratio: 4/3;
    }

    .gov-gallery figcaption {
        font-size: 11px;
        text-align: center;
        padding: 4px 2px;
        color: #0b3d7a;
        font-weight: bold;
    }

/* Footer */
.gov-footer {
    background: #0b3d7a;
    color: #cfe0f5;
    padding: 14px 18px;
    font-size: 11px;
    border-top: 3px solid #f08a1c;
}

    .gov-footer a {
        color: #ffd99a;
    }

    .gov-footer .row {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .gov-footer .copy {
        background: #08305f;
        padding: 6px 18px;
        font-size: 10.5px;
        color: #9bb6d6;
        text-align: center;
    }

/* Misc */
.gov-eyebrow {
    display: inline-block;
    background: #f08a1c;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

h2.gov-page-title {
    font-family: Georgia, serif;
    color: #0b3d7a;
    font-size: 20px;
    margin: 0 0 4px;
    font-weight: normal;
    border-bottom: 2px solid #f08a1c;
    padding-bottom: 6px;
}

p.gov-lead {
    color: #5a6b7d;
    font-size: 12px;
    margin: 6px 0 14px;
}

@media (max-width: 1020px) {
    .gov-wrap {
        width: 100%;
    }

    .gov-main {
        grid-template-columns: 1fr;
    }

    .gov-quick {
        grid-template-columns: repeat(2, 1fr);
    }

    .gov-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Homepage banner carousel (Admin > CMS managed) */
.banner-carousel {
    position: relative;
    min-height: 220px;
}

.banner-slide {
    display: none;
    min-height: 220px;
    padding: 28px 32px;
    background: linear-gradient(120deg, #0b3d7a, #14539e);
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}

    .banner-slide.active {
        display: block;
    }

    .banner-slide .banner-overlay {
        max-width: 620px;
        background: rgba(11,61,122,0.55);
        padding: 14px 18px;
        border-radius: 4px;
    }

    .banner-slide h2 {
        margin: 6px 0;
        color: #fff;
    }

    .banner-slide p {
        color: #eaf0f7;
        margin: 0 0 12px;
    }

.banner-dots {
    position: absolute;
    bottom: 10px;
    right: 16px;
    display: flex;
    gap: 6px;
}

.banner-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    display: inline-block;
}

    .banner-dot.active {
        background: #fff;
    }

.gov-tabs .tab {
    cursor: pointer;
}
/* Notices & Circulars — expandable rows + attachment lightbox */
.notice-item {
    border-bottom: 1px solid #e3e9ef;
    padding: 10px 0;
}

.notice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

    .notice-row .date {
        font-size: 11px;
        color: #5a6b7d;
        margin-top: 2px;
    }

.notice-toggle {
    font-size: 11.5px;
    color: #0b3d7a;
    white-space: nowrap;
    margin-left: 12px;
}

.notice-detail {
    padding: 10px 4px 4px;
    font-size: 12.5px;
    color: #333;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox-box {
    position: relative;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    background: #0b3d7a;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}
/* Validation styling (added for EF/Identity-backed forms) */
.text-danger { color: #d83b3b; font-size: 11px; }
.validation-summary-errors { color: #d83b3b; font-size: 12px; margin-bottom: 8px; }
.field-validation-error { color: #d83b3b; font-size: 11px; display: block; }
input.input-validation-error, select.input-validation-error, textarea.input-validation-error { border-color: #d83b3b; }
