/* ========================================
   BPSC Contact Page - Modern Government Portal Styles
   Complete Production-Ready CSS
   ======================================== */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Government Blue Theme */
    --primary-blue: #0f3c75;
    --secondary-blue: #1a5aa3;
    --light-blue: #e8f0f8;
    --dark-blue: #0a2d54;
    --accent-gold: #c8a600;
    
    /* Colors */
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --text-color: #212121;
    --text-muted: #666666;
    
    /* Gradients */
    --sidebar-gradient: linear-gradient(180deg, #1a3a7a 0%, #0f2855 100%);
    --banner-gradient: linear-gradient(135deg, #0f3c75 0%, #1565c0 50%, #1a5aa3 100%);
    --card-gradient: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    --table-header-gradient: linear-gradient(135deg, #0f3c75 0%, #1565c0 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 8px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    
    /* Sidebar */
    --sidebar-width: 240px;
    --header-height: 100px;
}

/* Body & Layout */
body {
    font-family: 'Noto Sans', Arial, sans-serif;
    background-color: #ccd9ec;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* ========================================
   HEADER STYLES - Fixed full-width header at top
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #dde4f0;
    gap: 10px;
    min-height: var(--header-height);
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #333;
    padding: 4px 8px;
    z-index: 110;
}

.hdr-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.hdr-logo img {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px;
    max-height: 80px;
    object-fit: contain !important;
    object-position: center center;
}

.hdr-center {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.hdr-center h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.1;
    margin: 0;
}

.hdr-center p {
    font-size: 0.82rem;
    color: #555;
    margin-top: 3px;
}

.hdr-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.hdr-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-en-btn {
    background: #0d9488;
    color: #fff;
    border: none;
    padding: 3px 14px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.lang-en-btn:hover {
    opacity: 0.85;
}

.lang-hi-btn {
    background: transparent;
    color: #1565c0;
    border: 1px solid #1565c0;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    cursor: pointer;
}

.lang-hi-btn:hover,
.lang-hi-btn.active {
    background: #1565c0;
    color: #fff;
}

.social-row {
    display: flex;
    gap: 6px;
}

/* ========================================
   SIDEBAR - Fixed vertical below header with dark blue gradient
   ======================================== */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--sidebar-gradient);
    position: fixed;
    top: var(--header-height);
    left: 0;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    z-index: 50;
    padding-top: 0;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list > li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-link,
.nav-drop {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 15px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.92);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-link:hover,
.nav-drop:hover {
    background: #2255b8;
    color: #fff;
}

.nav-list > li.is-active > .nav-link {
    background: #2a6ada;
    color: #fff;
    font-weight: 600;
    border-left: 3px solid var(--accent-gold);
}

.nav-icon-img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.arr {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.2s;
    opacity: 0.7;
}

li.open > .nav-drop .arr {
    transform: rotate(180deg);
}

.sub-menu {
    background: rgba(0,0,0,0.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

li.open > .sub-menu {
    max-height: 400px;
}

.sub-menu li {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sub-menu li a {
    display: block;
    padding: 10px 15px 10px 45px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.82);
    transition: all 0.2s;
    text-decoration: none;
}

.sub-menu li a:hover {
    background: #2255b8;
    color: #fff;
}

/* ========================================
   PAGE WRAP & MAIN CONTENT - Properly positioned below header and right of sidebar
   ======================================== */
.page-wrap {
    display: flex;
    max-width: 100%;
    min-height: calc(100vh - var(--header-height));
    background: #c8d8ec;
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
}

.main-col {
    flex: 1;
    min-width: 0;
    background: #f0f4f8;
    display: flex;
    flex-direction: column;
}

/* ========================================
   PAGE BANNER - Full-width gradient for Contact Us
   ======================================== */
.page-banner {
    background: var(--banner-gradient);
    padding: 30px 25px;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    pointer-events: none;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), #ffd700, var(--accent-gold));
}

.page-banner h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: #fff;
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 25px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
    background: transparent;
    border-bottom: none;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ========================================
   CONTACT CARD - Soft shadow with icons and dividers
   ======================================== */
.contact-card {
    background: var(--card-gradient);
    border-radius: 8px;
    padding: 25px;
    margin: 20px 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid #e0e8f0;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #0f3c75, #1565c0);
}

.contact-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5px;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #0f3c75, transparent);
}

.contact-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f3c75;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e8f0;
    position: relative;
}

.contact-card h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-gold);
}

