@import url('https://fonts.googleapis.com/css2?family=Tiro+Devanagari+Hindi:ital@0;1&display=swap');

/* ==========================================================================
   NAGAR PALIKA PARISHAD MOHAMMADI - KHERI
   Master UI/UX Design System & Motion Palette
   ========================================================================== */

:root {
  /* ================================================================
     ENTERPRISE EXECUTIVE CIVIC GOVERNMENT DESIGN TOKEN SYSTEM
     Palette: #B87B5C (Copper), #A3B18A (Sage), #90A180 (Olive Sage), #BDAF7F (Khaki Gold), #FFA726 (Amber)
     ================================================================ */
  --brand-copper:      #B87B5C; /* Header gradient start & primary CTAs */
  --brand-sage-light:  #A3B18A; /* Soft sage highlights & badges */
  --brand-sage-muted:  #90A180; /* Muted olive growth indicators */
  --brand-khaki:       #BDAF7F; /* Card borders, dividers, subtitles, soft tints */
  --brand-amber:       #FFA726; /* Warning alerts, notification icons, warm highlights */

  /* Sidebar Warm Cream Tokens (Matching Screenshot 1) */
  --sidebar-bg:        #FFF2DF; /* Warm cream sidebar canvas */
  --sidebar-border:    #E6C5A9; /* Warm border divider */
  --sidebar-active-bg: #FFE8D6; /* Soft warm peach active item highlight */
  --sidebar-text:      #4A2F1D; /* Warm dark brown text */

  --ink-900:        #251815; /* Primary high-contrast text */
  --navy-700:       #382621; /* Dark header gradient stop */
  --saffron-600:    #B87B5C; /* Brand primary copper accent */
  --emerald-600:    #90A180; /* Success indicators */
  --surface-0:      #FFFFFF; /* Pure card surfaces */
  --surface-50:     #F8F7F4; /* Warm executive canvas background */
  --border-200:     #BDAF7F; /* Khaki Gold borders */
  --text-muted:     #6B5E59; /* Muted secondary labels */

  /* Legacy Mappings mapped cleanly to enterprise palette */
  --color-primary:      #B87B5C;
  --color-primary-dark: #382621;
  --color-secondary:    #6B5E59;
  --color-border:       var(--border-200);
  --color-text-muted:   var(--text-muted);
  --color-accent-gold:  #BDAF7F;
  --color-surface:      #F4F2EB;
  --color-bg:           var(--surface-50);
  --color-text-strong:  var(--ink-900);
  --color-white:        var(--surface-0);

  --primary-dark:       #B87B5C;
  --primary-darker:     #382621;
  --accent-warm:        #B87B5C;
  --accent-warm-hover:  #A26A4D;
  --accent-soft:        var(--border-200);
  --secondary:          var(--text-muted);
  --accent:             #FFA726;
  --light-accent:       #F4F2EB;
  --bg-main:            var(--surface-50);
  --bg-card:            var(--surface-0);
  --text-dark:          var(--ink-900);

  /* Shadows & Radius Tokens */
  --shadow-sm: 0 1px 3px rgba(56, 38, 33, 0.06), 0 1px 2px rgba(56, 38, 33, 0.04);
  --shadow-md: 0 4px 12px rgba(56, 38, 33, 0.08);
  --shadow-lg: 0 10px 25px rgba(56, 38, 33, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box !important;
}

html {
    scroll-behavior: smooth !important;
}

#main-content,
.main-portal-content {
    scroll-margin-top: 60px;
    outline: none;
}

body, html, p, div, h1, h2, h3, h4, h5, h6, a, span, label, input, select, textarea, button, table, td, th, li, ol, ul, blockquote, form, .card, .btn, .nav-link, .dropdown-item, .pcoded-mtext, .admin-main-title, .admin-sub-title {
    font-family: 'Tiro Devanagari Hindi', 'Hind', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body {
    background-color: var(--surface-50);
    color: var(--ink-900);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   KEYFRAME ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes cardFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(211, 163, 118, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(211, 163, 118, 0); }
    100% { box-shadow: 0 0 0 0 rgba(211, 163, 118, 0); }
}

.fade-in-up {
    animation: fadeInUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* --------------------------------------------------------------------------
   1. TOP ACCESSIBILITY HEADER BAR (.top_head)
   -------------------------------------------------------------------------- */
.top_head {
    background-color: var(--primary-darker);
    color: #FFFFFF;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 2px solid var(--accent);
}

.top_head_container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tophead_left {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.top-govern {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tophead_right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.font-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 3px 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.font-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    border: none;
    border-radius: 6px;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
    line-height: 1;
    letter-spacing: -0.5px;
}

.font-btn sup {
    font-size: 0.55em;
    font-family: inherit;
    font-weight: 900;
    line-height: 1;
}

/* Small A- */
.font-btn-sm {
    font-size: 10px;
    width: 24px;
    height: 24px;
    padding: 0 2px;
}

/* Medium A (default, largest) */
.font-btn-md {
    font-size: 15px;
    width: 28px;
    height: 28px;
    padding: 0;
    color: #FFFFFF;
}

/* Large A+ */
.font-btn-lg {
    font-size: 12px;
    width: 26px;
    height: 26px;
    padding: 0 2px;
}

/* Active/default state highlight */
.font-btn-active {
    background: rgba(255, 153, 51, 0.3);
    color: #FFE0A0 !important;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(255, 153, 51, 0.45) inset;
}

.font-btn:hover {
    background: rgba(255, 153, 51, 0.35);
    color: #FFFFFF !important;
    transform: scale(1.08);
}

.font-btn:active {
    transform: scale(0.95);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    color: var(--light-accent);
    font-size: 14px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
    transform: scale(1.15);
}

.skip-content a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    white-space: nowrap;
}

.skip-content a:hover,
.skip-content a:focus {
    background: var(--accent);
    color: var(--primary-darker);
    border-color: var(--accent);
}

.skip-text-short {
    display: none;
}

.skip-text-full {
    display: inline;
}

/* --------------------------------------------------------------------------
   2. MAIN BRANDING HEADER & 2ND REFERENCE IMAGE LAYOUT
   -------------------------------------------------------------------------- */
.header-wrapper {
    background: #FFFDF9;
    padding: 10px 0;
    border-top: 3px solid var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
    box-shadow: 0 4px 16px rgba(212, 102, 12, 0.08);
}

.header-container-grid {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

@media (min-width: 769px) {
    .header-container-grid::after {
        display: none !important;
    }
}

/* Yogi CM Portrait style */
.cm-portrait-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    width: 110px;
    transition: var(--transition);
}

.cm-portrait-badge:hover {
    transform: scale(1.04);
}

.cm-photo-wrapper {
    width: 82px;
    height: 90px;
    border-radius: var(--radius-sm);
    border: 2px solid #FFE0B2;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(212, 102, 12, 0.15);
    background: #FFFFFF;
}

.cm-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cm-details {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.cm-name {
    font-size: 13.5px !important;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}

.cm-post {
    font-size: 11px !important;
    font-weight: 600;
    color: var(--color-text-strong);
    white-space: nowrap;
}

/* Circular Emblem Badges (Left & Right of Title) */
.emblem-circle-badge {
    width: 110px;
    height: 110px;
    border-radius: 50% !important;
    background: #FFFFFF;
    border: 2.5px solid #FFE0B2;
    box-shadow: 0 6px 20px rgba(212, 102, 12, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 6px;
    transition: var(--transition);
    overflow: hidden !important;
}

.emblem-circle-badge:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(212, 102, 12, 0.28);
}

.emblem-circle-img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: block !important;
}

/* Center Municipal Branding Title */
.center-brand-block {
    text-align: center;
    flex-grow: 1;
    padding: 0 10px;
}

.brand-link {
    text-decoration: none;
}

.municipal-main-title {
    font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.75rem);
    font-weight: 900;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.25;
    letter-spacing: 0.6px;
    text-shadow: 0 2px 4px rgba(212, 102, 12, 0.18);
}

.state-sub-title {
    font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.625rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 4px;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 2px rgba(212, 102, 12, 0.12);
    transition: var(--transition);
}

.brand-link:hover .state-sub-title {
    color: var(--color-primary-dark);
}

.header-badges {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-badges img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

/* --------------------------------------------------------------------------
   3. MEGA NAVIGATION MENU (.super-menu)
   -------------------------------------------------------------------------- */
.super-menu {
    background: linear-gradient(90deg, #A85A18 0%, #D4660C 60%, #E89038 100%);
    box-shadow: 0 4px 14px rgba(212, 102, 12, 0.35);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

.mobile-nav-bar {
    display: none !important;
}

.nav-ul {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.nav-item {
    position: relative;
    flex: 1;
    text-align: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 8px;
    margin: 4px 0;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(0, 0, 0, 0.22);
    color: #FFFFFF;
}

.nav-link i {
    margin-right: 6px;
    color: #FFFFFF;
}

.dropdown-menu-custom {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #FFFFFF;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--accent);
    padding: 8px 0;
    list-style: none;
    z-index: 1100;
    animation: fadeInUp 0.25s ease;
    text-align: left !important;
}

.nav-item:hover .dropdown-menu-custom {
    display: block;
}

/* Align rightmost dropdowns inward to prevent screen overflow */
.nav-item:last-child .dropdown-menu-custom,
.nav-item:nth-last-child(2) .dropdown-menu-custom {
    left: auto !important;
    right: 0 !important;
}

.dropdown-item-custom {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    padding: 11px 20px !important;
    color: var(--text-dark) !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
    border-bottom: 1px solid #F6F1EA !important;
}

.dropdown-item-custom:last-child {
    border-bottom: none !important;
}

.dropdown-item-custom:hover {
    background-color: var(--bg-main) !important;
    color: var(--primary-dark) !important;
    padding-left: 24px !important;
}

.dropdown-item-custom i {
    color: var(--secondary) !important;
    width: 20px !important;
    margin-right: 10px !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 22px;
    padding: 12px 15px;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   4. MARQUEE ANNOUNCEMENT TICKER (.ticker-wrap)
   -------------------------------------------------------------------------- */
.ticker-wrap {
    background: linear-gradient(135deg, #D4660C 0%, #A85A18 100%) !important;
    border-bottom: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
}

.ticker-label {
    background: #A85A18 !important;
    color: #FFFFFF !important;
    padding: 10px 20px;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 3px 0 8px rgba(0, 0, 0, 0.2);
}

.ticker-label i {
    color: #FFFFFF !important;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
}

.ticker-items {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 35s linear infinite;
}

.ticker-items:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 25px;
    color: #FFFFFF !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ticker-item i {
    color: #FFE0B2 !important;
}

.ticker-item:hover {
    color: #FFE0B2 !important;
    text-decoration: underline;
}

.new-badge {
    background: #C55D07 !important;
    color: #FFFFFF !important;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    border: 1px solid #FFFFFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    animation: pulseGlow 1.8s infinite;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --------------------------------------------------------------------------
   5. BREADCRUMB SECTION (.gov-breadcrumb-bar)
   -------------------------------------------------------------------------- */
.gov-breadcrumb-bar {
    background: var(--light-accent);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.gov-breadcrumb-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumb-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-list li a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-list li a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-list li.separator {
    color: var(--secondary);
}

.breadcrumb-list li.active {
    color: var(--primary-dark);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. HERO SLIDER CAROUSEL (.hero-slider-section) - RESPONSIVE NATURAL ASPECT SYSTEM
   -------------------------------------------------------------------------- */
.hero-slider-section {
    position: relative;
    background: #0B0F19;
    width: 100%;
    overflow: hidden;
}

.hero-slide-item {
    position: relative;
    width: 100%;
    height: 520px !important;
    min-height: 520px !important;
    max-height: 520px !important;
    display: block !important;
    background: #0B0F19;
    overflow: hidden;
}

.hero-slide-bg-blur {
    display: none !important;
}

.hero-slide-item img,
.hero-slide-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-height: 100% !important;
    display: block !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.hero-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    padding: 60px 20px 24px 20px;
    color: #FFFFFF;
}

.hero-slide-overlay h2 {
    font-size: clamp(1.4rem, 1rem + 1.5vw, 2.2rem);
    font-weight: 900;
    margin: 0 0 8px 0;
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-slide-overlay p {
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
    margin: 0;
    max-width: 850px;
    color: #FFFFFF !important;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* --------------------------------------------------------------------------
   7. SERVICES & CARDS
   -------------------------------------------------------------------------- */
.services-section {
    padding: 50px 0;
    background: var(--bg-main);
}

.section-heading {
    text-align: center;
    margin-bottom: 35px;
}

.section-heading h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 8px 0;
}

.section-heading p {
    font-size: 16px;
    color: var(--secondary);
    margin: 0;
}

.heading-divider {
    width: 75px;
    height: 4px;
    background: var(--accent);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.service-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 26px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.service-icon {
    width: 68px;
    height: 68px;
    background: var(--light-accent);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-dark);
    color: var(--accent);
}

.service-title {
    font-size: 19px;
    font-weight: 800;
    color: #333333;
    margin: 0 0 10px 0;
}

.service-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-gov {
    background: #333333;
    color: #FFFFFF;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
    transition: var(--transition);
    border: 1px solid #333333;
    cursor: pointer;
}

.btn-gov:hover {
    background: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(203, 111, 74, 0.35);
}

.btn-gov-secondary {
    background: #333333;
    color: #FFFFFF;
    border-color: #333333;
}

.btn-gov-secondary:hover {
    background: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
}

.btn-gov-warm {
    background: #333333;
    color: #FFFFFF;
    border: 1px solid #333333;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
}

.btn-gov-warm:hover {
    background: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(203, 111, 74, 0.35);
}

.btn-gov-rust {
    background: #333333;
    color: #FFFFFF;
    border-color: #333333;
}

.btn-gov-rust:hover {
    background: var(--color-primary);
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   8. LEADERSHIP & OFFICIALS SECTION (.leaders-section)
   -------------------------------------------------------------------------- */
.leaders-section {
    padding: 50px 0;
    background: #FFFFFF;
}

.leader-card {
    background: var(--bg-main);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.leader-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.leader-img-wrapper {
    width: 100%;
    height: 270px;
    background: #FFF9F2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.leader-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain !important;
    object-position: center !important;
    transition: var(--transition);
    border-radius: 6px;
}

.leader-card:hover .leader-img-wrapper img {
    transform: scale(1.03);
}

.leader-info {
    padding: 18px;
}

.leader-name {
    font-size: 19px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 4px 0;
}

.leader-designation {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 10px 0;
}

/* --------------------------------------------------------------------------
   9. NOTICES, TENDERS & BUDGETS CARDS
   -------------------------------------------------------------------------- */
.notice-board-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
}

.notice-board-header {
    background: var(--primary-dark);
    color: var(--accent);
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notice-board-body {
    padding: 0;
    max-height: 380px;
    overflow-y: auto;
}

.notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notice-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: var(--transition);
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    background-color: var(--bg-main);
}

.notice-icon {
    color: var(--accent);
    font-size: 18px;
    margin-top: 2px;
}

.notice-title-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    display: block;
}

.notice-title-text:hover {
    color: var(--secondary);
}

.notice-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --------------------------------------------------------------------------
   10. GALLERY SHOWCASE (.gallery-grid)
   -------------------------------------------------------------------------- */
.gallery-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 210px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(212, 102, 12, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: var(--accent);
    font-size: 26px;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   11. GOVERNMENT FOOTER (.gov-footer)
   -------------------------------------------------------------------------- */
.gov-footer {
    background: var(--primary-darker);
    color: var(--light-accent);
    padding: 55px 0 24px 0;
    font-size: 16px !important;
    border-top: 4px solid var(--accent);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-title {
    color: #FFFFFF;
    font-size: 21px !important;
    font-weight: 800;
    margin: 0 0 18px 0;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-accent);
    text-decoration: none;
    font-size: 16px !important;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(211, 163, 118, 0.25);
    margin-top: 40px;
    padding-top: 22px;
    text-align: center;
    font-size: 15px !important;
    color: #FFFFFF !important;
}

.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 46px;
    height: 46px;
    background: var(--accent);
    color: var(--primary-darker);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    text-decoration: none;
    z-index: 999;
    transition: var(--transition);
    border: none;
}

.scroll-top-btn:hover {
    background: var(--primary-dark);
    color: var(--accent);
    transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   12. ADMIN PANEL DESIGN SYSTEM — LOCKED CLAUDE COLOR SYSTEM
   -------------------------------------------------------------------------- */

/* TOP HEADER NAVBAR (SOLID FIXED NON-TRANSPARENT CONTAINER) */
.pcoded .pcoded-header,
.pcoded-header {
    background-color: #FFF2DF !important;
    background: #FFF2DF !important;
    border-bottom: 1px solid var(--color-border) !important;
    box-shadow: 0 2px 10px rgba(74, 47, 29, 0.08) !important;
    height: 60px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1040 !important;
}

.pcoded-header .navbar-wrapper,
.pcoded-header .navbar-container {
    background-color: #FFF2DF !important;
    background: #FFF2DF !important;
}

/* LEFT LOGO BRANDING ZONE */
.pcoded-header .navbar-logo {
    background: #FFF2DF !important;
    background-color: #FFF2DF !important;
    border-right: 1px solid var(--color-border) !important;
    padding: 0 16px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.pcoded-header .mobile-menu i,
.pcoded-header .mobile-options i,
.pcoded-header .navbar-logo i {
    color: var(--color-primary) !important;
    font-size: 18px !important;
}

.pcoded-header .nav-left li a i {
    color: var(--color-text-strong) !important;
    font-size: 18px !important;
    transition: color 0.2s ease;
}

.pcoded-header .nav-left li a:hover i {
    color: var(--color-primary) !important;
}

/* CENTER TITLE & MOTION ZONE */
.admin-header-center-title {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    max-width: 520px;
}

.admin-header-title-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    background: linear-gradient(135deg, rgba(212, 102, 12, 0.08) 0%, rgba(255, 224, 178, 0.6) 50%, rgba(203, 111, 74, 0.08) 100%);
    border: 1px solid var(--color-border);
    border-radius: 30px;
    box-shadow: 0 2px 6px rgba(74, 47, 29, 0.05);
    animation: titleGentleFloat 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.admin-header-title-text {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--color-text-strong);
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.admin-header-title-pill i {
    color: var(--color-primary);
    font-size: 15px;
}

.admin-header-title-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
    animation: textShimmerPass 6s infinite;
}

@keyframes titleGentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes textShimmerPass {
    0%, 65% { left: -100%; }
    100% { left: 200%; }
}

/* RIGHT USER PROFILE DROPDOWN ZONE IN TOP HEADER */
.pcoded-header .navbar-container {
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    padding: 0 20px !important;
    margin: 0 !important;
    float: none !important;
    z-index: 1030 !important;
}

.pcoded-header .nav-right {
    display: flex !important;
    align-items: center !important;
    height: 60px !important;
    margin-left: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    float: none !important;
    list-style: none !important;
    z-index: 1035 !important;
}

.pcoded-header .user-profile {
    display: flex !important;
    align-items: center !important;
    height: 60px !important;
    position: relative !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.pcoded-header .user-profile > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 38px !important;
    padding: 4px 14px !important;
    border-radius: 30px !important;
    background: #FFE0B2 !important;
    border: 1px solid var(--color-border) !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(74, 47, 29, 0.12) !important;
    position: relative !important;
    top: 0 !important;
    margin: 0 !important;
}

.pcoded-header .user-profile > a:hover {
    background: var(--color-surface) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 3px 10px rgba(212, 102, 12, 0.2) !important;
}

.pcoded-header .user-profile img {
    border: 2px solid var(--color-primary) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
}

.pcoded-header .user-profile span {
    color: var(--color-text-strong) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

.pcoded-header .user-profile i {
    color: var(--color-text-muted) !important;
}

.pcoded-header .profile-notification {
    background: var(--color-white) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(74, 47, 29, 0.15) !important;
    overflow: hidden !important;
}

.pcoded-header .profile-notification li a {
    color: var(--color-text-strong) !important;
    font-weight: 600 !important;
    padding: 10px 18px !important;
    transition: all 0.2s ease !important;
}

.pcoded-header .profile-notification li a:hover {
    background-color: var(--color-surface) !important;
    color: var(--color-primary) !important;
}

/* ABSOLUTE GREEN COLOR GRADIENT ELIMINATION - HIGH-SPECIFICITY OVERRIDES */
.pcoded,
.pcoded *,
.pcoded-navbar,
.pcoded-navbar *,
.pcoded-item,
.pcoded-item *,
.pcoded-submenu,
.pcoded-submenu *,
.pcoded-hasmenu > a,
.pcoded-hasmenu.pcoded-trigger > a,
.pcoded-hasmenu.active > a,
.pcoded-navbar .pcoded-item > li > a,
.pcoded-navbar .pcoded-item > li.active > a,
.pcoded-navbar .pcoded-item > li.pcoded-trigger > a,
.pcoded[theme-layout="vertical"] .pcoded-navbar .pcoded-item > li.active > a,
.pcoded[theme-layout="vertical"] .pcoded-navbar .pcoded-item > li.pcoded-trigger > a,
.pcoded[theme-layout="vertical"] .pcoded-navbar .pcoded-item > li > a:hover,
.pcoded[theme-layout="vertical"][vertical-placement="left"][vertical-layout="wide"] .pcoded-navbar .pcoded-item > li.active > a,
.pcoded[theme-layout="vertical"][vertical-placement="left"][vertical-layout="wide"] .pcoded-navbar .pcoded-item > li.pcoded-trigger > a,
.pcoded[theme-layout="vertical"][vertical-placement="left"][vertical-layout="wide"] .pcoded-navbar .pcoded-item > li > a:hover {
    background-image: none !important;
}

/* FORCED WARM CREAM SURFACE ACTIVE & HOVER STATES (MATCHING SCREENSHOT 1) */
.pcoded .pcoded-navbar .pcoded-item > li.active > a,
.pcoded .pcoded-navbar .pcoded-item > li.pcoded-trigger > a,
.pcoded[theme-layout="vertical"] .pcoded-navbar .pcoded-item > li.active > a,
.pcoded[theme-layout="vertical"] .pcoded-navbar .pcoded-item > li.pcoded-trigger > a,
.pcoded[theme-layout="vertical"][vertical-placement="left"][vertical-layout="wide"] .pcoded-navbar .pcoded-item > li.active > a,
.pcoded[theme-layout="vertical"][vertical-placement="left"][vertical-layout="wide"] .pcoded-navbar .pcoded-item > li.pcoded-trigger > a {
    background: #FFE8D6 !important;
    background-color: #FFE8D6 !important;
    background-image: none !important;
    color: #4A2F1D !important;
    border-left: 4px solid #B87B5C !important;
    box-shadow: 0 2px 8px rgba(184, 123, 92, 0.15) !important;
}

.pcoded .pcoded-navbar .pcoded-item > li.active > a .pcoded-mtext,
.pcoded .pcoded-navbar .pcoded-item > li.pcoded-trigger > a .pcoded-mtext,
.pcoded[theme-layout="vertical"] .pcoded-navbar .pcoded-item > li.active > a .pcoded-mtext,
.pcoded[theme-layout="vertical"] .pcoded-navbar .pcoded-item > li.pcoded-trigger > a .pcoded-mtext {
    color: #4A2F1D !important;
    font-weight: 800 !important;
}

/* ==========================================================================
   PERMANENT ENTERPRISE ADMIN MOBILE & DESKTOP HEADER SYSTEM (IMAGE 2 & 3)
   ========================================================================== */

.pcoded-header,
nav.header-navbar.pcoded-header {
    background: linear-gradient(135deg, #B87B5C 0%, #382621 100%) !important;
    background-color: #B87B5C !important;
    border-bottom: 3px solid #BDAF7F !important;
    height: 68px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 100000 !important;
    box-shadow: 0 3px 14px rgba(56, 38, 33, 0.25) !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
}

.admin-custom-topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 100% !important;
    padding: 4px 12px !important;
}

.admin-mobile-toggle-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 38px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1.5px solid #BDAF7F !important;
    border-radius: 8px !important;
    color: #FFFFFF !important;
    font-size: 19px !important;
    cursor: pointer !important;
    transition: background 200ms ease, transform 150ms ease !important;
    z-index: 100001 !important;
}

.admin-mobile-toggle-btn:hover,
.admin-mobile-toggle-btn:active {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.04) !important;
}

/* Grand Admin Header Title & Subtitle Styling */
.admin-header-title-text {
    color: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    text-align: center !important;
    flex-grow: 1 !important;
    padding: 0 10px !important;
}

.admin-header-icon {
    color: #FFA726 !important;
    font-size: 26px !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)) !important;
    flex-shrink: 0 !important;
}

.admin-header-title-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.25 !important;
}

.admin-main-title {
    color: #FFFFFF !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    font-family: 'Hind', 'Poppins', -apple-system, sans-serif !important;
    letter-spacing: 0.6px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35) !important;
    white-space: nowrap !important;
}

.admin-sub-title {
    color: #BDAF7F !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    font-family: 'Hind', 'Poppins', -apple-system, sans-serif !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.3) !important;
    white-space: nowrap !important;
}
    font-size: 13.5px !important;
    font-family: 'Hind', 'Poppins', -apple-system, sans-serif !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.3) !important;
    white-space: nowrap !important;
}

@media (min-width: 576px) {
    .admin-main-title {
        font-size: 21px !important;
    }
    .admin-sub-title {
        font-size: 14.5px !important;
    }
}

@media (min-width: 992px) {
    .admin-main-title {
        font-size: 24px !important;
    }
    .admin-sub-title {
        font-size: 15.5px !important;
    }
}

@media (min-width: 1200px) {
    .admin-main-title {
        font-size: 26px !important;
    }
    .admin-sub-title {
        font-size: 16.5px !important;
    }
}

.admin-header-logout-btn {
    background: #FFFFFF !important;
    color: #B35400 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    border: 1px solid #FFFFFF !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    transition: transform 150ms ease, background 150ms ease !important;
    z-index: 100001 !important;
    white-space: nowrap !important;
}

.admin-header-logout-btn:hover {
    background: #FFF2DF !important;
    color: #8C4300 !important;
    transform: translateY(-1px) !important;
}

/* CONTAINER OVERFLOW UNCLIPPING FOR ADMIN DRAWER */
.pcoded-main-container,
.pcoded-wrapper,
.pcoded-container,
#pcoded,
.pcoded {
    overflow: visible !important;
}

/* OVERRIDE ALL THEME COMPONENT HIDING & COLLAPSED STATES FOR NAVBAR */
#pcoded .pcoded-navbar,
#pcoded[vertical-layout="vertical"] .pcoded-navbar,
#pcoded[vertical-nav-type="collapsed"] .pcoded-navbar,
#pcoded[vertical-nav-type="offcanvas"] .pcoded-navbar,
.pcoded .pcoded-navbar,
.pcoded-navbar,
nav.pcoded-navbar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
}

/* DESKTOP SIDEBAR POSITIONING */
@media (min-width: 992px) {
    #pcoded .pcoded-navbar,
    .pcoded-navbar,
    .pcoded .pcoded-navbar {
        position: fixed !important;
        top: 68px !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 250px !important;
        height: calc(100vh - 68px) !important;
        transform: none !important;
        z-index: 99995 !important;
        background: #FFF2DF !important;
        border-right: 1px solid #E6C5A9 !important;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .pcoded-content {
        margin-left: 250px !important;
        width: calc(100% - 250px) !important;
        padding: 8px 15px !important;
        margin-top: 68px !important;
    }

    .pcoded-inner-content,
    .pcoded-content .pcoded-inner-content,
    .pcoded-content .main-body,
    .pcoded-content .page-wrapper,
    .pcoded-content .page-body {
        padding: 0 !important;
        margin: 0 !important;
    }

    .admin-drawer-backdrop {
        display: none !important;
    }
}

/* MOBILE SIDEBAR DRAWER POSITIONING — PRODUCTION-READY */
@media (max-width: 991px) {

    /* ============================================================
       CRITICAL: Override ALL theme offcanvas/collapsed/expanded
       margin-left/-right rules that conflict with our drawer.
       The theme's style.css applies margin-left: -250px when
       vertical-nav-type="offcanvas", which fights the transform.
       We must nullify every such rule.
       ============================================================ */
    .pcoded[vertical-nav-type="offcanvas"] .pcoded-navbar,
    .pcoded[vertical-nav-type="collapsed"] .pcoded-navbar,
    .pcoded[vertical-nav-type="expanded"] .pcoded-navbar,
    .pcoded[theme-layout="vertical"][vertical-placement="left"][vertical-nav-type="offcanvas"][vertical-effect="overlay"] .pcoded-navbar,
    .pcoded[theme-layout="vertical"][vertical-placement="left"][vertical-nav-type="offcanvas"][vertical-effect="push"] .pcoded-navbar,
    .pcoded[theme-layout="vertical"][vertical-placement="left"][vertical-nav-type="offcanvas"][vertical-effect="shrink"] .pcoded-navbar,
    .pcoded[theme-layout="vertical"][vertical-placement="left"][vertical-nav-type="collapsed"][vertical-effect="overlay"] .pcoded-navbar,
    .pcoded[theme-layout="vertical"][vertical-placement="left"][vertical-nav-type="collapsed"][vertical-effect="push"] .pcoded-navbar,
    .pcoded[theme-layout="vertical"][vertical-placement="left"][vertical-nav-type="collapsed"][vertical-effect="shrink"] .pcoded-navbar,
    #pcoded .pcoded-navbar,
    #pcoded[vertical-layout="vertical"] .pcoded-navbar,
    #pcoded[vertical-nav-type="collapsed"] .pcoded-navbar,
    #pcoded[vertical-nav-type="offcanvas"] .pcoded-navbar,
    .pcoded-navbar,
    .pcoded .pcoded-navbar,
    nav.pcoded-navbar {
        position: fixed !important;
        top: 60px !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 245px !important;
        max-width: 80vw !important;
        height: calc(100vh - 60px) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: translate3d(-105%, 0, 0) !important;
        -webkit-transform: translate3d(-105%, 0, 0) !important;
        transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 9999999 !important;
        background: #FFF2DF !important;
        border-right: 1px solid #E6C5A9 !important;
        box-shadow: 6px 0 35px rgba(0, 0, 0, 0.3) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* SHOW STATE — Slide In */
    body.admin-sidebar-active .pcoded-navbar,
    body.admin-sidebar-active .pcoded .pcoded-navbar,
    body.admin-sidebar-active #pcoded .pcoded-navbar,
    body.admin-sidebar-active .pcoded[vertical-nav-type="offcanvas"] .pcoded-navbar,
    body.admin-sidebar-active .pcoded[theme-layout="vertical"][vertical-placement="left"][vertical-nav-type="offcanvas"][vertical-effect="overlay"] .pcoded-navbar,
    body.admin-sidebar-active .pcoded[theme-layout="vertical"][vertical-placement="left"][vertical-nav-type="offcanvas"][vertical-effect="push"] .pcoded-navbar,
    body.admin-sidebar-active .pcoded[theme-layout="vertical"][vertical-placement="left"][vertical-nav-type="offcanvas"][vertical-effect="shrink"] .pcoded-navbar,
    body.menu-open .pcoded-navbar,
    .pcoded-navbar.active-drawer,
    .pcoded-navbar.show-drawer,
    .pcoded-navbar.show-mobile,
    .pcoded-navbar.show {
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        margin-left: 0 !important;
    }

    /* BACKDROP OVERLAY FOR MOBILE DRAWER */
    .admin-drawer-backdrop {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(15, 23, 42, 0.55) !important;
        backdrop-filter: blur(2px) !important;
        -webkit-backdrop-filter: blur(2px) !important;
        z-index: 9999990 !important;
        cursor: pointer !important;
    }

    body.admin-sidebar-active .admin-drawer-backdrop,
    body.menu-open .admin-drawer-backdrop,
    .admin-drawer-backdrop.active-overlay,
    .admin-drawer-backdrop.show {
        display: block !important;
    }

    /* Override theme overlay-box that interferes */
    .pcoded-overlay-box {
        display: none !important;
    }

    .pcoded-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 10px !important;
    }

    /* Force content margin to 0 regardless of theme state */
    .pcoded[vertical-nav-type="offcanvas"] .pcoded-content,
    .pcoded[vertical-nav-type="collapsed"] .pcoded-content,
    .pcoded[vertical-nav-type="expanded"] .pcoded-content,
    .pcoded[theme-layout="vertical"][vertical-placement="left"][vertical-nav-type="offcanvas"][vertical-effect="overlay"] .pcoded-content,
    .pcoded[theme-layout="vertical"][vertical-placement="left"][vertical-nav-type="offcanvas"][vertical-effect="push"] .pcoded-content,
    .pcoded[theme-layout="vertical"][vertical-placement="left"][vertical-nav-type="offcanvas"][vertical-effect="shrink"] .pcoded-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.pcoded .pcoded-inner-navbar,
.pcoded .pcoded-inner-navbar.main-menu {
    height: auto !important;
    min-height: 100% !important;
    width: 100% !important;
    overflow-y: visible !important;
    padding: 0 0 100px 0 !important;
    margin: 0 !important;
    background-color: #FFF2DF !important;
}

/* SIDEBAR SCROLLBAR STYLING — Ultra-thin, flush to right edge */
.pcoded-navbar::-webkit-scrollbar,
.pcoded .pcoded-navbar::-webkit-scrollbar {
    width: 4px !important;
    background-color: #FFF2DF !important;
}
.pcoded-navbar::-webkit-scrollbar-track,
.pcoded .pcoded-navbar::-webkit-scrollbar-track {
    background: #FFF2DF !important;
}
.pcoded-navbar::-webkit-scrollbar-thumb,
.pcoded .pcoded-navbar::-webkit-scrollbar-thumb {
    background: #CBA98A !important;
    border-radius: 2px !important;
}
.pcoded-navbar::-webkit-scrollbar-thumb:hover,
.pcoded .pcoded-navbar::-webkit-scrollbar-thumb:hover {
    background: #D4660C !important;
}
/* Firefox scrollbar — thin */
.pcoded-navbar,
.pcoded .pcoded-navbar {
    scrollbar-width: thin !important;
    scrollbar-color: #CBA98A #FFF2DF !important;
}

/* LEVEL 0: CATEGORY HEADERS (MATCHING REFERENCE IMAGES 2 & 3) */
.pcoded .pcoded-navigatio-lavel {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #b35400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding: 12px 16px 6px 16px !important;
    margin: 8px 0 2px 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-bottom: 1px dashed rgba(212, 102, 12, 0.18) !important;
    white-space: nowrap !important;
}

.pcoded .pcoded-navigatio-lavel:first-child {
    border-top: none !important;
    margin-top: 6px !important;
}

/* LEVEL 1: MAIN MENU ITEMS & TOP-LEVEL LINKS */
.pcoded .pcoded-navbar .pcoded-item > li {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: 100% !important;
}

.pcoded .pcoded-navbar .pcoded-item > li > a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
    width: calc(100% - 6px) !important;
    min-height: 44px !important;
    height: auto !important;
    padding: 8px 10px !important;
    margin: 2px 3px !important;
    border-left: 4px solid transparent !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-decoration: none !important;
    background: transparent !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* FIXED ICON VISUAL AREA */
.pcoded .pcoded-navbar .pcoded-item > li > a .pcoded-micon,
.pcoded .pcoded-navbar .pcoded-item > li .pcoded-micon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
    background: transparent !important;
}

.pcoded .pcoded-navbar .pcoded-item > li > a .pcoded-micon i,
.pcoded .pcoded-navbar .pcoded-item > li .pcoded-micon i {
    color: #8C6E63 !important;
    font-size: 21px !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

/* LEVEL 1 TOP DIRECT LINKS (DASHBOARD & PUBLIC WEBSITE MGMT: FULL UNCLIPPED SINGLE LINE TEXT) */
.pcoded .pcoded-navbar .pcoded-item > li:not(.pcoded-hasmenu) > a .pcoded-mtext {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #4A2F1D !important;
    font-size: 17.5px !important;
    font-weight: 700 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1 1 auto !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    line-height: 1.35 !important;
    float: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.pcoded .pcoded-navbar .pcoded-item > li:not(.pcoded-hasmenu) > a .pcoded-micon i {
    font-size: 20px !important;
}

/* LEVEL 1 HAS-MENU DROPDOWNS (BHAVAN KAR, REPORT, MASTER) */
.pcoded .pcoded-navbar .pcoded-item > li.pcoded-hasmenu > a .pcoded-mtext {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #4A2F1D !important;
    font-size: 17.5px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1 1 auto !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    line-height: 1.35 !important;
    float: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* CHEVRON ARROW ROTATION */
.pcoded .pcoded-navbar .pcoded-hasmenu > a .pcoded-mcaret,
.pcoded .pcoded-navbar .pcoded-hasmenu > a::after {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    float: none !important;
    font-size: 15px !important;
    color: #8C6E63 !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pcoded .pcoded-navbar .pcoded-hasmenu.pcoded-trigger > a .pcoded-mcaret {
    transform: rotate(90deg) !important;
    color: #D4660C !important;
}

/* LEVEL 1 HOVER STATE */
.pcoded .pcoded-navbar .pcoded-item > li > a:hover {
    background-color: rgba(212, 102, 12, 0.08) !important;
    color: #4A2F1D !important;
    transform: translateX(2px) !important;
}

.pcoded .pcoded-navbar .pcoded-item > li > a:hover .pcoded-mtext,
.pcoded .pcoded-navbar .pcoded-item > li > a:hover .pcoded-micon i {
    color: #C55D07 !important;
}

/* LEVEL 1 ABSOLUTE RESET FOR INACTIVE ITEMS (DASHBOARD & CMS HEADER) */
.pcoded .pcoded-navbar .pcoded-item > li,
.pcoded .pcoded-navbar .pcoded-item > li.pcoded-hasmenu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.pcoded .pcoded-navbar .pcoded-item > li:not(.active):not(.pcoded-trigger) > a,
.pcoded .pcoded-navbar .pcoded-item > li:first-child:not(.active) > a,
.pcoded-inner-navbar > ul:first-child > li:first-child:not(.active) > a {
    background: transparent !important;
    background-color: transparent !important;
    border-left: 4px solid transparent !important;
    box-shadow: none !important;
}

.pcoded .pcoded-navbar .pcoded-item > li:not(.active):not(.pcoded-trigger) > a .pcoded-mtext,
.pcoded .pcoded-navbar .pcoded-item > li:first-child:not(.active) > a .pcoded-mtext {
    color: #4A2F1D !important;
    font-weight: 600 !important;
}

.pcoded .pcoded-navbar .pcoded-item > li:not(.active):not(.pcoded-trigger) > a .pcoded-micon i,
.pcoded .pcoded-navbar .pcoded-item > li:first-child:not(.active) > a .pcoded-micon i {
    color: #4A2F1D !important;
}

/* LEVEL 1 ACTIVE / EXPANDED STATE */
.pcoded .pcoded-navbar .pcoded-item > li.active > a,
.pcoded .pcoded-navbar .pcoded-item > li.pcoded-trigger > a {
    background: #FFE0B2 !important;
    background-color: #FFE0B2 !important;
    color: #C55D07 !important;
    border-left-color: #D4660C !important;
    box-shadow: 0 2px 6px rgba(212, 102, 12, 0.12) !important;
}

.pcoded .pcoded-navbar .pcoded-item > li.active > a .pcoded-mtext,
.pcoded .pcoded-navbar .pcoded-item > li.pcoded-trigger > a .pcoded-mtext {
    color: #C55D07 !important;
    font-weight: 700 !important;
}

.pcoded .pcoded-navbar .pcoded-item > li.active > a .pcoded-micon i,
.pcoded .pcoded-navbar .pcoded-item > li.pcoded-trigger > a .pcoded-micon i {
    color: #D4660C !important;
}

/* LEVEL 2: SUBMENU (COLLAPSED BY DEFAULT) */
.pcoded-navbar .pcoded-submenu {
    display: none;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border-left: none !important;
    background-color: transparent !important;
}

/* EXPANDED LEVEL 2 SUBMENU (WHEN TRIGGERED OR ACTIVE) */
.pcoded-navbar .pcoded-hasmenu.pcoded-trigger > .pcoded-submenu,
.pcoded-navbar .pcoded-hasmenu.active > .pcoded-submenu {
    display: block;
    margin: 2px 0 4px 6px !important;
    padding: 2px 0 2px 0 !important;
    border-left: 1.5px solid #D9BBA9 !important;
    overflow: visible !important;
    width: calc(100% - 6px) !important;
}

.pcoded-navbar .pcoded-submenu li {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    margin: 3px 0 !important;
    padding: 0 !important;
    clear: both !important;
}

/* SUBMENU LINK BOX SIZING (FORCE 1 SINGLE LINE FOR ALL SUBMENUS E.G. 'वार्ड अनुसार बड़े बकायेदार') */
.pcoded-navbar .pcoded-submenu li a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    position: relative !important;
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    padding: 9px 12px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    border-left: 4px solid transparent !important;
    background: transparent !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.35 !important;
}

.pcoded-navbar .pcoded-submenu li a .pcoded-mtext {
    display: inline-block !important;
    color: #4A2F1D !important;
    font-size: 18.5px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.35 !important;
    flex: 1 1 auto !important;
}

/* FORCE SHOW SUBMENU ICONS */
.pcoded .pcoded-navbar .pcoded-item .pcoded-hasmenu .pcoded-submenu li > a .pcoded-micon,
.pcoded-navbar .pcoded-submenu li a i {
    display: inline-flex !important;
    font-size: 17px !important;
    color: #8C6E63 !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
}

/* PERMANENTLY DESTROY ALL PSEUDO BULLET DOTS BEFORE/AFTER TEXT */
.pcoded-navbar .pcoded-submenu li a::before,
.pcoded-navbar .pcoded-submenu li a::after,
.pcoded-navbar .pcoded-submenu li a .pcoded-mtext::before,
.pcoded-navbar .pcoded-submenu li a .pcoded-mtext::after,
.pcoded-navbar .pcoded-item .pcoded-hasmenu .pcoded-submenu li > a .pcoded-mtext::before,
.pcoded-navbar .pcoded-item .pcoded-hasmenu .pcoded-submenu li > a .pcoded-mtext::after,
.pcoded-navbar .pcoded-item .pcoded-hasmenu[subitem-icon] .pcoded-submenu li > a .pcoded-mtext::before,
.pcoded-navbar .pcoded-item .pcoded-hasmenu[subitem-icon] .pcoded-submenu li > a .pcoded-mtext::after {
    display: none !important;
    content: "" !important;
    content: none !important;
    background: transparent !important;
    border: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

/* ABSOLUTE OVERRIDE: PREVENT DEFAULT HIGHLIGHT ON INACTIVE SUBMENU FIRST-CHILD */
.pcoded-navbar .pcoded-submenu li:not(.active) > a,
.pcoded-navbar .pcoded-submenu li:first-child:not(.active) > a,
.pcoded-navbar .pcoded-submenu > li:first-child:not(.active) > a,
.pcoded .pcoded-navbar .pcoded-item .pcoded-hasmenu .pcoded-submenu > li:first-child:not(.active) > a,
.pcoded[theme-layout="vertical"] .pcoded-navbar .pcoded-item .pcoded-hasmenu .pcoded-submenu > li:first-child:not(.active) > a,
.pcoded[theme-layout="vertical"] .pcoded-navbar .pcoded-item .pcoded-hasmenu .pcoded-submenu li:first-child:not(.active) a {
    background: transparent !important;
    background-color: transparent !important;
    border-left: 4px solid transparent !important;
    box-shadow: none !important;
}

.pcoded-navbar .pcoded-submenu li:not(.active) > a .pcoded-mtext,
.pcoded-navbar .pcoded-submenu li:first-child:not(.active) > a .pcoded-mtext,
.pcoded[theme-layout="vertical"] .pcoded-navbar .pcoded-item .pcoded-hasmenu .pcoded-submenu li:first-child:not(.active) a .pcoded-mtext {
    color: #4A2F1D !important;
    font-weight: 500 !important;
}

.pcoded-navbar .pcoded-submenu li:not(.active) > a i,
.pcoded-navbar .pcoded-submenu li:first-child:not(.active) > a i {
    color: #8C6E63 !important;
}

/* LEVEL 2 DISTINCT ACTIVE SUBMENU STATE (WARM CREAM & COPPER BAR) */
.pcoded-navbar .pcoded-submenu li.active > a,
.pcoded-navbar .pcoded-submenu li.active:first-child > a,
.pcoded .pcoded-navbar .pcoded-item .pcoded-hasmenu .pcoded-submenu > li.active > a {
    background: #FFE8D6 !important;
    background-color: #FFE8D6 !important;
    border-left: 4px solid #B87B5C !important;
    box-shadow: 0 2px 8px rgba(184, 123, 92, 0.15) !important;
    border-radius: 8px !important;
    width: 100% !important;
}

.pcoded-navbar .pcoded-submenu li.active > a .pcoded-mtext,
.pcoded-navbar .pcoded-submenu li.active:first-child > a .pcoded-mtext,
.pcoded .pcoded-navbar .pcoded-item .pcoded-hasmenu .pcoded-submenu > li.active > a .pcoded-mtext {
    color: #4A2F1D !important;
    font-size: 18.5px !important;
    font-weight: 700 !important;
}

.pcoded-navbar .pcoded-submenu li.active > a .pcoded-micon i,
.pcoded-navbar .pcoded-submenu li.active > a i,
.pcoded-navbar .pcoded-submenu li.active:first-child > a i {
    color: #B87B5C !important;
    transform: scale(1.1) !important;
}

/* LEVEL 3: DEEP NESTED SUBMENU (COLLAPSED BY DEFAULT: ZERO SPACE & ZERO HEIGHT) */
.pcoded-navbar .pcoded-submenu .pcoded-submenu {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-left: none !important;
    background-color: transparent !important;
}

/* EXPANDED LEVEL 3 SUBMENU (WHEN TRIGGERED OR ACTIVE) */
.pcoded-navbar .pcoded-submenu li.pcoded-trigger > .pcoded-submenu,
.pcoded-navbar .pcoded-submenu li.active > .pcoded-submenu {
    display: block !important;
    height: auto !important;
    margin: 2px 0 2px 14px !important;
    padding: 2px 0 !important;
    border-left: 1.5px solid rgba(217, 187, 169, 0.6) !important;
    overflow: visible !important;
}

.pcoded-navbar .pcoded-submenu .pcoded-submenu li {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    float: none !important;
    clear: both !important;
    margin: 1px 0 !important;
}

.pcoded-navbar .pcoded-submenu .pcoded-submenu li a {
    padding: 6px 10px 6px 12px !important;
    white-space: nowrap !important;
    min-height: 34px !important;
}

.pcoded-navbar .pcoded-submenu .pcoded-submenu li a .pcoded-mtext {
    font-size: 18.5px !important;
    font-weight: 500 !important;
    color: #64748B !important;
    white-space: nowrap !important;
}

.pcoded-navbar .pcoded-submenu .pcoded-submenu li a i {
    font-size: 12px !important;
    color: #94A3B8 !important;
}

.pcoded-navbar .pcoded-submenu .pcoded-submenu li.active > a {
    background-color: rgba(212, 102, 12, 0.08) !important;
    border-left-color: #D4660C !important;
}

.pcoded-navbar .pcoded-submenu .pcoded-submenu li.active > a .pcoded-mtext {
    color: #D4660C !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
}

.pcoded-navbar .pcoded-submenu .pcoded-submenu li.active > a i {
    color: #D4660C !important;
}

@keyframes sidebarSubmenuFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LEVEL 2 ACTIVE CHILD */
.pcoded-navbar .pcoded-submenu li.active > a,
.pcoded-navbar .pcoded-submenu li.active > a .pcoded-mtext {
    background-color: var(--color-surface) !important;
    color: var(--color-primary-dark) !important;
    font-weight: 800 !important;
}

.pcoded-navbar .pcoded-submenu li.active > a {
    border-left: 3px solid var(--color-primary) !important;
    box-shadow: 0 2px 6px rgba(212, 102, 12, 0.1) !important;
}

.pcoded-navbar .pcoded-submenu li.active > a i {
    color: var(--color-primary) !important;
}

/* GENERAL ADMIN CARDS, BUTTONS, & TABLES */
.card {
    border: 1px solid var(--color-border) !important;
    background-color: var(--color-white) !important;
    box-shadow: 0 4px 16px rgba(212, 102, 12, 0.08) !important;
    border-radius: 12px !important;
}

.card-header,
.card-header-custom,
.card-header.bg-primary,
.card-header.bg-info,
.card-header.bg-dark,
.card-header.bg-success,
.card-header.bg-secondary {
    background: linear-gradient(135deg, #B87B5C 0%, #382621 100%) !important;
    color: #FFFFFF !important;
    border-bottom: 2px solid #BDAF7F !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 14px 20px !important;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6,
.card-header span,
.card-header i,
.card-header a {
    color: #FFFFFF !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.btn-primary,
.btn-gov,
.btn-info,
.btn-success {
    background: linear-gradient(135deg, #B87B5C 0%, #382621 100%) !important;
    border-color: #382621 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 10px rgba(56, 38, 33, 0.2) !important;
    transition: all 0.25s ease !important;
}

.btn-primary:hover,
.btn-gov:hover,
.btn-info:hover,
.btn-success:hover {
    background: linear-gradient(135deg, #A26A4D 0%, #251815 100%) !important;
    border-color: #251815 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(56, 38, 33, 0.35) !important;
}

.table thead,
.table thead th {
    background-color: var(--color-bg) !important;
    color: var(--color-text-strong) !important;
    font-weight: 800 !important;
    border-bottom: 2px solid var(--color-border) !important;
}

.table-bordered th,
.table-bordered td {
    border-color: var(--color-border) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%) !important;
    color: var(--color-white) !important;
    border: none !important;
    border-radius: 6px !important;
}


/* Legacy inline style overrides to master color palette */
[style*="background-color: #535A3B"],
[style*="background-color:#535A3B"],
[style*="background: #535A3B"],
[style*="background:#535A3B"] {
    background-color: var(--primary-dark) !important;
    color: var(--accent) !important;
}

[style*="color: #535A3B"],
[style*="color:#535A3B"] {
    color: var(--primary-dark) !important;
}

[style*="border: 2px solid #535A3B"],
[style*="border: 1px solid #535A3B"] {
    border-color: var(--primary-dark) !important;
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .brand-logo-left {
        flex-direction: column;
    }

    .nav-ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--primary-darker);
    }

    .nav-ul.show {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

}

/* --------------------------------------------------------------------------
   PROGRESSIVE SCROLL REVEAL & ACCESSIBILITY FOCUS STYLES
   -------------------------------------------------------------------------- */
.reveal-element {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: opacity, transform;
}

.reveal-element.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* WCAG 2.1 High-Contrast Focus Visible Outline */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-primary) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(212, 102, 12, 0.35) !important;
}

/* --------------------------------------------------------------------------
   ADMIN & SHARED TABLES (Zebra Striping & Sticky Headers)
   -------------------------------------------------------------------------- */
.gov-table,
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-white);
}

.gov-table th,
.table th {
    background-color: var(--color-primary-dark) !important;
    color: var(--color-white) !important;
    font-weight: 700;
    padding: 14px 16px;
    border-bottom: 2px solid var(--color-border);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.gov-table tbody tr:nth-child(even),
.table tbody tr:nth-child(even) {
    background-color: var(--color-surface);
}

.gov-table tbody tr:hover,
.table tbody tr:hover {
    background-color: var(--color-bg) !important;
    transition: background-color 0.2s ease;
}

.gov-table td,
.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-strong);
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   STYLED DRAG & DROP FILE UPLOAD WIDGET
   -------------------------------------------------------------------------- */
.file-dropzone-wrapper {
    border: 2px dashed var(--color-secondary);
    background-color: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.file-dropzone-wrapper:hover {
    border-color: var(--color-primary);
    background-color: var(--color-surface);
}

.file-dropzone-icon {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY: PREFERS-REDUCED-MOTION OVERRIDE
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal-element {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --------------------------------------------------------------------------
   HIGH-CONTRAST CARD HEADERS & TITLES — BRAND ORANGE + PURE WHITE TEXT
   -------------------------------------------------------------------------- */

/* Default card-header: copper to espresso gradient + pure white text + khaki border */
.card-header {
    background: linear-gradient(135deg, #B87B5C 0%, #382621 100%) !important;
    color: #FFFFFF !important;
    border-bottom: 2px solid #BDAF7F !important;
}

/* Ensure all text elements inside card-header are crisp white & bold */
.card-header *,
.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6,
.card-header p,
.card-header span,
.card-header small,
.card-header .card-title,
.card-header i,
.card-header a {
    color: #FFFFFF !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* Bold titles specifically */
.card-header h4,
.card-header h5,
.card-header .fw-bold {
    font-weight: 800 !important;
    letter-spacing: 0.2px !important;
}

/* Override specific Bootstrap bg- classes that use their own colors */
.card-header.bg-dark,
.card-header.bg-primary,
.card-header.bg-secondary,
.card-header.bg-info,
.card-header.bg-success,
.card-header.bg-warning,
.card-header.bg-danger {
    background: linear-gradient(135deg, #B87B5C 0%, #382621 100%) !important;
    color: #FFFFFF !important;
    border-bottom: 2px solid #BDAF7F !important;
}

/* ==========================================================================
   PREMIUM GOVERNMENT FLOATING "PAY TAX ONLINE" CTA (ADVANCED MOTION SYSTEM)
   ========================================================================== */

.gov-tax-cta-wrapper {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
    opacity: 0;
    transform: translateY(30px) scale(0.92);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.gov-tax-cta-wrapper.cta-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gov-tax-cta-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px 10px 14px;
    background: linear-gradient(135deg, #D4660C 0%, #CB6F4A 50%, #A85A18 100%);
    color: #FFFFFF !important;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(212, 102, 12, 0.35), 0 2px 6px rgba(59, 38, 33, 0.2);
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease,
                background 0.3s ease,
                padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: cta-idle-breath 4s ease-in-out infinite,
               cta-attention-glow 4s ease-in-out infinite;
}

/* Glassmorphism shine highlight effect */
.gov-tax-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: left 0.75s ease;
}

.gov-tax-cta-btn:hover::before {
    left: 150%;
}

.gov-tax-cta-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #D4660C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gov-tax-cta-btn:hover .gov-tax-cta-icon-box {
    transform: scale(1.1) rotate(-8deg);
    color: #A85A18;
}

.gov-tax-badge-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #22C55E;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
}

.gov-tax-cta-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    transition: opacity 0.3s ease, max-width 0.3s ease;
}

.gov-tax-cta-label-en {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.gov-tax-cta-label-hi {
    font-size: 11px;
    font-weight: 600;
    color: #FFE0B2;
}

.gov-tax-cta-arrow-box {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #FFFFFF;
    margin-left: 2px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.gov-tax-cta-btn:hover .gov-tax-cta-arrow-box {
    background: #FFFFFF;
    color: #D4660C;
    transform: translateX(4px);
}

/* Hover & Active States */
.gov-tax-cta-btn:hover {
    background: linear-gradient(135deg, #E57310 0%, #CB6F4A 50%, #B8530B 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 32px rgba(212, 102, 12, 0.5), 0 4px 10px rgba(59, 38, 33, 0.3);
}

.gov-tax-cta-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 16px rgba(212, 102, 12, 0.4);
}

.gov-tax-cta-btn:focus-visible {
    outline: 3px solid #FFE0B2;
    outline-offset: 3px;
}

/* KEYFRAME ANIMATIONS */
@keyframes cta-idle-breath {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes cta-attention-glow {
    0% {
        box-shadow: 0 8px 24px rgba(212, 102, 12, 0.35), 0 0 0 0 rgba(203, 111, 74, 0.4);
    }
    50% {
        box-shadow: 0 12px 32px rgba(212, 102, 12, 0.55), 0 0 0 10px rgba(203, 111, 74, 0);
    }
    100% {
        box-shadow: 0 8px 24px rgba(212, 102, 12, 0.35), 0 0 0 0 rgba(203, 111, 74, 0);
    }
}

/* COMPACT MODE FOR ACTIVE SCROLLING */
.gov-tax-cta-wrapper.cta-compact .gov-tax-cta-content {
    display: none;
}

.gov-tax-cta-wrapper.cta-compact .gov-tax-cta-arrow-box {
    display: none;
}

.gov-tax-cta-wrapper.cta-compact .gov-tax-cta-btn {
    padding: 8px 12px 8px 8px;
    border-radius: 40px;
}

.nav-pay-tax-item {
    display: flex;
    align-items: center;
}

.nav-pay-tax-btn {
    background: linear-gradient(135deg, #D4660C 0%, #CB6F4A 100%);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 12px rgba(212, 102, 12, 0.4);
    transition: all 0.25s ease;
}

.nav-pay-tax-btn:hover {
    background: linear-gradient(135deg, #E57310 0%, #B8530B 100%);
    color: #FFFFFF !important;
    transform: scale(1.05);
    box-shadow: 0 5px 16px rgba(212, 102, 12, 0.6);
}

/* RESPONSIVE SCALING */
@media (max-width: 768px) {
    .gov-tax-cta-wrapper {
        bottom: 20px;
        right: 16px;
    }

    .gov-tax-cta-btn {
        padding: 8px 16px 8px 10px;
        gap: 8px;
    }

    .gov-tax-cta-icon-box {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .gov-tax-cta-label-en {
        font-size: 13px;
    }

    .gov-tax-cta-label-hi {
        font-size: 10px;
    }

    .gov-tax-cta-arrow-box {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .gov-tax-cta-label-hi {
        display: none;
    }
}

/* PREFERS-REDUCED-MOTION ACCESSIBILITY OVERRIDE */
@media (prefers-reduced-motion: reduce) {
    .gov-tax-cta-wrapper,
    .gov-tax-cta-btn,
    .gov-tax-cta-icon-box,
    .gov-tax-cta-arrow-box {
        animation: none !important;
        transition: none !important;
    }
    
    .gov-tax-cta-wrapper {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   ADMIN PANEL STYLES: HEADER MOTION TICKER & SIDEBAR ENHANCEMENTS (+2px Font)
   ========================================================================== */

/* Admin Header Center Ticker */
.admin-header-center-ticker {
    max-width: 480px;
    height: 38px;
    position: relative;
    overflow: hidden;
}

.header-motion-ticker {
    display: inline-block;
    white-space: nowrap;
    animation: adminTickerScroll 12s linear infinite;
}

.ticker-text-hindi {
    font-size: 16px;
    font-weight: 800;
    color: #D4660C;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(212, 102, 12, 0.15);
}

@keyframes adminTickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.header-motion-ticker:hover {
    animation-play-state: paused;
}

/* Sidebar Font Size Increase & Full Text Visibility (No Truncation) */
.pcoded-navbar .pcoded-mtext,
.pcoded-navbar .pcoded-submenu li a .pcoded-mtext,
.pcoded-navbar span.pcoded-mtext {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    white-space: normal !important;
    text-overflow: clip !important;
    overflow: visible !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
    display: inline-block !important;
    max-width: 100% !important;
}

.pcoded-navbar .pcoded-submenu li a {
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 10px 8px 24px !important;
    white-space: normal !important;
    height: auto !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
}

.pcoded-navbar .pcoded-submenu li a i {
    font-size: 16px !important;
}

.pcoded-navbar .pcoded-micon {
    font-size: 18px !important;
}

.pcoded-navigatio-lavel {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #4A2F1D !important;
}

.pcoded-navbar .pcoded-item li.active > a {
    background: rgba(212, 102, 12, 0.12) !important;
    color: #D4660C !important;
    border-left: 4px solid #D4660C !important;
    font-weight: 700 !important;
}

.pcoded-navbar .pcoded-submenu li.active > a {
    color: #D4660C !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   RIGHT-EDGE FLOATING SLIDE-IN "PAY TAX ONLINE" CTA (EXACT SPEC MATCH)
   ========================================================================== */
.gov-tax-slide-wrapper {
    position: fixed;
    right: 0;
    bottom: 150px; /* ~150px above bottom of viewport, matching screenshot red circle area */
    z-index: 99999;
    display: flex;
    align-items: center;
    transform: translateX(calc(100% - 46px)); /* Default peek state: 46px tab visible at right edge */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* Expanded state when sliding in automatically or hovered */
.gov-tax-slide-wrapper.slide-in,
.gov-tax-slide-wrapper:hover,
.gov-tax-slide-wrapper:focus-within {
    transform: translateX(0);
}

.gov-tax-slide-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px 8px 10px;
    background: linear-gradient(135deg, #D4660C 0%, #CB6F4A 50%, #A85A18 100%);
    color: #FFFFFF !important;
    border-radius: 30px 0 0 30px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-right: none;
    box-shadow: -4px 8px 24px rgba(59, 38, 33, 0.25), -2px 4px 12px rgba(212, 102, 12, 0.4);
    text-decoration: none !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Glassmorphism shine animation */
.gov-tax-slide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg);
    transition: left 0.75s ease;
}

.gov-tax-slide-card:hover::before {
    left: 150%;
}

/* Peek Icon Box (always visible at right edge in peek state) */
.gov-tax-slide-peek-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #D4660C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gov-tax-slide-card:hover .gov-tax-slide-peek-icon {
    transform: scale(1.12) rotate(-8deg);
    color: #A85A18;
}

.gov-tax-slide-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 8px;
    height: 8px;
    background: #22C55E;
    border: 1.5px solid #FFFFFF;
    border-radius: 50%;
    animation: badgePulse 2s infinite;
}

.gov-tax-slide-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
    white-space: nowrap;
}

.gov-tax-slide-title-en {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.gov-tax-slide-title-hi {
    font-size: 11px;
    font-weight: 600;
    color: #FFE0B2;
}

.gov-tax-slide-action {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #FFFFFF;
    margin-left: 2px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.gov-tax-slide-card:hover .gov-tax-slide-action {
    background: #FFFFFF;
    color: #D4660C;
    transform: translateX(3px);
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* Responsive Scaling */
@media (max-width: 768px) {
    .gov-tax-slide-wrapper {
        bottom: 110px;
        transform: translateX(calc(100% - 38px));
    }
    .gov-tax-slide-card {
        padding: 6px 14px 6px 8px;
    }
    .gov-tax-slide-peek-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .gov-tax-slide-title-en { font-size: 12.5px; }
    .gov-tax-slide-title-hi { font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .gov-tax-slide-wrapper {
        transition: none !important;
        transform: translateX(0) !important;
    }
    .gov-tax-slide-badge {
        animation: none !important;
    }
}

/* ==========================================================================
   13. MASTER RESPONSIVE & FLUID TYPOGRAPHY SYSTEM (ALL VIEWPORTS 360px - 2560px)
   ========================================================================== */

/* FLUID TYPOGRAPHY USING CLAMP() */
h1, .h1 {
    font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem) !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
}

h2, .h2 {
    font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem) !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

h3, .h3 {
    font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem) !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

h4, .h4 {
    font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.3rem) !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

h5, .h5 {
    font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.15rem) !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
}

/* FLUID CONTAINERS & SPACING */
.container,
.top_head_container,
.header-container-grid,
.nav-container {
    width: min(1320px, 100% - clamp(1rem, 4vw, 3rem)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* FLUID GRID LAYOUTS FOR PUBLIC CARDS */
.card-grid-responsive {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 30vw, 360px), 1fr)) !important;
    gap: clamp(1rem, 2.5vw, 2rem) !important;
}

/* UNIVERSAL TABLE RESPONSIVENESS */
.table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 1rem !important;
}

.table-responsive::-webkit-scrollbar {
    height: 6px !important;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--color-border) !important;
    border-radius: 4px !important;
}

/* TOUCH TARGET OPTIMIZATION (MINIMUM 44PX TARGETS) */
.btn,
.nav-link,
.dropdown-item-custom {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* RESPONSIVE IMAGES */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* RESPONSIVE MEDIA QUERIES FOR TABLET & MOBILE */
@media (max-width: 991px) {
    .header-container-grid {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
    }

    .tophead_left, .tophead_right {
        justify-content: center !important;
        width: 100% !important;
    }

    .pcoded-navbar {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        bottom: 0 !important;
        z-index: 9999 !important;
    }
}

@media (max-width: 576px) {
    .top_head {
        font-size: 11.5px !important;
        padding: 5px 0 !important;
    }

    .admin-header-title-text {
        font-size: 13.5px !important;
    }

/* VIEW ALL BUTTON (SABHI DEKHEN) HIGH-CONTRAST STYLING */
.btn-gov-view-all {
    background: #FFFFFF !important;
    color: #D4660C !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: 1px solid #FFFFFF !important;
    border-radius: 20px !important;
    padding: 6px 18px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

.btn-gov-view-all:hover,
.btn-gov-view-all:focus,
.btn-gov-view-all:active {
    background: #FFE0B2 !important;
    color: #C55D07 !important;
    border-color: #FFE0B2 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-1px) !important;
}

/* ==========================================================================
   13. PREMIUM ADMIN DASHBOARD & CMS DESIGN SYSTEM (LOCKED PALETTE)
   ========================================================================== */

/* DISABLE INFINITE PRELOADER & DARK OVERLAY BLOCKS */
.theme-loader,
.pcoded-overlay-box {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* PAGE ENTRANCE ANIMATION */
.admin-page-entrance {
    animation: adminPageFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes adminPageFadeUp {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PAGE HEADER BAR */
.admin-page-header-box {
    background: #FFFFFF;
    border: 1px solid #D9BBA9;
    border-radius: 14px;
    padding: 18px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(74, 47, 29, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-page-header-title {
    font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
    font-weight: 800;
    color: #4A2F1D;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-page-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #FFE0B2;
    color: #D4660C;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.admin-breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #8C6E63;
}

.admin-breadcrumb a {
    color: #D4660C;
    text-decoration: none;
    transition: color 0.2s ease;
}

.admin-breadcrumb a:hover {
    color: #C55D07;
}

/* STATUS / INFO BANNER */
.admin-info-banner {
    background: linear-gradient(135deg, #FFE0B2 0%, #FFF2DF 100%);
    border: 1px solid #D9BBA9;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 24px;
    color: #4A2F1D;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-info-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    color: #C55D07;
    font-weight: 700;
    font-size: 12.5px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #D9BBA9;
}

.admin-info-banner-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #D4660C;
    box-shadow: 0 0 0 0 rgba(212, 102, 12, 0.7);
    animation: warmPulse 2s infinite;
}

@keyframes warmPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(212, 102, 12, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(212, 102, 12, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(212, 102, 12, 0);
    }
}

/* KPI CARDS DESIGN SYSTEM */
.admin-kpi-card {
    background: #FFFFFF;
    border: 1px solid #D9BBA9;
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 4px 16px rgba(74, 47, 29, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.admin-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #D4660C 0%, #CB6F4A 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.admin-kpi-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 28px rgba(212, 102, 12, 0.15);
    border-color: #D4660C;
}

.admin-kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.admin-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #FFE0B2;
    color: #D4660C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s ease;
}

.admin-kpi-card:hover .admin-kpi-icon {
    background: #D4660C;
    color: #FFFFFF;
    transform: scale(1.08) rotate(4deg);
}

.admin-kpi-label {
    font-size: 14px;
    font-weight: 700;
    color: #8C6E63;
    margin-bottom: 6px;
}

.admin-kpi-value {
    font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
    font-weight: 900;
    color: #4A2F1D;
    line-height: 1.2;
    margin-bottom: 4px;
}

.admin-kpi-subtext {
    font-size: 12.5px;
    font-weight: 600;
    color: #8C6E63;
}

/* QUICK ACTIONS BAR */
.admin-quick-actions-card {
    background: #FFFFFF;
    border: 1px solid #D9BBA9;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(74, 47, 29, 0.05);
}

.admin-quick-btn {
    background: #FFF2DF;
    border: 1px solid #D9BBA9;
    color: #4A2F1D;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-quick-btn i {
    color: #D4660C;
    font-size: 16px;
    transition: transform 0.25s ease;
}

.admin-quick-btn:hover {
    background: #FFE0B2;
    border-color: #D4660C;
    color: #C55D07;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 102, 12, 0.15);
}

.admin-quick-btn:hover i {
    transform: scale(1.15);
}

/* CMS EXECUTIVE HEADER */
.admin-cms-header {
    background: linear-gradient(135deg, #D4660C 0%, #C55D07 50%, #CB6F4A 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: #FFFFFF;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(212, 102, 12, 0.25);
    position: relative;
    overflow: hidden;
}

.admin-cms-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 224, 178, 0.25) 0%, rgba(255, 224, 178, 0) 70%);
    pointer-events: none;
}

.admin-cms-title {
    font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem);
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* CMS MODULE CARDS */
.admin-cms-module-card {
    background: #FFFFFF;
    border: 1px solid #D9BBA9;
    border-radius: 14px;
    padding: 22px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(74, 47, 29, 0.05);
}

.admin-cms-module-card:hover {
    border-color: #D4660C;
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(212, 102, 12, 0.18);
}

.admin-cms-module-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #FFE0B2;
    color: #D4660C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-cms-module-card:hover .admin-cms-module-icon {
    background: #D4660C;
    color: #FFFFFF;
    transform: scale(1.08) rotate(5deg);
}

.admin-cms-module-title {
    font-size: 16px;
    font-weight: 800;
    color: #4A2F1D;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.admin-cms-module-card:hover .admin-cms-module-title {
    color: #D4660C;
}

.admin-cms-module-desc {
    font-size: 13px;
    font-weight: 600;
    color: #8C6E63;
    line-height: 1.5;
}

/* ACCESSIBILITY: REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    .admin-page-entrance,
    .admin-kpi-card,
    .admin-quick-btn,
    .admin-cms-module-card,
    .admin-header-title-pill,
    .admin-info-banner-pulse,
    .cms-module-col {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* ==========================================================================
   ENTERPRISE CMS NAVIGATION PILL TABS SYSTEM — SPRING MOTION & ACTIVE SCALE
   ========================================================================== */

@keyframes cmsTabEntrance {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes activeGlowPulse {
    0%, 100% {
        box-shadow: 0 10px 28px rgba(212, 102, 12, 0.42), 0 0 0 3px rgba(212, 102, 12, 0.2) !important;
    }
    50% {
        box-shadow: 0 14px 36px rgba(212, 102, 12, 0.58), 0 0 0 5px rgba(212, 102, 12, 0.35) !important;
    }
}

.cms-tab-col {
    opacity: 0;
    animation: cmsTabEntrance 380ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* BASE INACTIVE PILL STATE — RECEDED AT SCALE 0.96 */
.cms-enterprise-pill {
    position: relative !important;
    z-index: 1 !important;
    transform: scale(0.96) !important;
    opacity: 0.9 !important;
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 300ms cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 250ms ease,
                opacity 250ms ease,
                background-color 250ms ease !important;
}

/* ACTIVE BUTTON PROMINENT SCALE & ELEVATION (CLICKED BUTTON IS BIGGEST & IN FRONT) */
.cms-enterprise-pill.active {
    transform: scale(1.06) translateY(-4px) !important;
    z-index: 20 !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, #E66000 0%, #B34800 100%) !important;
    border: 1.5px solid #803000 !important;
    color: #FFFFFF !important;
    box-shadow: 0 12px 30px rgba(212, 102, 12, 0.45), 0 0 0 3.5px rgba(212, 102, 12, 0.22) !important;
    animation: activeGlowPulse 3s infinite ease-in-out !important;
}

/* PARENT HOVER FOCAL ANIMATION (HOVERED BUTTON POPS BIGGEST, SIBLINGS RECEDE BEHIND) */
.cms-outer-hub-card:hover .cms-enterprise-pill:not(:hover) {
    opacity: 0.65 !important;
    transform: scale(0.93) !important;
}

.cms-enterprise-pill:hover {
    opacity: 1 !important;
    transform: scale(1.08) translateY(-5px) !important;
    z-index: 50 !important;
    border-color: #E66000 !important;
    box-shadow: 0 14px 36px rgba(212, 102, 12, 0.32) !important;
    color: #E66000 !important;
    text-decoration: none !important;
}

.cms-enterprise-pill:hover .cms-icon-circle {
    transform: scale(1.22) rotate(8deg) !important;
}

.cms-enterprise-pill.active:hover {
    transform: scale(1.08) translateY(-5px) !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.cms-icon-circle {
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* KEYBOARD NAVIGATION & ACCESSIBILITY (WCAG 2.1 COMPLIANT FOCUS INDICATOR) */
.cms-enterprise-pill:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(230, 96, 0, 0.45), 0 10px 28px rgba(212, 102, 12, 0.3) !important;
    border-color: #E66000 !important;
}

/* PRESSED INTERACTION FEEDBACK STATE */
.cms-enterprise-pill:active {
    transform: scale(0.98) translateY(0) !important;
    box-shadow: 0 4px 12px rgba(212, 102, 12, 0.25) !important;
    transition: transform 100ms ease !important;
}

/* ACCESSIBILITY: REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    .cms-tab-col,
    .cms-enterprise-pill {
        animation: none !important;
        opacity: 1 !important;
        transition: none !important;
        transform: none !important;
    }
}

/* MAIN MODULE CARD CONTAINER (EXACT 3-COL DESKTOP RESPONSIVE GRID) */
.cms-module-card {
    display: flex !important;

    flex-direction: column !important;
    justify-content: space-between !important;
    position: relative !important;
    width: 100% !important;
    min-height: 190px !important;
    height: 100% !important;
    padding: 20px 22px !important;
    background: #FFFFFF !important;
    border: 1.5px solid #D9BBA9 !important;
    border-radius: 16px !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04) !important;
    text-decoration: none !important;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 300ms cubic-bezier(0.16, 1, 0.3, 1),
                background-color 300ms cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden !important;
}

/* HOVER MICRO-INTERACTION (SECTION 6 & 7) */
.cms-module-card:hover {
    transform: translateY(-4px) !important;
    border-color: #b35400 !important;
    box-shadow: 0 12px 28px rgba(179, 84, 0, 0.18) !important;
    background: #FFFFFF !important;
    text-decoration: none !important;
}

.cms-module-card:hover .cms-icon-box {
    transform: scale(1.1) rotate(3deg) !important;
    background: #b35400 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(179, 84, 0, 0.25) !important;
}

.cms-module-card:hover .cms-number-badge {
    background: #b35400 !important;
    color: #FFFFFF !important;
    transform: scale(1.05) !important;
}

.cms-module-card:hover .cms-action-arrow {
    transform: translateX(5px) !important;
    color: #b35400 !important;
}

.cms-module-card:hover .cms-action-text {
    color: #b35400 !important;
    font-weight: 700 !important;
}

/* ACTIVE MODULE CARD STATE (SECTION 8) */
.cms-module-card.active {
    background: #FFF2DF !important;
    border: 2px solid #b35400 !important;
    border-left: 6px solid #b35400 !important;
    box-shadow: 0 8px 24px rgba(179, 84, 0, 0.22) !important;
}

.cms-module-card.active .cms-icon-box {
    background: #b35400 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(179, 84, 0, 0.3) !important;
}

.cms-module-card.active .cms-number-badge {
    background: #4A2F1D !important;
    color: #FFF2DF !important;
    font-weight: 800 !important;
}

.cms-module-card.active .cms-card-title {
    color: #b35400 !important;
    font-weight: 800 !important;
}

.cms-module-card.active .cms-action-text {
    color: #b35400 !important;
    font-weight: 800 !important;
}

.cms-module-card.active .cms-action-arrow {
    color: #b35400 !important;
}

/* CARD TOP ROW */
.cms-card-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 14px !important;
}

.cms-icon-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: #FFF2DF !important;
    color: #b35400 !important;
    font-size: 18px !important;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
                background 300ms ease, color 300ms ease !important;
}

.cms-number-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    background: #FFE0B2 !important;
    color: #4A2F1D !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    font-family: 'IBM Plex Mono', monospace !important;
    transition: all 300ms ease !important;
}

/* CARD BODY */
.cms-card-body {
    flex: 1 1 auto !important;
    margin-bottom: 12px !important;
}

.cms-card-title {
    color: #4A2F1D !important;
    font-size: clamp(1rem, 0.9rem + 0.35vw, 1.15rem) !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 0 6px 0 !important;
    transition: color 200ms ease !important;
}

.cms-card-desc {
    color: #8C6E63 !important;
    font-size: clamp(0.82rem, 0.78rem + 0.15vw, 0.92rem) !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* CARD FOOTER */
.cms-card-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 10px !important;
    border-top: 1px dashed #D9BBA9 !important;
    margin-top: auto !important;
}

.cms-action-text {
    color: #8C6E63 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    transition: color 200ms ease !important;
}
    transition: color 200ms ease !important;
}

.cms-action-arrow {
    color: #94A3B8 !important;
    font-size: 12px !important;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms ease !important;
}

/* ADVANCED FORM INPUT INTERACTIONS (SECTION 14 & 15) */
.form-control:focus,
.form-select:focus,
select.form-control:focus,
textarea.form-control:focus {
    border-color: #D4660C !important;
    box-shadow: 0 0 0 3.5px rgba(212, 102, 12, 0.18) !important;
    outline: none !important;
    background-color: #FFFFFF !important;
}

.form-control:hover,
.form-select:hover {
    border-color: #CBD5E1 !important;
}

/* PRIMARY ACTION BUTTON LIFT & ACTIVE PRESS (SECTION 17) */
.btn-primary,
.btn-warning,
.btn-danger,
.btn-success {
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1),
                background-color 200ms ease !important;
}

.btn-primary:hover,
.btn-warning:hover,
.btn-danger:hover,
.btn-success:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

.btn-primary:active,
.btn-warning:active,
.btn-danger:active,
.btn-success:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

/* HIGH-CONTRAST ENTERPRISE ACTION & GO BACK BUTTONS - CORE BRAND THEME */
.btn-gov-save,
.btn-save-action,
.btn-custom-save,
.btn-goback,
a.btn-goback,
.gradient-btn,
a.gradient-btn,
.float-btn a,
.bottom-actions a,
a.footer-btn,
button[type="submit"].btn-primary,
button[type="submit"].btn-warning,
button[type="submit"].btn-success,
button[type="submit"].gradient-btn,
button[type="submit"].btn-custom {
    background: linear-gradient(135deg, #B87B5C 0%, #382621 100%) !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    padding: 10px 24px !important;
    border-radius: 10px !important;
    border: 1.5px solid #BDAF7F !important;
    box-shadow: 0 4px 14px rgba(56, 38, 33, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    letter-spacing: 0.4px !important;
    text-transform: none !important;
    text-decoration: none !important;
}

.btn-gov-save:hover,
.btn-save-action:hover,
.btn-custom-save:hover,
.btn-goback:hover,
a.btn-goback:hover,
.gradient-btn:hover,
a.gradient-btn:hover,
.float-btn a:hover,
.bottom-actions a:hover,
a.footer-btn:hover,
button[type="submit"].btn-primary:hover,
button[type="submit"].btn-warning:hover,
button[type="submit"].btn-success:hover,
button[type="submit"].gradient-btn:hover,
button[type="submit"].btn-custom:hover {
    background: linear-gradient(135deg, #A26A4D 0%, #251815 100%) !important;
    color: #FFFFFF !important;
    transform: translateY(-3px) scale(1.015) !important;
    box-shadow: 0 8px 24px rgba(56, 38, 33, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
    border-color: #BDAF7F !important;
}

.btn-gov-save:active,
.btn-save-action:active,
.btn-custom-save:active,
.btn-goback:active,
a.btn-goback:active,
.gradient-btn:active,
a.gradient-btn:active,
.float-btn a:active,
.bottom-actions a:active,
a.footer-btn:active,
button[type="submit"].btn-primary:active,
button[type="submit"].btn-warning:active,
button[type="submit"].btn-success:active,
button[type="submit"].gradient-btn:active,
button[type="submit"].btn-custom:active {
    transform: translateY(0) scale(0.985) !important;
    box-shadow: 0 2px 6px rgba(212, 102, 12, 0.3) !important;
}

.btn-gov-save i,
.btn-save-action i,
.btn-custom-save i,
.btn-goback i,
.gradient-btn i,
.float-btn a i {
    font-size: 16px !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important;
}

/* GLOBAL FORM CONTROL FOCUS & HOVER POLISH + PLACEHOLDER CLIPPING SAFEGUARD */
.form-control,
.form-select,
input.form-control,
select.form-control {
    border: 1.5px solid #CBD5E1 !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    height: 40px !important;
    line-height: 1.35 !important;
    transition: border-color 200ms ease, box-shadow 200ms ease !important;
}

.form-control::placeholder,
input.form-control::placeholder {
    font-size: 12px !important;
    color: #94A3B8 !important;
    opacity: 0.85 !important;
}

.form-control:hover,
.form-select:hover {
    border-color: #94A3B8 !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #D4660C !important;
    box-shadow: 0 0 0 3.5px rgba(212, 102, 12, 0.18) !important;
    outline: none !important;
}

/* GLOBAL ENTERPRISE TABLE POLISH */
.table thead th {
    background-color: #FFF2DF !important;
    color: #4A2F1D !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #D9BBA9 !important;
    font-size: 13.5px !important;
    padding: 12px 14px !important;
}

.table tbody tr {
    transition: background-color 180ms ease !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(212, 102, 12, 0.04) !important;
}

/* ==========================================================================
   GLOBAL FORM LABEL PERFECT SINGLE-LINE ALIGNMENT SYSTEM
   ========================================================================== */
label,
.form-group label,
.col-form-label,
.form-label,
form label {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    margin-bottom: 6px !important;
    font-size: 13.8px !important;
    font-weight: 700 !important;
    color: #1E293B !important;
    line-height: 24px !important;
    height: 24px !important;
}

/* ==========================================================================
   PUBLIC WEBSITE MOBILE RESPONSIVE POLISH & NAVIGATION BAR (IMAGE 2)
   ========================================================================== */
@media (max-width: 768px) {
    .header-container-grid {
        flex-direction: column !important;
        text-align: center !important;
        padding: 12px 10px !important;
    }

    .emblem-right {
        display: none !important;
    }

    /* TASK 1: GOV LOGO SMALLER */
    .emblem-left {
        width: 68px !important;
        height: 68px !important;
        padding: 4px !important;
        margin: 0 auto 6px auto !important;
        border-width: 1.5px !important;
        box-shadow: 0 4px 12px rgba(212, 102, 12, 0.15) !important;
    }

    /* TASK 1: MUNICIPAL TITLE LARGER & BOLD (+2PX INCREASE) */
    .municipal-main-title {
        font-size: 26px !important;
        font-weight: 800 !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        color: #C2650A !important;
        margin-top: 4px !important;
        text-shadow: 0 1px 2px rgba(212, 102, 12, 0.12) !important;
    }

    .state-sub-title {
        font-size: 20px !important;
        font-weight: 700 !important;
        color: #C2650A !important;
        margin-top: 2px !important;
        letter-spacing: 0.5px !important;
    }

    /* TASK 2: MOBILE MENU BAR (HOME ICON LEFT, HAMBURGER TOGGLE RIGHT) MATCHING IMAGE 2 */
    .mobile-nav-bar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 8px 4px !important;
    }

    .mobile-home-btn {
        color: #FFFFFF !important;
        font-size: 24px !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 8px !important;
        transition: background 0.2s ease, transform 0.15s ease !important;
    }

    .mobile-home-btn:hover,
    .mobile-home-btn:active {
        background: rgba(255, 255, 255, 0.18) !important;
        color: #FFFFFF !important;
        transform: scale(1.06) !important;
    }

    .mobile-toggle-btn {
        background: rgba(255, 255, 255, 0.14) !important;
        color: #FFFFFF !important;
        border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
        border-radius: 8px !important;
        width: 44px !important;
        height: 38px !important;
        font-size: 20px !important;
        cursor: pointer !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease !important;
    }

    .mobile-toggle-btn:hover,
    .mobile-toggle-btn:active {
        background: rgba(255, 255, 255, 0.28) !important;
        border-color: #FFFFFF !important;
        transform: scale(1.04) !important;
    }

    /* MOBILE DROPDOWN LIST TOGGLE */
    .nav-ul {
        display: none !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 6px 0 !important;
        background: rgba(0, 0, 0, 0.18) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
        margin-top: 4px !important;
    }

    .nav-ul.show {
        display: flex !important;
    }

    .nav-item {
        width: 100% !important;
        text-align: left !important;
    }

    .nav-link {
        justify-content: flex-start !important;
        padding: 10px 16px !important;
        font-size: 16px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 0 !important;
    }

    /* PUBLIC SUB-MENU DROPDOWNS FIT CLEANLY ON MOBILE SCREEN */
    .dropdown-menu-custom {
        position: static !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border-left: 3px solid #D4660C !important;
        background: #FFFDF9 !important;
        margin-top: 6px !important;
        border-radius: 8px !important;
    }

    .top_head {
        padding: 5px 0 !important;
    }

    .top_head_container {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        gap: 6px !important;
        padding: 6px 12px !important;
    }

    .tophead_left {
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 2px !important;
    }

    .top-govern {
        font-size: 13.5px !important;
        font-weight: 800 !important;
        letter-spacing: 0.2px !important;
        line-height: 1.3 !important;
        display: block !important;
        text-align: center !important;
    }

    .tophead_right {
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
    }

    .font-controls {
        gap: 1px !important;
        padding: 2px 3px !important;
    }

    .font-btn {
        border-radius: 5px !important;
    }

    .font-btn-sm {
        font-size: 9px !important;
        width: 21px !important;
        height: 21px !important;
    }

    .font-btn-md {
        font-size: 13px !important;
        width: 24px !important;
        height: 24px !important;
    }

    .font-btn-lg {
        font-size: 10px !important;
        width: 22px !important;
        height: 22px !important;
    }

    .social-links {
        gap: 10px !important;
    }

    .social-links a {
        font-size: 13px !important;
    }

    .skip-content {
        margin-left: auto !important;
    }

    .skip-content a {
        font-size: 11px !important;
        padding: 2px 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
    }

    .skip-text-full {
        display: none !important;
    }

    .skip-text-short {
        display: inline !important;
        font-weight: 700 !important;
    }
}

@media (max-width: 480px) {
    .top-govern {
        font-size: 11px !important;
    }

    .tophead_right {
        gap: 6px 10px !important;
    }

    .municipal-main-title {
        font-size: 23px !important;
    }

    .state-sub-title {
        font-size: 18.5px !important;
    }
}


/* ===========================================================================
   PREMIUM ADMIN DATATABLE & TABLE UI OVERRIDES
   Applies to: सम्पत्ति कर / जलकर (भवन कर, रिपोर्ट, मास्टर) all data tables
   Colors: matching project orange/brown palette
   =========================================================================== */

/* ---- Excel Export Button (Light, Soft Emerald Professional Theme) ---- */
.dt-buttons .dt-button.buttons-excel,
.dt-buttons .dt-button.buttons-html5,
div.dataTables_wrapper .dt-buttons a.buttons-excel,
div.dataTables_wrapper .dt-buttons a.buttons-html5,
div.dataTables_wrapper div.dt-buttons a.dt-button.buttons-excel,
a.dt-button.buttons-excel,
button.dt-button.buttons-excel {
    background: #EFFDF4 !important;
    background-color: #EFFDF4 !important;
    background-image: none !important;
    border: 1.5px solid #16A34A !important;
    border-radius: 8px !important;
    color: #14532D !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    font-family: 'Poppins', 'Hind', system-ui, -apple-system, sans-serif !important;
    padding: 7px 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.12) !important;
    transition: all 0.2s ease-in-out !important;
    text-shadow: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.dt-buttons .dt-button.buttons-excel *,
div.dataTables_wrapper .dt-buttons a.buttons-excel *,
a.dt-button.buttons-excel *,
button.dt-button.buttons-excel * {
    color: #14532D !important;
    font-weight: 700 !important;
}

.dt-buttons .dt-button.buttons-excel:hover,
div.dataTables_wrapper .dt-buttons a.buttons-excel:hover,
a.dt-button.buttons-excel:hover,
button.dt-button.buttons-excel:hover {
    background: #16A34A !important;
    background-color: #16A34A !important;
    border-color: #15803D !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.28) !important;
    transform: translateY(-1px) !important;
}

.dt-buttons .dt-button.buttons-excel:hover *,
div.dataTables_wrapper .dt-buttons a.buttons-excel:hover *,
a.dt-button.buttons-excel:hover *,
button.dt-button.buttons-excel:hover * {
    color: #ffffff !important;
}

.dt-buttons .dt-button.buttons-excel::before,
div.dataTables_wrapper .dt-buttons a.buttons-excel::before,
a.dt-button.buttons-excel::before {
    content: "\f1c3" !important;
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    color: #16A34A !important;
}

/* Hide extra nested HTML icon inside Excel button to prevent double icon bug */
.dt-buttons .dt-button.buttons-excel i,
.dt-buttons .dt-button.buttons-excel span.dt-button-icon,
.dt-buttons .dt-button.buttons-excel .fa,
.dt-buttons .dt-button.buttons-excel .fas,
.dt-buttons .dt-button.buttons-excel svg,
div.dataTables_wrapper .dt-buttons a.buttons-excel i,
a.dt-button.buttons-excel i {
    display: none !important;
}

.dt-buttons .dt-button.buttons-excel:hover::before,
div.dataTables_wrapper .dt-buttons a.buttons-excel:hover::before,
a.dt-button.buttons-excel:hover::before {
    color: #ffffff !important;
}

/* ---- Print Button (Soft Warm Slate Theme) ---- */
.dt-buttons .dt-button.buttons-print,
div.dataTables_wrapper .dt-buttons a.buttons-print,
a.dt-button.buttons-print,
button.dt-button.buttons-print {
    background: #F8F5F2 !important;
    background-color: #F8F5F2 !important;
    background-image: none !important;
    border: 1.5px solid #8C705F !important;
    border-radius: 8px !important;
    color: #4A3A2A !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    font-family: 'Poppins', 'Hind', system-ui, -apple-system, sans-serif !important;
    padding: 7px 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 6px rgba(140, 112, 95, 0.12) !important;
    transition: all 0.2s ease-in-out !important;
    text-shadow: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.dt-buttons .dt-button.buttons-print *,
div.dataTables_wrapper .dt-buttons a.buttons-print *,
a.dt-button.buttons-print * {
    color: #4A3A2A !important;
    font-weight: 700 !important;
}

.dt-buttons .dt-button.buttons-print:hover,
div.dataTables_wrapper .dt-buttons a.buttons-print:hover,
a.dt-button.buttons-print:hover,
button.dt-button.buttons-print:hover {
    background: #6B5546 !important;
    background-color: #6B5546 !important;
    border-color: #534135 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(107, 85, 70, 0.25) !important;
    transform: translateY(-1px) !important;
}

.dt-buttons .dt-button.buttons-print:hover *,
div.dataTables_wrapper .dt-buttons a.buttons-print:hover * {
    color: #ffffff !important;
}

/* ---- Wrapper toolbar row (length + search) ---- */
div.dataTables_wrapper div.dataTables_length {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

div.dataTables_wrapper div.dataTables_length label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    color: #4A2F1D !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

div.dataTables_wrapper div.dataTables_length select {
    border: 2px solid #D4660C !important;
    border-radius: 8px !important;
    padding: 5px 28px 5px 10px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #4A2F1D !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D4660C' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    min-width: 70px !important;
    outline: none !important;
    box-shadow: none !important;
}

div.dataTables_wrapper div.dataTables_length select:focus {
    border-color: #B35400 !important;
    box-shadow: 0 0 0 3px rgba(212, 102, 12, 0.15) !important;
}

/* ---- Distinct Modern Search Box Section (खोजें) ---- */
div.dataTables_wrapper div.dataTables_filter {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-bottom: 8px !important;
}

div.dataTables_wrapper div.dataTables_filter label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #4A2F1D !important;
    margin: 0 !important;
    background: #FFF5EE !important;
    padding: 4px 8px 4px 12px !important;
    border-radius: 10px !important;
    border: 1.5px solid #F0DDD3 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

div.dataTables_wrapper div.dataTables_filter input {
    border: 2px solid #D4660C !important;
    border-radius: 8px !important;
    padding: 7px 14px 7px 34px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #4A2F1D !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23D4660C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 10px center !important;
    outline: none !important;
    min-width: 210px !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06) !important;
    transition: all 0.2s ease !important;
}

div.dataTables_wrapper div.dataTables_filter input:focus {
    border-color: #B35400 !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04), 0 0 0 3px rgba(212, 102, 12, 0.18) !important;
}

div.dataTables_wrapper div.dataTables_filter input::placeholder {
    color: #BFA89A !important;
    font-style: italic !important;
}

/* ---- Custom column-search input (भवन संख्या से खोजें) ---- */
.column-search,
input#searchHouseNumber {
    border: 2px solid #D4660C !important;
    border-radius: 8px !important;
    padding: 7px 14px 7px 34px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #4A2F1D !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23D4660C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 10px center !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06) !important;
}

.column-search:focus,
input#searchHouseNumber:focus {
    border-color: #B35400 !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04), 0 0 0 3px rgba(212, 102, 12, 0.18) !important;
}

/* ---- Table Container ---- */
.card-body .table-responsive,
div.dataTables_wrapper {
    border-radius: 12px !important;
}

/* ---- DataTable Table Base ---- */
.js-buttons-all,
table.js-buttons-all,
table#example1,
table#example2,
table#consumerTable,
.pcoded-content table.table-bordered.table-striped.js-buttons-all {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 1.5px solid #D4660C !important;
    width: 100% !important;
    font-size: 13.5px !important;
}

/* ---- Table Headers ---- */
/* ---- Table Headers ---- */
.js-buttons-all thead th,
table.js-buttons-all thead tr th,
table#example1 thead th,
table#example2 thead th,
table#consumerTable thead th,
.pcoded-content table.js-buttons-all thead th {
    background: linear-gradient(135deg, #B87B5C 0%, #382621 100%) !important;
    background-color: #B87B5C !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 11px 14px !important;
    border-color: #BDAF7F !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
}

/* ---- Table Header Sort Arrows (DataTables) ---- */
.js-buttons-all thead th.sorting::before,
.js-buttons-all thead th.sorting_asc::before,
.js-buttons-all thead th.sorting_desc::before,
table#example1 thead th.sorting::before,
table#example2 thead th.sorting::before,
table#consumerTable thead th.sorting::before {
    color: rgba(255,255,255,0.7) !important;
}

.js-buttons-all thead th.sorting::after,
.js-buttons-all thead th.sorting_asc::after,
.js-buttons-all thead th.sorting_desc::after,
table#example1 thead th.sorting::after,
table#example2 thead th.sorting::after,
table#consumerTable thead th.sorting::after {
    color: rgba(255,255,255,0.7) !important;
}

/* ---- Table Body Rows ---- */
.js-buttons-all tbody tr td,
table#example1 tbody tr td,
table#example2 tbody tr td,
table#consumerTable tbody tr td {
    padding: 10px 14px !important;
    vertical-align: middle !important;
    border-color: #BDAF7F !important;
    color: #382621 !important;
    font-size: 13.5px !important;
}

/* ---- Alternating Row Striping ---- */
.js-buttons-all tbody tr:nth-child(even),
table#example1 tbody tr:nth-child(even),
table#example2 tbody tr:nth-child(even),
table#consumerTable tbody tr:nth-child(even) {
    background-color: #FDFBF7 !important;
}

.js-buttons-all tbody tr:nth-child(odd),
table#example1 tbody tr:nth-child(odd),
table#example2 tbody tr:nth-child(odd),
table#consumerTable tbody tr:nth-child(odd) {
    background-color: #FFFFFF !important;
}

/* ---- Row Hover ---- */
.js-buttons-all tbody tr:hover,
table#example1 tbody tr:hover,
table#example2 tbody tr:hover,
table#consumerTable tbody tr:hover {
    background-color: #FFE8D6 !important;
    transition: background-color 0.15s ease !important;
}

/* ---- Table Footer Row ---- */
.js-buttons-all tfoot tr th,
.js-buttons-all tfoot tr td,
table#example1 tfoot tr th,
table#example1 tfoot tr td,
table#example2 tfoot tr th,
table#example2 tfoot tr td,
table#consumerTable tfoot tr th,
table#consumerTable tfoot tr td {
    background: #F4F2EB !important;
    color: #382621 !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 10px 14px !important;
    border-color: #BDAF7F !important;
    border-top: 2px solid #BDAF7F !important;
}

/* ---- thead-dark override for all admin tables ---- */
.js-buttons-all thead.thead-dark th,
table#example1 thead.thead-dark th,
table#example2 thead.thead-dark th,
table#consumerTable thead.thead-dark th {
    background: linear-gradient(135deg, #B87B5C 0%, #382621 100%) !important;
    background-color: #B87B5C !important;
    color: #ffffff !important;
    border-color: #BDAF7F !important;
}

/* ---- DataTable Info text (पृष्ठ X का Y / Showing 0 to 0 of 0 entries) ---- */
div.dataTables_wrapper div.dataTables_info {
    font-weight: 600 !important;
    font-size: 13.5px !important;
    color: #382621 !important;
    padding-top: 8px !important;
}

/* ---- DataTable Pagination ---- */
div.dataTables_wrapper div.dataTables_paginate {
    margin-top: 4px !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination,
div.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

div.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1.5px solid #BDAF7F !important;
    border-radius: 8px !important;
    color: #B87B5C !important;
    font-weight: 600 !important;
    padding: 5px 13px !important;
    cursor: pointer !important;
    background: #fff !important;
    transition: all 0.18s ease !important;
    font-size: 13.5px !important;
    min-width: 36px !important;
    text-align: center !important;
    box-shadow: none !important;
}

div.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #FFE8D6 !important;
    border-color: #B87B5C !important;
    color: #B87B5C !important;
    box-shadow: none !important;
}

div.dataTables_wrapper .dataTables_paginate .paginate_button.current,
div.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #B87B5C 0%, #382621 100%) !important;
    border-color: #BDAF7F !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(184, 123, 92, 0.3) !important;
}

div.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
div.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    border-color: #E0C8B8 !important;
    color: #BFA89A !important;
    background: #FAF3EE !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
}

/* ---- पिछला / अगला pagination text buttons ---- */
div.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
div.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    font-weight: 700 !important;
}

/* ---- Unique ID badge style (chip pill) ---- */
.js-buttons-all td .uid-badge,
.admin-uid-badge {
    background: #382621 !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 3px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
}

/* ---- Card header for भवन कर pages ---- */
.card.card-info .card-header {
    background: linear-gradient(135deg, #B87B5C 0%, #382621 100%) !important;
    color: #ffffff !important;
    border-bottom: none !important;
    padding: 14px 20px !important;
}

.card.card-info .card-header h3.card-title,
.card.card-info .card-header .card-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 17px !important;
    margin: 0 !important;
}

/* ---- DT Buttons & Toolbar formatting ---- */
div.dataTables_wrapper div.dt-buttons {
    float: left !important;
    margin-right: 15px !important;
    margin-bottom: 10px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
}

div.dataTables_wrapper .dataTables_length {
    float: left !important;
    margin-bottom: 10px !important;
    padding-top: 2px !important;
}

div.dataTables_wrapper .dataTables_filter {
    float: right !important;
    margin-bottom: 10px !important;
}

div.dataTables_wrapper tfoot tr {
    background: #FFE0B2 !important;
    color: #4A2F1D !important;
}

div.dataTables_wrapper tfoot tr th {
    border-top: 2px solid #D4660C !important;
    border-bottom: 2px solid #D4660C !important;
    padding: 8px 10px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
}

/* ---- Mobile responsive adjustments ---- */
@media (max-width: 768px) {
    .js-buttons-all thead th,
    .js-buttons-all tbody tr td,
    .js-buttons-all tfoot tr th,
    table#example1 thead th,
    table#example1 tbody tr td,
    table#example2 thead th,
    table#example2 tbody tr td,
    table#consumerTable thead th,
    table#consumerTable tbody tr td {
        font-size: 12px !important;
        padding: 8px 8px !important;
    }

    div.dataTables_wrapper div.dataTables_filter input {
        min-width: 130px !important;
    }

    div.dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 4px 9px !important;
        font-size: 12px !important;
        min-width: 30px !important;
    }

    div.dataTables_wrapper div.dt-buttons {
        justify-content: flex-start !important;
    }
}


/* ===========================================================================
   HIGH-CONTRAST FORM SELECT & OPTION TYPOGRAPHY OVERRIDES (+2px Bold & High Visibility)
   Applies to: वित्तीय वर्ष, वार्ड, भवन प्रकार, etc. form dropdowns & options
   =========================================================================== */

/* ---- Form Labels (वित्तीय वर्ष, वार्ड, प्रारम्भिक तिथि, etc.) ---- */
.pcoded-content .form-group label,
.pcoded-content form label,
.card-body form label {
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #4A2F1D !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.2px !important;
}

/* ---- Select Input Box (वित्तीय वर्ष, वार्ड, etc.) ---- */
.pcoded-content select.form-control,
.pcoded-content select#selection,
.pcoded-content select[name="fin_year"],
.pcoded-content select[name="ward_no"],
.pcoded-content select[name="house_type_id"],
.pcoded-content select[name="house_location_id"],
.pcoded-content select[name="house_detail_id"],
.pcoded-content .form-group select,
.card-body select,
select.form-control {
    font-size: 16.5px !important;
    font-weight: 700 !important;
    color: #2A1506 !important;
    background-color: #ffffff !important;
    border: 2px solid #D4660C !important;
    border-radius: 8px !important;
    padding: 8px 34px 8px 14px !important;
    height: auto !important;
    min-height: 44px !important;
    line-height: 1.4 !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05), 0 2px 6px rgba(212, 102, 12, 0.08) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.pcoded-content select.form-control:focus,
.pcoded-content select#selection:focus,
.pcoded-content select[name="fin_year"]:focus,
.pcoded-content select[name="ward_no"]:focus,
.pcoded-content .form-group select:focus,
select.form-control:focus {
    border-color: #B35400 !important;
    box-shadow: 0 0 0 4px rgba(212, 102, 12, 0.2) !important;
    outline: none !important;
}

/* ---- Select Options (Dropdown Popup Items - वित्तीय वर्ष 2026-27, वार्ड name, etc.) ---- */
.pcoded-content select option,
.pcoded-content select#selection option,
.pcoded-content form select option,
.card-body select option,
select option {
    font-size: 16.5px !important;
    font-weight: 700 !important;
    color: #1F0D03 !important;
    background-color: #FFFFFF !important;
    padding: 10px 14px !important;
    line-height: 1.5 !important;
}

.pcoded-content select option:hover,
.pcoded-content select option:focus,
.pcoded-content select option:checked,
select option:checked {
    background-color: #FFE8D6 !important;
    color: #B35400 !important;
    font-weight: 800 !important;
}

/* ---- Date Inputs & Normal Form Inputs ---- */
.pcoded-content input[type="date"].form-control,
.pcoded-content input[type="text"].form-control,
.pcoded-content input[type="number"].form-control {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #2A1506 !important;
    border: 2px solid #D4660C !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    height: auto !important;
    min-height: 44px !important;
}

/* ===========================================================================
   COMPREHENSIVE MOBILE-FIRST RESPONSIVE SYSTEM v25.0
   Professional Quality — Production Ready for Millions of Users
   =========================================================================== */

/* ---- Base: Prevent Horizontal Overflow on Any Screen ---- */
html, body {
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* ---- Touch Targets: Minimum 44px (Apple HIG / WCAG) ---- */
a, button, .btn, .nav-link, .dropdown-item-custom,
.btn-gov, .btn-gov-warm, .paginate_button {
    min-height: 44px;
}

/* ===========================================================================
   WEB PORTAL: TABLET & MOBILE (≤ 991px)
   =========================================================================== */
@media (max-width: 991px) {

    /* ---- TOP ACCESSIBILITY BAR ---- */
    .top_head { padding: 4px 0 !important; }
    .top_head_container { flex-wrap: wrap !important; gap: 4px !important; padding: 0 12px !important; }
    .tophead_left { width: 100% !important; justify-content: center !important; }
    .top-govern { font-size: 11.5px !important; text-align: center !important; }
    .tophead_right { width: 100% !important; justify-content: center !important; gap: 10px !important; }
    .skip-text-full { display: none !important; }
    .skip-text-short { display: inline !important; }
    .font-btn { padding: 2px 7px !important; font-size: 11px !important; }

    /* ---- MAIN BRANDING HEADER ---- */
    .header-wrapper { padding: 8px 0 !important; }
    .header-container-grid {
        padding: 0 12px !important;
        gap: 8px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    .emblem-circle-badge {
        width: 64px !important;
        height: 64px !important;
        flex-shrink: 0 !important;
    }
    .cm-portrait-badge {
        width: 64px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .cm-photo-wrapper {
        width: 52px !important;
        height: 58px !important;
        border-radius: 4px !important;
    }
    .cm-details {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-top: 3px !important;
        line-height: 1.1 !important;
    }
    .cm-name {
        font-size: 11px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
    }
    .cm-post {
        font-size: 9px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    .center-brand-block {
        flex-grow: 1 !important;
        text-align: center !important;
    }
    .municipal-main-title { font-size: clamp(1rem, 4vw, 1.45rem) !important; line-height: 1.25 !important; }
    .state-sub-title { font-size: clamp(0.72rem, 2.8vw, 0.95rem) !important; margin-top: 2px !important; }

    /* ---- MOBILE NAV BAR ---- */
    .super-menu { position: sticky !important; top: 0 !important; z-index: 1000 !important; }
    .mobile-nav-bar { display: flex !important; padding: 0 12px !important; height: 50px !important; align-items: center !important; justify-content: space-between !important; }
    .mobile-home-btn { color: #FFFFFF !important; font-size: 22px !important; padding: 8px !important; display: flex !important; align-items: center !important; text-decoration: none !important; min-height: 44px !important; }
    .mobile-toggle-btn { background: rgba(255,255,255,0.2) !important; border: 1.5px solid rgba(255,255,255,0.6) !important; border-radius: 8px !important; color: #FFFFFF !important; font-size: 18px !important; padding: 6px 14px !important; cursor: pointer !important; min-height: 44px !important; }

    /* Mobile Nav Dropdown */
    .nav-ul { display: none !important; flex-direction: column !important; width: 100% !important; padding: 4px 8px !important; background: linear-gradient(180deg, #A85A18 0%, #C25515 100%) !important; max-height: 72vh !important; overflow-y: auto !important; border-top: 1px solid rgba(255,255,255,0.2) !important; -webkit-overflow-scrolling: touch !important; }
    .nav-ul.show { display: flex !important; }
    .nav-item { flex: none !important; width: 100% !important; border-bottom: 1px solid rgba(255,255,255,0.12) !important; position: relative !important; }
    .nav-item:last-child { border-bottom: none !important; }
    .nav-link { padding: 12px 14px !important; font-size: 15.5px !important; justify-content: flex-start !important; width: 100% !important; white-space: normal !important; border-radius: 8px !important; min-height: 48px !important; }

    /* Dropdown on mobile: full width static */
    .dropdown-menu-custom { position: static !important; display: none !important; width: 100% !important; border-radius: 8px !important; box-shadow: none !important; border-top: 1px solid rgba(255,255,255,0.15) !important; background: rgba(0,0,0,0.18) !important; margin: 0 0 4px 0 !important; padding: 4px 0 !important; animation: none !important; }
    .nav-item.open .dropdown-menu-custom { display: block !important; }
    .dropdown-item-custom { color: #FFFFFF !important; font-size: 14px !important; padding: 11px 18px !important; border-bottom: 1px solid rgba(255,255,255,0.08) !important; min-height: 44px !important; }
    .dropdown-item-custom:hover { background: rgba(255,255,255,0.15) !important; color: #FFE0B2 !important; }
    .dropdown-item-custom i { color: #FFE0B2 !important; }
    .nav-item:last-child .dropdown-menu-custom,
    .nav-item:nth-last-child(2) .dropdown-menu-custom { left: 0 !important; right: auto !important; }

    /* ---- TICKER ---- */
    .ticker-label { font-size: 13px !important; padding: 8px 12px !important; }
    .ticker-item { font-size: 13.5px !important; padding: 0 18px !important; }

    /* ---- HERO SLIDER ---- */
    .hero-slide-item { height: 380px !important; min-height: 380px !important; max-height: 380px !important; }
    .hero-slide-img { object-fit: cover !important; object-position: center center !important; height: 100% !important; }
    .hero-slide-overlay { padding: 36px 14px 16px 14px !important; }
    .hero-slide-overlay h2 { font-size: clamp(1.1rem, 4vw, 1.4rem) !important; }
    .hero-slide-overlay p { font-size: 0.9rem !important; }

    /* ---- SERVICE CARDS ---- */
    .service-card { padding: 20px 16px !important; }
    .service-icon { width: 58px !important; height: 58px !important; font-size: 24px !important; }
    .service-title { font-size: 17px !important; }
    .section-heading h2 { font-size: 22px !important; }
    .section-heading p { font-size: 14.5px !important; }

    /* ---- FOOTER ---- */
    .gov-footer { padding: 30px 0 14px !important; }
    .footer-container { padding: 0 14px !important; }
    .footer-title { font-size: 16px !important; }
    .footer-links li a { font-size: 14px !important; padding: 4px 0 !important; }
    .footer-bottom { text-align: center !important; font-size: 13px !important; }

    /* ---- BREADCRUMB ---- */
    .breadcrumb-title { font-size: 18px !important; }
    .breadcrumb-list { font-size: 13px !important; flex-wrap: wrap !important; }

    /* ---- NOTICE BOARD ---- */
    .notice-board-header { font-size: 15px !important; padding: 12px 14px !important; flex-wrap: wrap !important; gap: 8px !important; }
    .notice-board-body { max-height: 280px !important; }

    /* ---- PAY TAX CTA ---- */
    .gov-tax-slide-wrapper { bottom: 65px !important; }

    /* ---- PAGE BODY TYPOGRAPHY ---- */
    .container { padding-left: 14px !important; padding-right: 14px !important; }
    h1 { font-size: clamp(1.4rem, 5vw, 2rem) !important; }
    h2 { font-size: clamp(1.2rem, 4vw, 1.6rem) !important; }
    h3 { font-size: clamp(1rem, 3.5vw, 1.3rem) !important; }
    p, li { font-size: 14.5px !important; line-height: 1.65 !important; }
    input, textarea, select, .form-control { font-size: 16px !important; }
}

/* ===========================================================================
   WEB PORTAL: SMALL PHONE (≤ 576px)
   =========================================================================== */
@media (max-width: 576px) {
    .emblem-circle-badge { width: 50px !important; height: 50px !important; padding: 2px !important; }
    .cm-portrait-badge { width: 50px !important; }
    .cm-photo-wrapper { width: 42px !important; height: 46px !important; }
    .cm-name {
        font-size: 8.5px !important;
        line-height: 1.1 !important;
    }
    .cm-post {
        font-size: 7px !important;
        line-height: 1.1 !important;
    }
    .municipal-main-title { font-size: clamp(0.85rem, 4.8vw, 1.15rem) !important; }
    .state-sub-title { font-size: clamp(0.65rem, 3.2vw, 0.82rem) !important; }
    .hero-slide-item { height: 280px !important; min-height: 280px !important; max-height: 280px !important; }
    .hero-slide-img { object-fit: cover !important; object-position: center center !important; height: 100% !important; }
    .hero-slide-overlay h2 { font-size: clamp(0.88rem, 4.2vw, 1.05rem) !important; }
    .hero-slide-overlay p { display: block !important; font-size: clamp(0.7rem, 3vw, 0.82rem) !important; margin-top: 3px !important; line-height: 1.3 !important; }
    .scroll-top-btn { bottom: 72px !important; right: 14px !important; }
    .gov-tax-slide-wrapper { bottom: 80px !important; }
    .section-heading h2 { font-size: 19px !important; }
    .services-section { padding: 24px 0 !important; }
    .leaders-section { padding: 24px 0 !important; }
}

/* ===========================================================================
   ADMIN PANEL: MOBILE (≤ 991px)
   =========================================================================== */
@media (max-width: 991px) {

    /* Admin Header */
    .pcoded-header,
    nav.header-navbar.pcoded-header {
        height: 60px !important;
    }
    .admin-custom-topbar { padding: 4px 10px !important; }
    .admin-main-title { font-size: 13.5px !important; white-space: normal !important; line-height: 1.2 !important; }
    .admin-sub-title { font-size: 11px !important; white-space: normal !important; line-height: 1.2 !important; }
    .admin-header-icon { display: none !important; }
    .admin-header-logout-btn span { display: none !important; }
    .admin-header-logout-btn { padding: 5px 10px !important; font-size: 11px !important; }

    /* Admin Sidebar adjustment */
    .pcoded-navbar, nav.pcoded-navbar { top: 60px !important; height: calc(100vh - 60px) !important; }

    /* Admin Content & Grid Spacing (Minimize gaps on mobile) */
    .pcoded-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 8px 6px !important;
        margin-top: 60px !important;
    }

    .pcoded-inner-content,
    .pcoded-content .pcoded-inner-content,
    .pcoded-content .main-body,
    .pcoded-content .page-wrapper,
    .pcoded-content .page-body,
    .content-wrapper,
    .container-fluid,
    .container {
        padding-left: 4px !important;
        padding-right: 4px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .px-4, .px-md-4 {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .row {
        margin-left: -4px !important;
        margin-right: -4px !important;
    }

    .row > [class*="col-"] {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    /* Admin Cards */
    .card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 12px !important;
    }
    .card-header { padding: 10px 12px !important; }
    .card-body { padding: 12px 10px !important; }
    .card.card-info .card-header h3.card-title,
    .card.card-info .card-header .card-title { font-size: 14.5px !important; }

    /* Admin Forms */
    .pcoded-content .form-group label,
    .card-body form label { font-size: 14px !important; margin-bottom: 4px !important; }

    /* Datatables */
    div.dataTables_wrapper { overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
    div.dataTables_wrapper .dataTables_length label,
    div.dataTables_wrapper .dataTables_filter label { font-size: 13px !important; }
    div.dataTables_wrapper .dataTables_filter input { font-size: 14px !important; min-height: 38px !important; }
    div.dataTables_wrapper .dataTables_info { font-size: 12px !important; }
    div.dataTables_wrapper .dataTables_paginate { text-align: center !important; padding: 8px 0 !important; }
    div.dataTables_wrapper .dataTables_paginate .paginate_button { padding: 5px 10px !important; font-size: 13px !important; min-height: 36px !important; }

    /* Table scroll */
    .js-buttons-all,
    table#example1,
    table#example2,
    table#consumerTable { min-width: 580px !important; }
    div.dataTables_wrapper .dataTables_scrollBody,
    .table-responsive { width: 100% !important; overflow-x: auto !important; }

    /* Excel/Print buttons */
    .dt-buttons .dt-button.buttons-excel,
    .dt-buttons .dt-button.buttons-html5,
    .dt-buttons .dt-button.buttons-print,
    div.dataTables_wrapper .dt-buttons a { font-size: 12px !important; padding: 7px 12px !important; }

    /* Back to Dashboard button */
    .fixed-button { bottom: 14px !important; left: 50% !important; transform: translateX(-50%) !important; z-index: 9999 !important; }
    .fixed-button .btn { font-size: 13.5px !important; padding: 9px 18px !important; border-radius: 30px !important; white-space: nowrap !important; }
}

/* ===========================================================================
   ADMIN PANEL: SMALL PHONE (≤ 480px)
   =========================================================================== */
@media (max-width: 480px) {
    .admin-main-title { font-size: 12px !important; }
    .admin-sub-title { font-size: 10px !important; }
    .admin-mobile-toggle-btn { width: 36px !important; height: 34px !important; font-size: 17px !important; }
    .card-body { padding: 10px 8px !important; }
    div.dataTables_wrapper div.dt-buttons { flex-direction: column !important; align-items: flex-start !important; }
}

/* ===========================================================================
   PRINT STYLES: PRESERVE BILL & RECEIPT
   =========================================================================== */
@media print {
    .top_head, .super-menu, .gov-footer, .scroll-top-btn,
    .gov-tax-slide-wrapper, .fixed-button, .admin-drawer-backdrop,
    .pcoded-navbar { display: none !important; }
    .pcoded-content { margin-left: 0 !important; width: 100% !important; padding: 0 !important; }
    body { font-size: 12pt !important; color: #000 !important; background: #fff !important; }
    @page { margin: 10mm; }
}

/* ===========================================================================
   DROPDOWN OPEN-STATE (JS adds .open on mobile tap)
   =========================================================================== */
.nav-item.open > a { background-color: rgba(0,0,0,0.2) !important; }
.nav-item.open > .dropdown-menu-custom { display: block !important; }

/* ===========================================================================
   DATATABLES HORIZONTAL SCROLLBAR & OVERFLOW 
   =========================================================================== */
.card-body,
.card-body.table-responsive {
    overflow-x: auto !important;
    width: 100% !important;
}

div.dataTables_wrapper {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    margin-bottom: 10px !important;
}

div.dataTables_wrapper table.js-buttons-all,
div.dataTables_wrapper table.dataTable,
div.dataTables_wrapper table.table {
    width: 100% !important;
    margin: 0 !important;
}

div.dataTables_wrapper table th,
div.dataTables_wrapper table td {
    white-space: nowrap !important;
    vertical-align: middle !important;
}

/* Styled visible horizontal scrollbar for DataTables */
div.dataTables_wrapper::-webkit-scrollbar,
.card-body::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
    height: 9px !important;
}
div.dataTables_wrapper::-webkit-scrollbar-track,
.card-body::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track {
    background: #F5EAE1 !important;
    border-radius: 4px !important;
}
div.dataTables_wrapper::-webkit-scrollbar-thumb,
.card-body::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
    background: #D4660C !important;
    border-radius: 4px !important;
}
div.dataTables_wrapper::-webkit-scrollbar-thumb:hover,
.card-body::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #B35400 !important;
}

/* ==========================================================================
   GLOBAL SPACING FOR ICONS AND ADJACENT TEXT (ADMIN PORTAL)
   ========================================================================== */
.pcoded-content i.fa, 
.pcoded-content i.fas, 
.pcoded-content i.far, 
.pcoded-content i.fab, 
.pcoded-content i.fal, 
.pcoded-content i.fad,
.pcoded-content i.bi,
.admin-breadcrumb i.fa,
.admin-breadcrumb i.fas,
.admin-breadcrumb i.far {
    margin-right: 8px !important;
}

/* ABSOLUTE GUARANTEED DEAD-CENTER ALIGNMENT FOR ALL CIRCULAR/CONTAINER ICONS IN ADMIN PORTAL */
.rounded-circle,
.cms-icon-circle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

div.rounded-circle i,
div.rounded-circle i.fa,
div.rounded-circle i.fas,
div.rounded-circle i.far,
div.rounded-circle i.fab,
div.rounded-circle i.fal,
div.rounded-circle i.fad,
div.rounded-circle i.bi,
span.rounded-circle i,
span.rounded-circle i.fa,
span.rounded-circle i.fas,
span.rounded-circle i.far,
span.rounded-circle i.fab,
span.rounded-circle i.fal,
span.rounded-circle i.fad,
span.rounded-circle i.bi,
.cms-icon-circle i,
.cms-icon-circle i.fa,
.cms-icon-circle i.fas,
.pcoded-micon i,
.pcoded-micon i.fa,
.pcoded-micon i.fas,
.icon-box i,
.icon-box i.fa,
.avatar i {
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: inline-block !important;
    text-align: center !important;
}

/* Reset margin for action buttons in tables that only contain icons (no text) */
td .btn i,
td a i,
td button i,
.table-responsive td i,
.action-buttons i {
    margin-right: 0 !important;
}

/* Dashboard Table Font Size 2.5px Larger & Solid Green Amount Color */
.admin-dashboard-table,
.admin-dashboard-table th,
.admin-dashboard-table td {
    font-size: 16px !important;
}

.amount-green-text {
    color: #1b5e20 !important;
    font-weight: 700 !important;
    font-size: 16.5px !important;
}

/* Premium KPI Card Hover Effect and Styling */
.admin-kpi-card {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}
.admin-kpi-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08) !important;
}

/* ==========================================================================
   GLOBAL RIGHT ALIGNMENT FOR ALL NUMERIC & FINANCIAL DATA IN ADMIN TABLES
   ========================================================================== */
.text-right,
.text-end,
.num-col,
.amt-col,
.tax-col,
.num-cell-right,
td.text-right,
th.text-right,
td.text-end,
th.text-end,
.dt-type-numeric,
.dt-right {
    text-align: right !important;
}

/* Ensure tfoot totals columns in DataTables are right aligned */
table.table tfoot tr td:not(:first-child),
table.dataTable tfoot tr td:not(:first-child),
table.table tfoot tr th:not(:first-child),
table.dataTable tfoot tr th:not(:first-child) {
    text-align: right !important;
    padding-right: 14px !important;
}

/* Update bg-success badge to be solid green instead of light green */
.badge.bg-success {
    background-color: #1b5e20 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: bold !important;
    padding: 6px 12px !important;
    border-radius: 30px !important;
}

/* Carousel indicators are intentionally hidden (removed from HTML) to prevent overlap artifacts */
.carousel-indicators {
    display: none !important;
}

@media (max-width: 768px) {
    .hero-slide-item {
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
    }

    .hero-slide-img {
        object-fit: cover !important;
        object-position: center center !important;
        height: 100% !important;
    }

    .hero-slide-overlay {
        padding: 20px 14px 34px 14px !important;
    }

    .hero-slide-overlay h2 {
        font-size: clamp(1rem, 4.2vw, 1.25rem) !important;
        margin-bottom: 2px !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 576px) {
    .hero-slide-item {
        height: 260px !important;
        min-height: 260px !important;
        max-height: 260px !important;
    }

    .hero-slide-img {
        object-fit: cover !important;
        object-position: center center !important;
        height: 100% !important;
    }

    .hero-slide-overlay {
        padding: 16px 10px 32px 10px !important;
    }

    .hero-slide-overlay h2 {
        font-size: clamp(0.95rem, 4.5vw, 1.15rem) !important;
        margin-bottom: 0 !important;
        line-height: 1.3 !important;
    }
}

/* ADMIN PANEL CONTAINER OVERLAP & SIDEBAR MARGIN FIX */
.pcoded-content,
#layoutSidenav_content {
    position: relative !important;
    min-height: calc(100vh - 70px) !important;
    padding: 20px 24px !important;
    box-sizing: border-box !important;
}

@media (max-width: 991px) {
    .pcoded-content,
    #layoutSidenav_content {
        padding: 8px 6px !important;
    }
}

@media (min-width: 992px) {
    .pcoded-content {
        margin-left: 240px !important;
    }
}

/* ==========================================================================
   GLOBAL HIGH-CONTRAST LEGIBILITY & INVISIBLE TEXT SAFEGUARD (PRODUCTION DEPLOYMENT)
   ========================================================================== */
.section-badge,
span.section-badge,
div.section-badge {
    background: linear-gradient(135deg, #B87B5C 0%, #382621 100%) !important;
    color: #FFFFFF !important;
    font-size: 1.05rem !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    display: inline-block !important;
    margin-bottom: 15px !important;
    border: 1.5px solid #BDAF7F !important;
    box-shadow: 0 4px 12px rgba(56, 38, 33, 0.25) !important;
    letter-spacing: 0.2px !important;
}

/* Form Input Legibility & High Contrast Standards */
.form-control[readonly],
.form-control.bg-light,
input[readonly].form-control,
input.bg-light {
    background-color: #F1F5F9 !important;
    color: #0F172A !important;
    font-weight: 700 !important;
    border: 1.5px solid #CBD5E1 !important;
    opacity: 1 !important;
}

/* High Contrast Placeholders Across All Browsers */
.form-control::placeholder,
input::placeholder,
textarea::placeholder,
select::placeholder {
    color: #64748B !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

/* Input Focus Ring Standard */
.form-control:focus,
.form-select:focus,
select.form-control:focus {
    border-color: #B87B5C !important;
    box-shadow: 0 0 0 4px rgba(184, 123, 92, 0.22) !important;
}

/* ============================================================
   GLOBAL SWEETALERT & POPUP STRAY CHECKBOX REMOVAL FIX
   ============================================================ */
body .swal2-container .swal2-checkbox,
body .swal2-container label.swal2-checkbox,
body .swal2-popup .swal2-checkbox,
body .sa-checkbox,
.swal2-checkbox {
    display: none !important;
}

body .swal2-container .swal2-checkbox[style*="display: flex"],
body .swal2-container .swal2-checkbox[style*="display: block"],
body .swal2-container label.swal2-checkbox[style*="display: flex"],
body .swal2-container label.swal2-checkbox[style*="display: block"] {
    display: flex !important;
}

/* ============================================================
   GLOBAL DATATABLES ALIGNMENT & LINING PERFECTING FIX
   ============================================================ */
.dataTables_scrollBody thead tr {
    height: 0 !important;
    border: none !important;
}
.dataTables_scrollBody thead th,
.dataTables_scrollBody thead td {
    height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    background: transparent !important;
    visibility: hidden !important;
}

.dataTables_scrollHead,
.dataTables_scrollHeadInner,
.dataTables_scrollHeadInner table,
.dataTables_scrollBody,
.dataTables_scrollBody table,
.dataTables_scrollFoot,
.dataTables_scrollFootInner,
.dataTables_scrollFootInner table {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.dataTables_wrapper table.dataTable th,
.dataTables_wrapper table.dataTable td,
.dataTables_wrapper table.table th,
.dataTables_wrapper table.table td {
    box-sizing: border-box !important;
}

.dataTables_scrollFootInner {
    padding-right: 0 !important;
    margin: 0 !important;
}
.dataTables_scrollFootInner table {
    margin-top: 0 !important;
    border-top: none !important;
}

.dataTables_scrollHead table.dataTable,
.dataTables_scrollHead table.table {
    margin-bottom: 0 !important;
    border-bottom: none !important;
}
.dataTables_scrollBody table.dataTable,
.dataTables_scrollBody table.table {
    margin-top: 0 !important;
    border-top: none !important;
}