.contact-card p {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.contact-card p::before {
    content: '📍';
    font-size: 0.9rem;
}

.contact-card p:nth-child(2)::before {
    content: '📍';
}

.contact-card p:nth-child(3)::before {
    content: '📞';
}

.contact-card p:nth-child(4)::before {
    content: '💻';
}

.contact-card p:nth-child(5)::before {
    content: '✉️';
}

.contact-card strong {
    color: #0f3c75;
    font-weight: 600;
}

/* ========================================
   SECTION TITLES
   ======================================== */
.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f3c75;
    margin: 25px 25px 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1565c0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-gold);
}

/* ========================================
   DATA TABLE - Professional styled with blue header
   ======================================== */
.data-table {
    width: calc(100% - 50px);
    margin: 0 25px 25px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e0e8f0;
}

.data-table thead tr {
    background: var(--table-header-gradient);
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: none;
}

.data-table th:first-child {
    border-top-left-radius: 8px;
}

.data-table th:last-child {
    border-top-right-radius: 8px;
}

.data-table td {
    padding: 14px 16px;
    font-size: 0.85rem;
    color: #333;
    border-bottom: 1px solid #e8f0f8;
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.data-table tbody tr:hover {
    background: #e8f0f8;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   MOBILE OVERLAY
   ======================================== */
.mob-ov {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
}

.mob-ov.open {
    display: block;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 200px;
        --header-height: 95px;
    }
    
    .sidebar {
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
    }
    
    .page-wrap {
        margin-left: var(--sidebar-width);
        margin-top: var(--header-height);
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
        --header-height: 85px;
    }
    
    .site-header {
        margin-left: 0;
    }
    
    .page-wrap {
        margin-left: 0;
        margin-top: var(--header-height);
    }
    
    .sidebar {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 260px;
        height: calc(100vh - var(--header-height));
        z-index: 100;
        padding-top: 20px;
    }
    
    .sidebar.mob-open {
        display: block;
    }
    
    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: #f0f0f0;
        border-radius: 4px;
    }
    
    .mob-ov {
        display: none;
    }
    
    .mob-ov.open {
        display: block;
    }
    
    .contact-card {
        margin: 15px;
        padding: 18px;
    }
    
    .data-table {
        margin: 0 15px 15px;
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }
    
    .section-title {
        margin: 15px 15px 10px;
        font-size: 1.1rem;
    }
    
    .page-banner {
        padding: 25px 15px;
    }
    
    .page-banner h2 {
        font-size: 1.5rem;
    }
    
    .hdr-center h1 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .contact-card {
        margin: 10px;
        padding: 15px;
    }
    
    .data-table {
        margin: 0 10px 10px;
    }
    
    .section-title {
        margin: 10px 10px 8px;
        font-size: 1rem;
    }
    
    .page-banner h2 {
        font-size: 1.3rem;
    }
    
    .breadcrumb {
        font-size: 0.7rem;
        padding: 8px 15px;
    }
    
    .hdr-logo {
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }
    
    .hdr-logo img {
        width: 60px !important;
        height: 60px !important;
        max-width: 60px;
        max-height: 60px;
    }
    
    .hdr-center h1 {
        font-size: 1rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .site-header {
        position: static;
        margin-left: 0;
    }
    
    .sidebar,
    .hamburger,
    .mob-ov {
        display: none !important;
    }
    
    .page-wrap {
        margin-left: 0;
        margin-top: 0;
        display: block;
    }
    
    .main-col {
        width: 100%;
    }
    
    .data-table {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
